From 2d8dc64971a203e5cb2485bf1714892a8005fc0f Mon Sep 17 00:00:00 2001
From: 13693261870 <252740454@qq.com>
Date: 星期一, 30 十二月 2024 14:54:52 +0800
Subject: [PATCH] 1

---
 se-modules/se-system/src/main/java/com/se/system/controller/SysSoftController.java |   17 +++++++++++++++++
 1 files changed, 17 insertions(+), 0 deletions(-)

diff --git a/se-modules/se-system/src/main/java/com/se/system/controller/SysSoftController.java b/se-modules/se-system/src/main/java/com/se/system/controller/SysSoftController.java
index 76154c2..2732a6b 100644
--- a/se-modules/se-system/src/main/java/com/se/system/controller/SysSoftController.java
+++ b/se-modules/se-system/src/main/java/com/se/system/controller/SysSoftController.java
@@ -5,6 +5,7 @@
 import javax.servlet.http.HttpServletRequest;
 import javax.servlet.http.HttpServletResponse;
 
+import com.se.system.domain.vo.NacosConfigVo;
 import com.se.system.service.NacosService;
 import org.omg.CORBA.ServerRequest;
 import org.springframework.web.bind.annotation.GetMapping;
@@ -103,6 +104,7 @@
         return toAjax(sysSoftService.deleteSysSoftBySoftIds(softIds));
     }
 
+    @Log(title = "杞欢-鑾峰彇閰嶇疆", businessType = BusinessType.OTHER)
     @RequiresPermissions("system:soft:query")
     @GetMapping(value = "getNacosConfig")
     public void getNacosConfig(String dataId, HttpServletRequest req, HttpServletResponse res) {
@@ -116,4 +118,19 @@
             }
         }
     }
+
+    @Log(title = "杞欢-鏇存柊閰嶇疆", businessType = BusinessType.UPDATE)
+    @RequiresPermissions("system:soft:edit")
+    @PostMapping(value = "updateNacosConfig")
+    public void updateNacosConfig(@RequestBody NacosConfigVo vo, HttpServletRequest req, HttpServletResponse res) {
+        try {
+            nacosService.updateNacosConfig(vo, req, res);
+        } catch (Exception e) {
+            try {
+                res.getWriter().print(e.getMessage());
+            } catch (Exception ex) {
+                logger.error(ex.getMessage(), ex);
+            }
+        }
+    }
 }

--
Gitblit v1.9.3