提交 | 用户 | 时间
|
ed4f78
|
1 |
package com.iailab.module.data.api.plan; |
潘 |
2 |
|
a3a072
|
3 |
import com.iailab.module.data.api.plan.dto.ApiPlanDataDTO; |
e78121
|
4 |
import com.iailab.module.data.api.plan.dto.ApiPlanItemDTO; |
ed4f78
|
5 |
import com.iailab.module.data.common.ApiDataQueryDTO; |
潘 |
6 |
import com.iailab.module.data.common.ApiDataValueDTO; |
|
7 |
import com.iailab.module.data.enums.ApiConstants; |
|
8 |
import io.swagger.v3.oas.annotations.Operation; |
|
9 |
import io.swagger.v3.oas.annotations.tags.Tag; |
|
10 |
import org.springframework.cloud.openfeign.FeignClient; |
e78121
|
11 |
import org.springframework.web.bind.annotation.GetMapping; |
潘 |
12 |
import org.springframework.web.bind.annotation.PathVariable; |
ed4f78
|
13 |
import org.springframework.web.bind.annotation.PostMapping; |
潘 |
14 |
import org.springframework.web.bind.annotation.RequestBody; |
|
15 |
|
a3a072
|
16 |
import java.util.LinkedHashMap; |
ed4f78
|
17 |
import java.util.List; |
潘 |
18 |
|
|
19 |
/** |
|
20 |
* @author PanZhibao |
|
21 |
* @Description |
|
22 |
* @createTime 2024年11月03日 |
|
23 |
*/ |
|
24 |
@FeignClient(name = ApiConstants.NAME) |
|
25 |
@Tag(name = "计划数据") |
|
26 |
public interface PlanItemApi { |
|
27 |
|
|
28 |
String PREFIX = ApiConstants.PREFIX + "/plan-item"; |
|
29 |
|
|
30 |
@PostMapping(PREFIX + "/query-plan/history-value") |
|
31 |
@Operation(summary = "查询计划历史值") |
|
32 |
List<ApiDataValueDTO> queryPlanItemHistoryValue(@RequestBody ApiDataQueryDTO dto); |
a3a072
|
33 |
|
潘 |
34 |
@PostMapping(PREFIX + "/query-plans/record-value") |
|
35 |
@Operation(summary = "查询计划记录") |
|
36 |
LinkedHashMap<String, List<ApiPlanDataDTO>> queryPlanItemRecordValue(@RequestBody ApiDataQueryDTO dto); |
e78121
|
37 |
|
潘 |
38 |
@GetMapping(PREFIX + "/info/no/{itemNo}") |
|
39 |
@Operation(summary = "根据测点编号查询测点信息") |
|
40 |
ApiPlanItemDTO getInfoByNo(@PathVariable("itemNo") String itemNo); |
808189
|
41 |
|
潘 |
42 |
@GetMapping(PREFIX + "/info/id/{id}") |
|
43 |
@Operation(summary = "根据测点编号查询测点信息") |
|
44 |
ApiPlanItemDTO getInfoById(@PathVariable("id") String id); |
ed4f78
|
45 |
} |