提交 | 用户 | 时间
|
9d7e02
|
1 |
package com.iailab.module.data.api.point; |
潘 |
2 |
|
|
3 |
import com.iailab.module.data.api.point.dto.*; |
|
4 |
import com.iailab.module.data.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; |
73ed35
|
8 |
import org.springframework.web.bind.annotation.*; |
9d7e02
|
9 |
|
潘 |
10 |
import java.util.List; |
|
11 |
import java.util.Map; |
|
12 |
|
|
13 |
/** |
|
14 |
* @author PanZhibao |
|
15 |
* @Description |
|
16 |
* @createTime 2024年08月19日 |
|
17 |
*/ |
|
18 |
@FeignClient(name = ApiConstants.NAME) |
73ed35
|
19 |
@Tag(name = "测点接口") |
9d7e02
|
20 |
public interface DataPointApi { |
潘 |
21 |
|
|
22 |
String PREFIX = ApiConstants.PREFIX + "/point"; |
|
23 |
|
73ed35
|
24 |
@GetMapping(PREFIX + "/info/no/{pointNo}") |
潘 |
25 |
@Operation(summary = "根据测点编号查询测点信息") |
|
26 |
ApiPointDTO getInfoByNo(@PathVariable("pointNo") String pointNo); |
dc2e04
|
27 |
|
73ed35
|
28 |
@GetMapping(PREFIX + "/info/id/{pointId}") |
潘 |
29 |
@Operation(summary = "根据测点ID查询测点信息") |
|
30 |
ApiPointDTO getInfoById(@PathVariable("pointId") String pointId); |
9d7e02
|
31 |
|
73ed35
|
32 |
@PostMapping(PREFIX + "/query-points/real-value") |
9d7e02
|
33 |
@Operation(summary = "查询多个测点当前值") |
73ed35
|
34 |
Map<String, Object> queryPointsRealValue(@RequestParam("pointNos") List<String> pointNos); |
9d7e02
|
35 |
|
73ed35
|
36 |
@PostMapping(PREFIX + "/query-points/history-value") |
9d7e02
|
37 |
@Operation(summary = "查询多个测点历史值") |
73ed35
|
38 |
Map<String, List<Map<String, Object>>> queryPointsHistoryValue(@RequestBody ApiPointsValueQueryDTO queryDto); |
9d7e02
|
39 |
|
73ed35
|
40 |
@GetMapping(PREFIX + "/query-point/history-value") |
9d7e02
|
41 |
@Operation(summary = "查询单个测点历史值") |
73ed35
|
42 |
List<ApiPointValueDTO> queryPointHistoryValue(@RequestParam ApiPointValueQueryDTO queryDto); |
9d7e02
|
43 |
|
73ed35
|
44 |
@PutMapping(PREFIX + "/write-point/real-value") |
潘 |
45 |
@Operation(summary = "写入单个测点值") |
|
46 |
Boolean writePointRealValue(@RequestBody ApiPointValueWriteDTO queryDto); |
9d7e02
|
47 |
|
潘 |
48 |
|
|
49 |
} |