From 94d21ed1ede2b1596aa35e8fa41ae1b9d46c3025 Mon Sep 17 00:00:00 2001 From: 潘志宝 <979469083@qq.com> Date: 星期二, 18 三月 2025 17:01:01 +0800 Subject: [PATCH] Merge remote-tracking branch 'origin/master' --- ansteel-api/src/main/java/com/iailab/module/api/mcs/AnSteelApi.java | 36 ++++++++++++++++++++++++++++++++++++ 1 files changed, 36 insertions(+), 0 deletions(-) diff --git a/ansteel-api/src/main/java/com/iailab/module/api/mcs/AnSteelApi.java b/ansteel-api/src/main/java/com/iailab/module/api/mcs/AnSteelApi.java new file mode 100644 index 0000000..3082460 --- /dev/null +++ b/ansteel-api/src/main/java/com/iailab/module/api/mcs/AnSteelApi.java @@ -0,0 +1,36 @@ +package com.iailab.module.api.mcs; + +import com.iailab.module.api.mcs.dto.PowerRunStateDTO; +import com.iailab.module.api.mcs.dto.PreDataChartRespVO; +import com.iailab.module.enums.ApiConstants; +import com.iailab.module.model.api.mcs.dto.PreDataSingleChartReqVO; +import com.iailab.module.model.api.mcs.dto.PreDataSingleChartRespVO; +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.GetMapping; +import org.springframework.web.bind.annotation.PostMapping; +import org.springframework.web.bind.annotation.RequestBody; + +import java.util.List; + +/** + * @author lirm + * @Description + * @createTime 2025年03月17日 + */ +@FeignClient(name = ApiConstants.NAME) +@Tag(name = "RPC 服务 - 信息接口") +public interface AnSteelApi { + + String PREFIX = ApiConstants.PREFIX + "/api/mcs"; + + @GetMapping(PREFIX + "/power-run-state/list") + @Operation(summary = "发电厂机组运行情况") + List<PowerRunStateDTO> getPowerRunState(); + + @PostMapping(PREFIX + "/predict-data/charts") + @Operation(summary = "预测数据图表") + PreDataChartRespVO getPreDataChart(@RequestBody PreDataSingleChartReqVO reqVO); + +} \ No newline at end of file -- Gitblit v1.9.3