| | |
| | | package com.ruoyi.system.controller;
|
| | |
|
| | | import java.util.List;
|
| | | import javax.servlet.http.HttpServletResponse;
|
| | | import jakarta.servlet.http.HttpServletResponse;
|
| | | import org.springframework.beans.factory.annotation.Autowired;
|
| | | import org.springframework.validation.annotation.Validated;
|
| | | import org.springframework.web.bind.annotation.DeleteMapping;
|
| | |
| | | @PostMapping
|
| | | public AjaxResult add(@Validated @RequestBody SysConfig config)
|
| | | {
|
| | | if (configService.checkConfigKeyUnique(config))
|
| | | if (!configService.checkConfigKeyUnique(config))
|
| | | {
|
| | | return error("新增参数'" + config.getConfigName() + "'失败,参数键名已存在");
|
| | | }
|