liriming
2024-11-28 f96689bddf69ea3d635116cf1dd98bd5e5e0755a
提交 | 用户 | 时间
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
d9fe8f 43     @PostMapping(PREFIX + "/predict-data/cur")
44     @Operation(summary = "获取当前预测数据")
45     Map<String, List<Object[]>> getPreDataCur(PreDataJsonReqVO reqVO);
46
8a74e9 47     @PostMapping(PREFIX + "/plan-data/single-chart")
48     @Operation(summary = "计划数据图表")
49     PlanDataSingleChartRespVO getPlanDataSingleChart(@RequestBody PreDataSingleChartReqVO reqVO);
50
7fd198 51     @PostMapping(PREFIX + "/alarm-message/create")
52     @Operation(summary = "添加预警信息")
b368e6 53     Boolean createAlarmMessage(@RequestBody AlarmMessageRespDTO dto);
7fd198 54
55     @GetMapping(PREFIX + "/alarm-message/list")
c860df 56     @Operation(summary = "获取预警信息列表")
b368e6 57     List<AlarmMessageRespDTO> listAlarmMessage(@RequestParam Map<String, Object> params);
7fd198 58
9587d2 59     @PostMapping(PREFIX + "/alarm-config/list")
L 60     @Operation(summary = "获取预警配置列表")
61     List<AlarmConfigRespDTO> listAlarmConfig(@RequestParam Map<String, Object> params);
62
055765 63     @GetMapping(PREFIX + "/alarm-message/last-one")
c5fe30 64     @Operation(summary = "获取最新预警信息")
65     AlarmMessageRespDTO getLastAlarmMessage(@RequestParam("alarmObj") String alarmObj);
66
7fd198 67     @PostMapping(PREFIX + "/schedule-suggest/create")
68     @Operation(summary = "添加调度建议")
b368e6 69     Boolean createScheduleSuggest(@RequestBody ScheduleSuggestRespDTO dto);
7fd198 70
862fb2 71     @GetMapping(PREFIX + "/schedule-suggest/list")
c860df 72     @Operation(summary = "获取调度建议列表")
b368e6 73     List<ScheduleSuggestRespDTO> listScheduleSuggest(@RequestParam ScheduleSuggestReqDTO params);
7fd198 74
c860df 75     @PostMapping(PREFIX + "/predict-model-setting/modify")
76     @Operation(summary = "修改预测模型设置参数")
b368e6 77     Boolean modifyPredictModelSetting(@RequestBody List<PredictModelSettingReqDTO> dtos);
c860df 78
79     @PostMapping(PREFIX + "/schedule-model-setting/modify")
80     @Operation(summary = "修改调度模型设置参数")
b368e6 81     Boolean modifyScheduleModelSetting(@RequestBody List<ScheduleModelSettingReqDTO> dtos);
7fd198 82 }