From 9440721414f31d1c85094be1a035d9a90f9c4d5a Mon Sep 17 00:00:00 2001
From: liurunyu <lry9898@163.com>
Date: 星期一, 18 八月 2025 10:45:32 +0800
Subject: [PATCH] 完善代码

---
 pipIrr-platform/pipIrr-web/pipIrr-web-project/src/main/java/com/dy/pipIrrProject/mqtt/weather/WeatherCtrl.java |   24 ++++++++++++++++++++++++
 1 files changed, 24 insertions(+), 0 deletions(-)

diff --git a/pipIrr-platform/pipIrr-web/pipIrr-web-project/src/main/java/com/dy/pipIrrProject/mqtt/weather/WeatherCtrl.java b/pipIrr-platform/pipIrr-web/pipIrr-web-project/src/main/java/com/dy/pipIrrProject/mqtt/weather/WeatherCtrl.java
index e4c0c3e..523d071 100644
--- a/pipIrr-platform/pipIrr-web/pipIrr-web-project/src/main/java/com/dy/pipIrrProject/mqtt/weather/WeatherCtrl.java
+++ b/pipIrr-platform/pipIrr-web/pipIrr-web-project/src/main/java/com/dy/pipIrrProject/mqtt/weather/WeatherCtrl.java
@@ -44,6 +44,30 @@
     }
 
     /**
+     * 鏌ヨ鍏ㄩ儴姘旇薄绔欒褰�
+     * @return
+     */
+    @Operation(summary = "鑾峰緱鍏ㄩ儴姘旇薄绔欒褰�", description = "杩斿洖鍏ㄩ儴姘旇薄绔欐暟鎹�")
+    @ApiResponses(value = {
+            @ApiResponse(
+                    responseCode = ResultCodeMsg.RsCode.SUCCESS_CODE,
+                    description = "杩斿洖鍏ㄩ儴姘旇薄绔欐暟鎹紙BaseResponse.content:QueryResultVo[{}]锛�",
+                    content = {@Content(mediaType = MediaType.APPLICATION_JSON_VALUE,
+                            schema = @Schema(implementation = VoWeather.class))}
+            )
+    })
+    @GetMapping(path = "/all")
+    @SsoAop()
+    public BaseResponse<List<VoWeather>> all(){
+        try {
+            return BaseResponseUtils.buildSuccess(this.sv.allSimple());
+        } catch (Exception e) {
+            log.error("鑾峰彇姘旇薄绔欒褰曞紓甯�", e);
+            return BaseResponseUtils.buildException(e.getMessage()) ;
+        }
+    }
+
+    /**
      * 鍒嗛〉鏌ヨ姘旇薄绔欒褰�
      * @param vo
      * @return

--
Gitblit v1.8.0