提交 | 用户 | 时间
|
7fd198
|
1 |
package com.iailab.module.model.api.mcs; |
潘 |
2 |
|
c860df
|
3 |
import com.iailab.module.model.api.mcs.dto.*; |
7fd198
|
4 |
import com.iailab.module.model.enums.ApiConstants; |
潘 |
5 |
import io.swagger.v3.oas.annotations.Operation; |
|
6 |
import io.swagger.v3.oas.annotations.tags.Tag; |
|
7 |
import org.springframework.cloud.openfeign.FeignClient; |
|
8 |
import org.springframework.web.bind.annotation.GetMapping; |
|
9 |
import org.springframework.web.bind.annotation.PostMapping; |
|
10 |
import org.springframework.web.bind.annotation.RequestBody; |
|
11 |
import org.springframework.web.bind.annotation.RequestParam; |
|
12 |
|
|
13 |
import java.util.List; |
|
14 |
import java.util.Map; |
|
15 |
|
|
16 |
/** |
|
17 |
* @author PanZhibao |
|
18 |
* @Description |
|
19 |
* @createTime 2024年08月26日 |
|
20 |
*/ |
|
21 |
@FeignClient(name = ApiConstants.NAME) |
b368e6
|
22 |
@Tag(name = "RPC 服务 - 模型配置信息接口") |
7fd198
|
23 |
public interface McsApi { |
潘 |
24 |
|
|
25 |
String PREFIX = ApiConstants.PREFIX + "/mcs"; |
|
26 |
|
b368e6
|
27 |
@GetMapping(PREFIX + "/predict-item/tree") |
7fd198
|
28 |
@Operation(summary = "预测项树") |
b368e6
|
29 |
List<PredictItemTreeDTO> getPredictItemTree(); |
7fd198
|
30 |
|
b368e6
|
31 |
@PostMapping(PREFIX + "/predict-data/charts") |
862fb2
|
32 |
@Operation(summary = "预测数据图表") |
b368e6
|
33 |
PreDataBarLineRespVO getPreDataCharts(@RequestBody PreDataBarLineReqVO reqVO); |
862fb2
|
34 |
|
潘 |
35 |
@PostMapping(PREFIX + "/predict-data/item-chart") |
|
36 |
@Operation(summary = "预测数据图表") |
|
37 |
PreDataItemChartRespVO getPreDataItemChart(@RequestBody PreDataItemChartReqVO reqVO); |
7fd198
|
38 |
|
328ef4
|
39 |
@PostMapping(PREFIX + "/predict-data/single-chart") |
潘 |
40 |
@Operation(summary = "预测数据图表") |
91343d
|
41 |
PreDataSingleChartRespVO getPreDataSingleChart(@RequestBody PreDataSingleChartReqVO reqVO); |
328ef4
|
42 |
|
8a74e9
|
43 |
@PostMapping(PREFIX + "/plan-data/single-chart") |
潘 |
44 |
@Operation(summary = "计划数据图表") |
|
45 |
PlanDataSingleChartRespVO getPlanDataSingleChart(@RequestBody PreDataSingleChartReqVO reqVO); |
|
46 |
|
7fd198
|
47 |
@PostMapping(PREFIX + "/alarm-message/create") |
潘 |
48 |
@Operation(summary = "添加预警信息") |
b368e6
|
49 |
Boolean createAlarmMessage(@RequestBody AlarmMessageRespDTO dto); |
7fd198
|
50 |
|
潘 |
51 |
@GetMapping(PREFIX + "/alarm-message/list") |
c860df
|
52 |
@Operation(summary = "获取预警信息列表") |
b368e6
|
53 |
List<AlarmMessageRespDTO> listAlarmMessage(@RequestParam Map<String, Object> params); |
7fd198
|
54 |
|
潘 |
55 |
@PostMapping(PREFIX + "/schedule-suggest/create") |
|
56 |
@Operation(summary = "添加调度建议") |
b368e6
|
57 |
Boolean createScheduleSuggest(@RequestBody ScheduleSuggestRespDTO dto); |
7fd198
|
58 |
|
862fb2
|
59 |
@GetMapping(PREFIX + "/schedule-suggest/list") |
c860df
|
60 |
@Operation(summary = "获取调度建议列表") |
b368e6
|
61 |
List<ScheduleSuggestRespDTO> listScheduleSuggest(@RequestParam ScheduleSuggestReqDTO params); |
7fd198
|
62 |
|
c860df
|
63 |
@PostMapping(PREFIX + "/predict-model-setting/modify") |
潘 |
64 |
@Operation(summary = "修改预测模型设置参数") |
b368e6
|
65 |
Boolean modifyPredictModelSetting(@RequestBody List<PredictModelSettingReqDTO> dtos); |
c860df
|
66 |
|
潘 |
67 |
@PostMapping(PREFIX + "/schedule-model-setting/modify") |
|
68 |
@Operation(summary = "修改调度模型设置参数") |
b368e6
|
69 |
Boolean modifyScheduleModelSetting(@RequestBody List<ScheduleModelSettingReqDTO> dtos); |
7fd198
|
70 |
} |