liriming
2024-11-28 9587d2bc8fa6b236c26ab04de6e68de9c7a9845f
提交 | 用户 | 时间
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
9587d2 55     @PostMapping(PREFIX + "/alarm-config/list")
L 56     @Operation(summary = "获取预警配置列表")
57     List<AlarmConfigRespDTO> listAlarmConfig(@RequestParam Map<String, Object> params);
58
7fd198 59     @PostMapping(PREFIX + "/schedule-suggest/create")
60     @Operation(summary = "添加调度建议")
b368e6 61     Boolean createScheduleSuggest(@RequestBody ScheduleSuggestRespDTO dto);
7fd198 62
862fb2 63     @GetMapping(PREFIX + "/schedule-suggest/list")
c860df 64     @Operation(summary = "获取调度建议列表")
b368e6 65     List<ScheduleSuggestRespDTO> listScheduleSuggest(@RequestParam ScheduleSuggestReqDTO params);
7fd198 66
c860df 67     @PostMapping(PREFIX + "/predict-model-setting/modify")
68     @Operation(summary = "修改预测模型设置参数")
b368e6 69     Boolean modifyPredictModelSetting(@RequestBody List<PredictModelSettingReqDTO> dtos);
c860df 70
71     @PostMapping(PREFIX + "/schedule-model-setting/modify")
72     @Operation(summary = "修改调度模型设置参数")
b368e6 73     Boolean modifyScheduleModelSetting(@RequestBody List<ScheduleModelSettingReqDTO> dtos);
7fd198 74 }