| | |
| | | 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; |
| | |
| | | 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) { |
| | |
| | | } |
| | | } |
| | | } |
| | | |
| | | @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); |
| | | } |
| | | } |
| | | } |
| | | } |