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