|
@@ -1,5 +1,6 @@
|
|
package com.yonge.cooleshow.student.controller;
|
|
package com.yonge.cooleshow.student.controller;
|
|
|
|
|
|
|
|
+import com.yonge.cooleshow.common.entity.HttpResponseResult;
|
|
import io.swagger.annotations.Api;
|
|
import io.swagger.annotations.Api;
|
|
import io.swagger.annotations.ApiOperation;
|
|
import io.swagger.annotations.ApiOperation;
|
|
|
|
|
|
@@ -55,6 +56,14 @@ public class SysConfigController extends BaseController {
|
|
return succeed(sysConfigService.findByParamName(paramName));
|
|
return succeed(sysConfigService.findByParamName(paramName));
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+ @GetMapping(value = "findConfigValue")
|
|
|
|
+ public HttpResponseResult<String> findConfigValue(String paramName) {
|
|
|
|
+ if(StringUtils.isBlank(paramName)){
|
|
|
|
+ return failed("参数不能为空");
|
|
|
|
+ }
|
|
|
|
+ return succeed(sysConfigService.findConfigValue(paramName));
|
|
|
|
+ }
|
|
|
|
+
|
|
@ApiOperation(value = "查询参数")
|
|
@ApiOperation(value = "查询参数")
|
|
@GetMapping(value = "queryByParamNameList")
|
|
@GetMapping(value = "queryByParamNameList")
|
|
public Object queryByParamNameList(String paramNames) {
|
|
public Object queryByParamNameList(String paramNames) {
|