|
@@ -0,0 +1,37 @@
|
|
|
+package com.ym.mec.student.controller.open;
|
|
|
+
|
|
|
+import com.ym.mec.biz.dal.entity.SysConfig;
|
|
|
+import com.ym.mec.biz.service.SysConfigService;
|
|
|
+import com.ym.mec.common.controller.BaseController;
|
|
|
+import io.swagger.annotations.Api;
|
|
|
+import io.swagger.annotations.ApiOperation;
|
|
|
+import org.apache.commons.lang3.StringUtils;
|
|
|
+import org.springframework.beans.factory.annotation.Autowired;
|
|
|
+import org.springframework.web.bind.annotation.GetMapping;
|
|
|
+import org.springframework.web.bind.annotation.RequestMapping;
|
|
|
+import org.springframework.web.bind.annotation.RestController;
|
|
|
+
|
|
|
+import java.util.HashMap;
|
|
|
+import java.util.List;
|
|
|
+import java.util.Map;
|
|
|
+
|
|
|
+/**
|
|
|
+ * 系统配置控制层
|
|
|
+ */
|
|
|
+@RestController
|
|
|
+@Api(tags = "系统参数设置")
|
|
|
+@RequestMapping(value = "open/sysConfig")
|
|
|
+public class OpenSysConfigController extends BaseController {
|
|
|
+
|
|
|
+ @Autowired
|
|
|
+ private SysConfigService sysConfigService;
|
|
|
+
|
|
|
+ @ApiOperation(value = "查询参数")
|
|
|
+ @GetMapping(value = "queryByParamName")
|
|
|
+ public Object queryByParamName(String paramName) {
|
|
|
+ if(StringUtils.isBlank(paramName)){
|
|
|
+ return failed("参数不能为空");
|
|
|
+ }
|
|
|
+ return succeed(sysConfigService.findByParamName(paramName));
|
|
|
+ }
|
|
|
+}
|