From 5d04ba099ba4cbeff0bf0a5f140f2ec0a35ac1d6 Mon Sep 17 00:00:00 2001 From: 潘志宝 <979469083@qq.com> Date: 星期三, 19 三月 2025 10:56:56 +0800 Subject: [PATCH] Merge remote-tracking branch 'origin/master' --- ansteel-biz/src/main/java/com/iailab/module/ansteel/api/controller/McsController.java | 17 +++-------------- 1 files changed, 3 insertions(+), 14 deletions(-) diff --git a/ansteel-biz/src/main/java/com/iailab/module/ansteel/api/controller/McsController.java b/ansteel-biz/src/main/java/com/iailab/module/ansteel/api/controller/McsController.java index 650a9f5..d2b2f45 100644 --- a/ansteel-biz/src/main/java/com/iailab/module/ansteel/api/controller/McsController.java +++ b/ansteel-biz/src/main/java/com/iailab/module/ansteel/api/controller/McsController.java @@ -1,21 +1,14 @@ package com.iailab.module.ansteel.api.controller; import com.iailab.framework.common.pojo.CommonResult; -import com.iailab.module.ansteel.util.ApiSecurityUtils; import com.iailab.module.api.mcs.AnSteelApi; import com.iailab.module.api.mcs.dto.PowerRunStateDTO; import com.iailab.module.api.mcs.dto.PreDataChartRespVO; -import com.iailab.module.model.api.mcs.dto.PreDataItemChartReqVO; -import com.iailab.module.model.api.mcs.dto.PreDataItemChartRespVO; import com.iailab.module.model.api.mcs.dto.PreDataSingleChartReqVO; import io.swagger.v3.oas.annotations.Operation; -import io.swagger.v3.oas.annotations.tags.Tag; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.web.bind.annotation.*; -import javax.annotation.Resource; -import javax.servlet.http.HttpServletRequest; -import javax.servlet.http.HttpServletResponse; import java.util.List; import java.util.Map; @@ -25,7 +18,6 @@ * @author: lirm * @date: 2025/03/17 **/ -@Tag(name = "发电厂机组运行情况") @RestController @RequestMapping("/ansteel/api/mcs") public class McsController { @@ -33,19 +25,16 @@ @Autowired private AnSteelApi anSteelApi; - @Resource - private ApiSecurityUtils apiSecurityUtils; - @GetMapping("/power-run-state/list") - public CommonResult<List<PowerRunStateDTO>> list(@RequestParam Map<String, Object> params) { + @Operation(summary = "发电厂机组运行情况") + public CommonResult<List<PowerRunStateDTO>> getPowerRunState(@RequestParam Map<String, Object> params) { List<PowerRunStateDTO> list = anSteelApi.getPowerRunState(); return success(list); } @PostMapping("/predict-data/charts") @Operation(summary = "预测数据图表") - public CommonResult<PreDataChartRespVO> getPreDataChart(HttpServletResponse response, HttpServletRequest request, @RequestBody PreDataSingleChartReqVO reqVO) throws Exception { - apiSecurityUtils.validate(request); + public CommonResult<PreDataChartRespVO> getPreDataChart(@RequestBody PreDataSingleChartReqVO reqVO) { PreDataChartRespVO respVO = anSteelApi.getPreDataChart(reqVO); return CommonResult.success(respVO); } -- Gitblit v1.9.3