| | |
| | | import com.iailab.module.data.influxdb.service.InfluxDBService; |
| | | import com.iailab.module.data.point.common.PointTypeEnum; |
| | | import com.iailab.module.data.point.dto.DaPointDTO; |
| | | import com.iailab.module.data.point.dto.DaPointSimpleDTO; |
| | | import com.iailab.module.data.point.service.DaPointService; |
| | | import com.iailab.module.data.point.vo.*; |
| | | import io.swagger.v3.oas.annotations.Operation; |
| | |
| | | } |
| | | |
| | | @PreAuthorize("@ss.hasPermission('data:point:query')") |
| | | @GetMapping("/simple-list") |
| | | @Operation(summary = "列表") |
| | | public CommonResult<List<DaPointSimpleDTO>> simpleList(@Valid @RequestParam Map<String, Object> params) { |
| | | List<DaPointDTO> list = daPointService.list(params); |
| | | return success(ConvertUtils.sourceToTarget(list, DaPointSimpleDTO.class)); |
| | | } |
| | | |
| | | @PreAuthorize("@ss.hasPermission('data:point:query')") |
| | | @GetMapping("/info/{id}") |
| | | public CommonResult<DaPointDTO> info(@PathVariable("id") String id) { |
| | | DaPointDTO info = daPointService.info(id); |