51 lines
1.8 KiB
C#
51 lines
1.8 KiB
C#
using Microsoft.AspNetCore.Mvc;
|
|
using Microsoft.Extensions.Logging;
|
|
using SolarPower.Models;
|
|
using SolarPower.Repository.Interface;
|
|
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Threading.Tasks;
|
|
|
|
namespace SolarPower.Controllers
|
|
{
|
|
public class AnalysisStationCombineController : MyBaseController<AnalysisStationCombineController>
|
|
{
|
|
|
|
private readonly IAnalysisStationCombineRepository analysisStationCombineRepository;
|
|
private readonly IPowerStationRepository powerStationRepository;
|
|
|
|
public AnalysisStationCombineController(
|
|
IAnalysisStationCombineRepository analysisStationCombineRepository,
|
|
IPowerStationRepository powerStationRepository) : base()
|
|
{
|
|
this.analysisStationCombineRepository = analysisStationCombineRepository;
|
|
this.powerStationRepository = powerStationRepository;
|
|
}
|
|
public IActionResult Index()
|
|
{
|
|
return View();
|
|
}
|
|
|
|
//public async Task<ApiResult<AnalysisStationCombine>> GetStationsCard(ChartInput post)
|
|
//{
|
|
// ApiResult<AnalysisStationCombine> apiResult = new ApiResult<AnalysisStationCombine>();
|
|
// try
|
|
// {
|
|
// var PowerStationIdLists = new AnalysisStationCombine();
|
|
// PowerStationIdLists = await analysisStationCombineRepository.GetPowerStationIdList(myUser.Id);
|
|
// apiResult.Code = "0000";
|
|
// apiResult.Data = PowerStationIdLists;
|
|
// }
|
|
// catch (Exception exception)
|
|
// {
|
|
// apiResult.Code = "9999";
|
|
// Logger.LogError("【" + controllerName + "/" + actionName + "】" + exception.Message);
|
|
// }
|
|
|
|
// apiResult.Msg = errorCode.GetString(apiResult.Code);
|
|
// return apiResult;
|
|
//}
|
|
}
|
|
}
|