1
13693261870
2024-12-30 2d8dc64971a203e5cb2485bf1714892a8005fc0f
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);
            }
        }
    }
}