iailab-module-data/iailab-module-data-biz/src/main/java/com/iailab/module/data/point/controller/admin/DaPointController.java
@@ -13,6 +13,7 @@ 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; @@ -70,6 +71,14 @@ } @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); iailab-module-data/iailab-module-data-biz/src/main/java/com/iailab/module/data/point/dto/DaPointSimpleDTO.java
对比新文件 @@ -0,0 +1,30 @@ package com.iailab.module.data.point.dto; import io.swagger.v3.oas.annotations.media.Schema; import io.swagger.v3.oas.annotations.tags.Tag; import lombok.Data; import java.io.Serializable; /** * @author PanZhibao * @Description * @createTime 2024年12月10日 */ @Data @Tag(name = "测点") public class DaPointSimpleDTO implements Serializable { private static final long serialVersionUID = 1L; @Schema(description = "id") private String id; @Schema(description = "测点编码", required = true) private String pointNo; @Schema(description = "测点名称", required = true) private String pointName; @Schema(description = "测点类型", required = true) private String pointType; }