提交 | 用户 | 时间
|
7fd198
|
1 |
package com.iailab.module.model.api.mcs; |
潘 |
2 |
|
0a7d0f
|
3 |
import com.iailab.framework.common.pojo.PageResult; |
c860df
|
4 |
import com.iailab.module.model.api.mcs.dto.*; |
7fd198
|
5 |
import com.iailab.module.model.enums.ApiConstants; |
潘 |
6 |
import io.swagger.v3.oas.annotations.Operation; |
|
7 |
import io.swagger.v3.oas.annotations.tags.Tag; |
|
8 |
import org.springframework.cloud.openfeign.FeignClient; |
|
9 |
import org.springframework.web.bind.annotation.GetMapping; |
|
10 |
import org.springframework.web.bind.annotation.PostMapping; |
|
11 |
import org.springframework.web.bind.annotation.RequestBody; |
|
12 |
import org.springframework.web.bind.annotation.RequestParam; |
|
13 |
|
bffae5
|
14 |
import java.math.BigDecimal; |
7fd198
|
15 |
import java.util.List; |
潘 |
16 |
import java.util.Map; |
|
17 |
|
|
18 |
/** |
|
19 |
* @author PanZhibao |
|
20 |
* @Description |
|
21 |
* @createTime 2024年08月26日 |
|
22 |
*/ |
|
23 |
@FeignClient(name = ApiConstants.NAME) |
b368e6
|
24 |
@Tag(name = "RPC 服务 - 模型配置信息接口") |
7fd198
|
25 |
public interface McsApi { |
潘 |
26 |
|
|
27 |
String PREFIX = ApiConstants.PREFIX + "/mcs"; |
|
28 |
|
b368e6
|
29 |
@GetMapping(PREFIX + "/predict-item/tree") |
7fd198
|
30 |
@Operation(summary = "预测项树") |
b368e6
|
31 |
List<PredictItemTreeDTO> getPredictItemTree(); |
7fd198
|
32 |
|
b368e6
|
33 |
@PostMapping(PREFIX + "/predict-data/charts") |
862fb2
|
34 |
@Operation(summary = "预测数据图表") |
b368e6
|
35 |
PreDataBarLineRespVO getPreDataCharts(@RequestBody PreDataBarLineReqVO reqVO); |
862fb2
|
36 |
|
潘 |
37 |
@PostMapping(PREFIX + "/predict-data/item-chart") |
|
38 |
@Operation(summary = "预测数据图表") |
|
39 |
PreDataItemChartRespVO getPreDataItemChart(@RequestBody PreDataItemChartReqVO reqVO); |
7fd198
|
40 |
|
328ef4
|
41 |
@PostMapping(PREFIX + "/predict-data/single-chart") |
潘 |
42 |
@Operation(summary = "预测数据图表") |
91343d
|
43 |
PreDataSingleChartRespVO getPreDataSingleChart(@RequestBody PreDataSingleChartReqVO reqVO); |
328ef4
|
44 |
|
d9fe8f
|
45 |
@PostMapping(PREFIX + "/predict-data/cur") |
潘 |
46 |
@Operation(summary = "获取当前预测数据") |
4072bc
|
47 |
Map<String, List<Object[]>> getPreDataCur(@RequestBody PreDataJsonReqVO reqVO); |
d9fe8f
|
48 |
|
8a74e9
|
49 |
@PostMapping(PREFIX + "/plan-data/single-chart") |
潘 |
50 |
@Operation(summary = "计划数据图表") |
|
51 |
PlanDataSingleChartRespVO getPlanDataSingleChart(@RequestBody PreDataSingleChartReqVO reqVO); |
|
52 |
|
7fd198
|
53 |
@PostMapping(PREFIX + "/alarm-message/create") |
潘 |
54 |
@Operation(summary = "添加预警信息") |
b368e6
|
55 |
Boolean createAlarmMessage(@RequestBody AlarmMessageRespDTO dto); |
7fd198
|
56 |
|
潘 |
57 |
@GetMapping(PREFIX + "/alarm-message/list") |
c860df
|
58 |
@Operation(summary = "获取预警信息列表") |
4072bc
|
59 |
List<AlarmMessageRespDTO> listAlarmMessage(@RequestParam Map<String, Object> params); |
7fd198
|
60 |
|
9438d0
|
61 |
@GetMapping(PREFIX + "/alarm-config/list") |
9587d2
|
62 |
@Operation(summary = "获取预警配置列表") |
4072bc
|
63 |
List<AlarmConfigRespDTO> listAlarmConfig(@RequestParam Map<String, Object> params); |
9587d2
|
64 |
|
055765
|
65 |
@GetMapping(PREFIX + "/alarm-message/last-one") |
c5fe30
|
66 |
@Operation(summary = "获取最新预警信息") |
潘 |
67 |
AlarmMessageRespDTO getLastAlarmMessage(@RequestParam("alarmObj") String alarmObj); |
|
68 |
|
7fd198
|
69 |
@PostMapping(PREFIX + "/schedule-suggest/create") |
潘 |
70 |
@Operation(summary = "添加调度建议") |
b368e6
|
71 |
Boolean createScheduleSuggest(@RequestBody ScheduleSuggestRespDTO dto); |
7fd198
|
72 |
|
862fb2
|
73 |
@GetMapping(PREFIX + "/schedule-suggest/list") |
c860df
|
74 |
@Operation(summary = "获取调度建议列表") |
4072bc
|
75 |
List<ScheduleSuggestRespDTO> listScheduleSuggest(@RequestParam Map<String, Object> params); |
7fd198
|
76 |
|
c860df
|
77 |
@PostMapping(PREFIX + "/predict-model-setting/modify") |
潘 |
78 |
@Operation(summary = "修改预测模型设置参数") |
b368e6
|
79 |
Boolean modifyPredictModelSetting(@RequestBody List<PredictModelSettingReqDTO> dtos); |
c860df
|
80 |
|
3a6dfc
|
81 |
@GetMapping(PREFIX + "/schedule-suggest/last-limit") |
L |
82 |
@Operation(summary = "获取调度建议列表") |
|
83 |
List<ScheduleSuggestRespDTO> getLastLimitScheduleSuggest(@RequestParam("scheduleObj") String scheduleObj, @RequestParam("limit") Integer limit); |
|
84 |
|
c860df
|
85 |
@PostMapping(PREFIX + "/schedule-model-setting/modify") |
潘 |
86 |
@Operation(summary = "修改调度模型设置参数") |
b368e6
|
87 |
Boolean modifyScheduleModelSetting(@RequestBody List<ScheduleModelSettingReqDTO> dtos); |
6eeac9
|
88 |
|
4072bc
|
89 |
@GetMapping(PREFIX + "/schedule-scheme/list") |
L |
90 |
@Operation(summary = "获取调度方案列表") |
ed4107
|
91 |
List<StScheduleSchemeDTO> listScheduleScheme(@RequestParam("triggerMethod") String triggerMethod, @RequestParam("triggerCondition") String triggerCondition); |
730d19
|
92 |
|
D |
93 |
@GetMapping(PREFIX + "/chart/param/list") |
|
94 |
@Operation(summary = "图表配置列表") |
|
95 |
List<ChartParamDTO> getChartParamList(@RequestParam("chartCode") String chartCode); |
0a7d0f
|
96 |
|
潘 |
97 |
@PostMapping(PREFIX + "/alarm-suggest/page") |
|
98 |
@Operation(summary = "获取预警信息和调度建议分页列表") |
|
99 |
PageResult<StAlarmAndSuggestRespVO> getAlarmAndSuggestPage(@RequestBody StAlarmAndSuggestPageReqVO reqVO); |
9904da
|
100 |
|
22e321
|
101 |
@PostMapping(PREFIX + "/predict-data/doubleValue") |
D |
102 |
@Operation(summary = "获取多个预测项Double类型数据") |
|
103 |
Map<String, Map<String, Double>> getPreDoubleData(PreDoubleDataReqVO reqVO); |
|
104 |
|
bffae5
|
105 |
@PostMapping(PREFIX + "/predict-data/last-value") |
9904da
|
106 |
@Operation(summary = "获取最后预测值") |
bffae5
|
107 |
Map<String, BigDecimal> getPredictLastValue(@RequestBody PredictLastValueReqVO reqVO); |
dec0c2
|
108 |
|
D |
109 |
@GetMapping("/predict-data/electric") |
|
110 |
@Operation(summary = "电力功率因数预测结果查询") |
|
111 |
Map<String,List<Object[]>> getElectricPredictData(String itemCode); |
|
112 |
|
|
113 |
@GetMapping("/schedule-data/last") |
|
114 |
@Operation(summary = "调度模型最新结果查询") |
|
115 |
String getLastScheduleData(String scheduleCode); |
|
116 |
|
|
117 |
@GetMapping("/machineRealTimeStatus") |
|
118 |
@Operation(summary = "发电机组实时状态查询") |
|
119 |
List<Map<String, Object>> getRealTimeStatus(@RequestBody List<Map<String, Object>> machines); |
7fd198
|
120 |
} |