|
@@ -11,6 +11,7 @@ import com.miaxis.common.utils.SecurityUtils;
|
|
|
import com.miaxis.newgzpt.domain.GzptUserInfo;
|
|
|
import com.miaxis.newgzpt.dto.GzptUserInfoDTO;
|
|
|
import com.miaxis.newgzpt.service.IGzptUserInfoService;
|
|
|
+import com.miaxis.system.service.ISysConfigService;
|
|
|
import com.miaxis.system.service.ISysDictDataService;
|
|
|
import com.miaxis.system.service.ISysDictTypeService;
|
|
|
import com.miaxis.user.service.IUserInfoService;
|
|
@@ -38,6 +39,9 @@ public class GzptDictDataController extends BaseController {
|
|
|
@Autowired
|
|
|
private ISysDictTypeService dictTypeService;
|
|
|
|
|
|
+ @Autowired
|
|
|
+ private ISysConfigService configService;
|
|
|
+
|
|
|
/**
|
|
|
* 根据字典类型查询字典数据信息
|
|
|
*/
|
|
@@ -50,5 +54,17 @@ public class GzptDictDataController extends BaseController {
|
|
|
return Response.success(dictTypeService.selectDictDataByType(dictType));
|
|
|
}
|
|
|
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 根据参数键名查询参数值
|
|
|
+ */
|
|
|
+ @GetMapping(value = "/configKey/{configKey}")
|
|
|
+ @ApiOperation("根据参数键名查询参数值")
|
|
|
+ public Response<String> getConfigKey(
|
|
|
+ @ApiParam(name = "configKey", value = "参数键名", required = true)
|
|
|
+ @PathVariable("configKey") String configKey
|
|
|
+ ){
|
|
|
+ return Response.success(configService.selectConfigByKey(configKey));
|
|
|
+ }
|
|
|
}
|
|
|
|