潘志宝
2024-09-05 7fd198b8ebe97cd06b10f96b9179caebe679783c
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
package com.iailab.module.model.api.mcs;
 
import com.iailab.framework.common.pojo.CommonResult;
import com.iailab.module.model.api.mcs.dto.AlarmMessageDTO;
import com.iailab.module.model.api.mcs.dto.PredictItemInfoDTO;
import com.iailab.module.model.api.mcs.dto.PredictItemTreeDTO;
import com.iailab.module.model.api.mcs.dto.ScheduleSuggestDTO;
import com.iailab.module.model.enums.ApiConstants;
import io.swagger.v3.oas.annotations.Operation;
import io.swagger.v3.oas.annotations.tags.Tag;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestParam;
 
import java.util.List;
import java.util.Map;
 
/**
 * @author PanZhibao
 * @Description
 * @createTime 2024年08月26日
 */
@FeignClient(name = ApiConstants.NAME)
@Tag(name = "RPC 服务 - MCS")
public interface McsApi {
 
    String PREFIX = ApiConstants.PREFIX + "/mcs";
 
    @GetMapping(PREFIX + "/predict-item-tree")
    @Operation(summary = "预测项树")
    CommonResult<List<PredictItemTreeDTO>> getPredictItemTree();
 
    @GetMapping(PREFIX + "/predict-item-info")
    @Operation(summary = "预测项详情")
    CommonResult<PredictItemInfoDTO> getPredictItemInfo(@RequestParam Map<String, Object> params);
 
    @PostMapping(PREFIX + "/alarm-message/create")
    @Operation(summary = "添加预警信息")
    CommonResult<Boolean> createAlarmMessage(@RequestBody AlarmMessageDTO dto);
 
    @GetMapping(PREFIX + "/alarm-message/list")
    @Operation(summary = "获取预警信息")
    CommonResult<AlarmMessageDTO> listAlarmMessage(@RequestParam Map<String, Object> params);
 
    @PostMapping(PREFIX + "/schedule-suggest/create")
    @Operation(summary = "添加调度建议")
    CommonResult<Boolean> createScheduleSuggest(@RequestBody ScheduleSuggestDTO dto);
 
    @GetMapping(PREFIX + "/alarm-message/list")
    @Operation(summary = "获取调度建议")
    CommonResult<ScheduleSuggestDTO> listScheduleSuggest(@RequestParam Map<String, Object> params);
 
}