namespace IStation.Application
|
{
|
/// <summary>
|
/// 调度
|
/// </summary>
|
[Route("ChenHang/Dispatch")]
|
[ApiDescriptionSettings("Web", Name = "优化调度", Order = 3)]
|
public class OptimalSchedule_Controller : IDynamicApiController
|
{
|
private readonly Service.ScheduleRequest _service_schedule_request = new();
|
private readonly Service.ScheduleConclusion _service_schedule_conclusion = new();
|
private readonly Service.SchedulePump _service_schedule_pump = new();
|
|
/// <summary>
|
///获取泵站列表
|
/// </summary>
|
[Route("GetStationList@V1.0")]
|
[HttpGet]
|
public List<StationTreeItemOutput> GetStationList()
|
{
|
var station1 = new StationTreeItemOutput()
|
{
|
ID = 1,
|
Name = "陈行1输",
|
SortCode = 1
|
};
|
|
var station2 = new StationTreeItemOutput()
|
{
|
ID = 2,
|
Name = "陈行2输",
|
SortCode = 2
|
};
|
return new List<StationTreeItemOutput>() { station1, station2 };
|
}
|
|
/// <summary>
|
/// 调度
|
/// </summary>
|
[AllowAnonymous]
|
[Route("Calculate@V1.0")]
|
[HttpPost]
|
public OptScheduleOutput Calculate([Required] OptScheduleStationInput input)
|
{
|
throw Yw.Dto.YOops.Oh(Yw.Dto.eResultCode.Alert, Yw.Dto.InternalErrorCodes.A001, "待恢复");
|
}
|
|
|
|
}
|
}
|