Shuxia Ning
2024-07-17 fd681339c81201ed6fb3303647ecab89e3e6c0c1
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
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, "待恢复");
        }
 
 
 
    }
}