From c844cdbe0216c416d99dee8dfad2290b2a414909 Mon Sep 17 00:00:00 2001 From: 潘志宝 <979469083@qq.com> Date: 星期二, 10 十二月 2024 18:34:39 +0800 Subject: [PATCH] completionData --- iailab-module-data/iailab-module-data-biz/src/main/java/com/iailab/module/data/point/controller/admin/DaPointController.java | 9 +++++++++ 1 files changed, 9 insertions(+), 0 deletions(-) diff --git a/iailab-module-data/iailab-module-data-biz/src/main/java/com/iailab/module/data/point/controller/admin/DaPointController.java b/iailab-module-data/iailab-module-data-biz/src/main/java/com/iailab/module/data/point/controller/admin/DaPointController.java index 8482d62..edb270a 100644 --- a/iailab-module-data/iailab-module-data-biz/src/main/java/com/iailab/module/data/point/controller/admin/DaPointController.java +++ b/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); -- Gitblit v1.9.3