| | |
| | | import org.springframework.cloud.openfeign.FeignClient; |
| | | import org.springframework.web.bind.annotation.*; |
| | | |
| | | import javax.annotation.security.PermitAll; |
| | | import java.util.List; |
| | | import java.util.Map; |
| | | |
| | |
| | | @Operation(summary = "根据测点ID查询测点信息") |
| | | ApiPointDTO getInfoById(@PathVariable("pointId") String pointId); |
| | | |
| | | @PostMapping(PREFIX + "/info/ids") |
| | | @Operation(summary = "根据多个测点ID查询测点信息") |
| | | List<ApiPointDTO> getInfoByIds(@RequestParam("pointNos") List<String> pointIds); |
| | | |
| | | @PostMapping(PREFIX + "/query-points/real-value") |
| | | @Operation(summary = "查询多个测点当前值") |
| | | Map<String, Object> queryPointsRealValue(@RequestParam("pointNos") List<String> pointNos); |
| | |
| | | @Operation(summary = "查询多个测点历史值") |
| | | Map<String, List<Map<String, Object>>> queryPointsHistoryValue(@RequestBody ApiPointsValueQueryDTO queryDto); |
| | | |
| | | @GetMapping(PREFIX + "/query-point/history-value") |
| | | @PostMapping(PREFIX + "/query-point/history-value") |
| | | @Operation(summary = "查询单个测点历史值") |
| | | List<ApiPointValueDTO> queryPointHistoryValue(@RequestParam ApiPointValueQueryDTO queryDto); |
| | | List<ApiPointValueDTO> queryPointHistoryValue(@RequestBody ApiPointValueQueryDTO queryDto); |
| | | |
| | | @PutMapping(PREFIX + "/write-point/real-value") |
| | | @Operation(summary = "写入单个测点值") |