修改参数响应在msg的bug现已更改为data
parent
47c724f627
commit
6de53b9520
|
@ -1,17 +1,5 @@
|
||||||
package com.bawei.system.controller;
|
package com.bawei.system.controller;
|
||||||
|
|
||||||
import java.util.List;
|
|
||||||
import javax.servlet.http.HttpServletResponse;
|
|
||||||
import org.springframework.beans.factory.annotation.Autowired;
|
|
||||||
import org.springframework.validation.annotation.Validated;
|
|
||||||
import org.springframework.web.bind.annotation.DeleteMapping;
|
|
||||||
import org.springframework.web.bind.annotation.GetMapping;
|
|
||||||
import org.springframework.web.bind.annotation.PathVariable;
|
|
||||||
import org.springframework.web.bind.annotation.PostMapping;
|
|
||||||
import org.springframework.web.bind.annotation.PutMapping;
|
|
||||||
import org.springframework.web.bind.annotation.RequestBody;
|
|
||||||
import org.springframework.web.bind.annotation.RequestMapping;
|
|
||||||
import org.springframework.web.bind.annotation.RestController;
|
|
||||||
import com.bawei.common.core.constant.UserConstants;
|
import com.bawei.common.core.constant.UserConstants;
|
||||||
import com.bawei.common.core.utils.poi.ExcelUtil;
|
import com.bawei.common.core.utils.poi.ExcelUtil;
|
||||||
import com.bawei.common.core.web.controller.BaseController;
|
import com.bawei.common.core.web.controller.BaseController;
|
||||||
|
@ -23,10 +11,16 @@ import com.bawei.common.security.annotation.RequiresPermissions;
|
||||||
import com.bawei.common.security.utils.SecurityUtils;
|
import com.bawei.common.security.utils.SecurityUtils;
|
||||||
import com.bawei.system.domain.SysConfig;
|
import com.bawei.system.domain.SysConfig;
|
||||||
import com.bawei.system.service.ISysConfigService;
|
import com.bawei.system.service.ISysConfigService;
|
||||||
|
import org.springframework.beans.factory.annotation.Autowired;
|
||||||
|
import org.springframework.validation.annotation.Validated;
|
||||||
|
import org.springframework.web.bind.annotation.*;
|
||||||
|
|
||||||
|
import javax.servlet.http.HttpServletResponse;
|
||||||
|
import java.util.List;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 参数配置 信息操作处理
|
* 参数配置 信息操作处理
|
||||||
*
|
*
|
||||||
* @author bawei
|
* @author bawei
|
||||||
*/
|
*/
|
||||||
@RestController
|
@RestController
|
||||||
|
@ -73,7 +67,7 @@ public class SysConfigController extends BaseController
|
||||||
@GetMapping(value = "/configKey/{configKey}")
|
@GetMapping(value = "/configKey/{configKey}")
|
||||||
public AjaxResult getConfigKey(@PathVariable String configKey)
|
public AjaxResult getConfigKey(@PathVariable String configKey)
|
||||||
{
|
{
|
||||||
return AjaxResult.success(configService.selectConfigByKey(configKey));
|
return AjaxResult.success("查询成功",configService.selectConfigByKey(configKey));
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Reference in New Issue