潘志宝
2024-10-10 c860df8407951bd2170c5ad51487aa31bffc1193
提交 | 用户 | 时间
7fd198 1 package com.iailab.module.model.api.mcs;
2
3 import com.iailab.framework.common.pojo.CommonResult;
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
14 import java.util.List;
15 import java.util.Map;
16
17 /**
18  * @author PanZhibao
19  * @Description
20  * @createTime 2024年08月26日
21  */
22 @FeignClient(name = ApiConstants.NAME)
c860df 23 @Tag(name = "RPC 服务 - 模型配置接口")
7fd198 24 public interface McsApi {
25
26     String PREFIX = ApiConstants.PREFIX + "/mcs";
27
28     @GetMapping(PREFIX + "/predict-item-tree")
29     @Operation(summary = "预测项树")
30     CommonResult<List<PredictItemTreeDTO>> getPredictItemTree();
31
32     @GetMapping(PREFIX + "/predict-item-info")
33     @Operation(summary = "预测项详情")
34     CommonResult<PredictItemInfoDTO> getPredictItemInfo(@RequestParam Map<String, Object> params);
35
36     @PostMapping(PREFIX + "/alarm-message/create")
37     @Operation(summary = "添加预警信息")
c860df 38     CommonResult<Boolean> createAlarmMessage(@RequestBody AlarmMessageRespDTO dto);
7fd198 39
40     @GetMapping(PREFIX + "/alarm-message/list")
c860df 41     @Operation(summary = "获取预警信息列表")
42     CommonResult<AlarmMessageRespDTO> listAlarmMessage(@RequestParam Map<String, Object> params);
7fd198 43
44     @PostMapping(PREFIX + "/schedule-suggest/create")
45     @Operation(summary = "添加调度建议")
c860df 46     CommonResult<Boolean> createScheduleSuggest(@RequestBody ScheduleSuggestRespDTO dto);
7fd198 47
48     @GetMapping(PREFIX + "/alarm-message/list")
c860df 49     @Operation(summary = "获取调度建议列表")
50     CommonResult<ScheduleSuggestRespDTO> listScheduleSuggest(@RequestParam ScheduleSuggestReqDTO params);
7fd198 51
c860df 52     @PostMapping(PREFIX + "/predict-model-setting/modify")
53     @Operation(summary = "修改预测模型设置参数")
54     CommonResult<Boolean> modifyPredictModelSetting(@RequestBody List<PredictModelSettingReqDTO> dtos);
55
56     @PostMapping(PREFIX + "/schedule-model-setting/modify")
57     @Operation(summary = "修改调度模型设置参数")
58     CommonResult<Boolean> modifyScheduleModelSetting(@RequestBody List<ScheduleModelSettingReqDTO> dtos);
7fd198 59 }