From 2b47c5b0e504a653fe40ae8b6749e14e228a89bd Mon Sep 17 00:00:00 2001 From: dongyukun <1208714201@qq.com> Date: 星期四, 02 一月 2025 13:46:57 +0800 Subject: [PATCH] 调度模型下发 --- iailab-module-data/iailab-module-data-api/src/main/java/com/iailab/module/data/api/ind/IndItemApi.java | 20 ++++++++++++++------ 1 files changed, 14 insertions(+), 6 deletions(-) diff --git a/iailab-module-data/iailab-module-data-api/src/main/java/com/iailab/module/data/api/ind/IndItemApi.java b/iailab-module-data/iailab-module-data-api/src/main/java/com/iailab/module/data/api/ind/IndItemApi.java index b14eba7..0fc23d4 100644 --- a/iailab-module-data/iailab-module-data-api/src/main/java/com/iailab/module/data/api/ind/IndItemApi.java +++ b/iailab-module-data/iailab-module-data-api/src/main/java/com/iailab/module/data/api/ind/IndItemApi.java @@ -1,13 +1,13 @@ package com.iailab.module.data.api.ind; +import com.iailab.module.data.api.ind.dto.ApiIndItemDTO; import com.iailab.module.data.api.ind.dto.ApiIndItemQueryDTO; import com.iailab.module.data.api.ind.dto.ApiIndItemValueDTO; import com.iailab.module.data.enums.ApiConstants; import io.swagger.v3.oas.annotations.Operation; import io.swagger.v3.oas.annotations.tags.Tag; import org.springframework.cloud.openfeign.FeignClient; -import org.springframework.web.bind.annotation.PostMapping; -import org.springframework.web.bind.annotation.RequestBody; +import org.springframework.web.bind.annotation.*; import java.util.List; @@ -17,12 +17,20 @@ * @createTime 2024年08月19日 */ @FeignClient(name = ApiConstants.NAME) -@Tag(name = "指标项服务") +@Tag(name = "指标数据") public interface IndItemApi { String PREFIX = ApiConstants.PREFIX + "/ind-item"; - @PostMapping(PREFIX + "/vlues") - @Operation(summary = "查询指标项") - List<ApiIndItemValueDTO> queryIndItemValues(@RequestBody ApiIndItemQueryDTO dto); + @GetMapping(PREFIX + "/query-ind/default-value") + @Operation(summary = "查询指标默认值") + List<ApiIndItemValueDTO> queryIndItemDefaultValue(@RequestParam("itemNo") String itemNo); + + @PostMapping(PREFIX + "/query-ind/history-value") + @Operation(summary = "查询指标历史值") + List<ApiIndItemValueDTO> queryIndItemHistoryValue(@RequestBody ApiIndItemQueryDTO dto); + + @GetMapping(PREFIX + "/info/id/{id}") + @Operation(summary = "根据测点编号查询测点信息") + ApiIndItemDTO getInfoById(@PathVariable("id") String id); } \ No newline at end of file -- Gitblit v1.9.3