修改配置代码
This commit is contained in:
@@ -2,7 +2,7 @@ spring:
|
|||||||
application:
|
application:
|
||||||
name: lideeyunji-server
|
name: lideeyunji-server
|
||||||
profiles:
|
profiles:
|
||||||
active: local # 读取配置
|
active: prod # 读取配置
|
||||||
main:
|
main:
|
||||||
allow-circular-references: true # 允许循环依赖,因为项目是三层架构,无法避免这个情况。
|
allow-circular-references: true # 允许循环依赖,因为项目是三层架构,无法避免这个情况。
|
||||||
|
|
||||||
|
|||||||
@@ -72,7 +72,7 @@ public class ConfigController {
|
|||||||
|
|
||||||
@GetMapping(value = "/get-value-by-key")
|
@GetMapping(value = "/get-value-by-key")
|
||||||
@Operation(tags = "参数配置",summary = "根据参数键名查询参数值", description = "不可见的配置,不允许返回给前端")
|
@Operation(tags = "参数配置",summary = "根据参数键名查询参数值", description = "不可见的配置,不允许返回给前端")
|
||||||
@Parameter(name = "key", description = "参数键", required = true, example = "yunai.biz.username")
|
@Parameter(name = "key", description = "参数键", required = true, example = "lidee.biz.username")
|
||||||
public CommonResult<String> getConfigKey(@RequestParam("key") String key) {
|
public CommonResult<String> getConfigKey(@RequestParam("key") String key) {
|
||||||
ConfigDO config = configService.getConfigByKey(key);
|
ConfigDO config = configService.getConfigByKey(key);
|
||||||
if (config == null) {
|
if (config == null) {
|
||||||
|
|||||||
@@ -20,7 +20,7 @@ public class ConfigPageReqVO extends PageParam {
|
|||||||
@Schema(description = "数据源名称,模糊匹配", example = "名称")
|
@Schema(description = "数据源名称,模糊匹配", example = "名称")
|
||||||
private String name;
|
private String name;
|
||||||
|
|
||||||
@Schema(description = "参数键名,模糊匹配", example = "yunai.db.username")
|
@Schema(description = "参数键名,模糊匹配", example = "lidee.db.username")
|
||||||
private String key;
|
private String key;
|
||||||
|
|
||||||
@Schema(description = "参数类型,参见 SysConfigTypeEnum 枚举", example = "1")
|
@Schema(description = "参数类型,参见 SysConfigTypeEnum 枚举", example = "1")
|
||||||
|
|||||||
@@ -27,7 +27,7 @@ public class ConfigRespVO {
|
|||||||
@ExcelProperty("参数名称")
|
@ExcelProperty("参数名称")
|
||||||
private String name;
|
private String name;
|
||||||
|
|
||||||
@Schema(description = "参数键名", requiredMode = Schema.RequiredMode.REQUIRED, example = "yunai.db.username")
|
@Schema(description = "参数键名", requiredMode = Schema.RequiredMode.REQUIRED, example = "lidee.db.username")
|
||||||
@ExcelProperty("参数键名")
|
@ExcelProperty("参数键名")
|
||||||
private String key;
|
private String key;
|
||||||
|
|
||||||
|
|||||||
@@ -25,7 +25,7 @@ public class ConfigSaveReqVO {
|
|||||||
@Size(max = 100, message = "参数名称不能超过 100 个字符")
|
@Size(max = 100, message = "参数名称不能超过 100 个字符")
|
||||||
private String name;
|
private String name;
|
||||||
|
|
||||||
@Schema(description = "参数键名", requiredMode = Schema.RequiredMode.REQUIRED, example = "yunai.db.username")
|
@Schema(description = "参数键名", requiredMode = Schema.RequiredMode.REQUIRED, example = "lidee.db.username")
|
||||||
@NotBlank(message = "参数键名长度不能为空")
|
@NotBlank(message = "参数键名长度不能为空")
|
||||||
@Size(max = 100, message = "参数键名长度不能超过 100 个字符")
|
@Size(max = 100, message = "参数键名长度不能超过 100 个字符")
|
||||||
private String key;
|
private String key;
|
||||||
|
|||||||
@@ -64,7 +64,7 @@ public class OAuth2ClientRespVO {
|
|||||||
@Schema(description = "回调URI地址", requiredMode = Schema.RequiredMode.REQUIRED, example = "https://www.iocoder.cn")
|
@Schema(description = "回调URI地址", requiredMode = Schema.RequiredMode.REQUIRED, example = "https://www.iocoder.cn")
|
||||||
private String callbackUris;
|
private String callbackUris;
|
||||||
|
|
||||||
@Schema(description = "附加信息", example = "{yunai: true}")
|
@Schema(description = "附加信息", example = "{lidee: true}")
|
||||||
private String additionalInformation;
|
private String additionalInformation;
|
||||||
|
|
||||||
@Schema(description = "创建时间", requiredMode = Schema.RequiredMode.REQUIRED)
|
@Schema(description = "创建时间", requiredMode = Schema.RequiredMode.REQUIRED)
|
||||||
|
|||||||
@@ -78,7 +78,7 @@ public class OAuth2ClientSaveReqVO {
|
|||||||
@Schema(description = "资源", example = "1024")
|
@Schema(description = "资源", example = "1024")
|
||||||
private List<String> resourceIds;
|
private List<String> resourceIds;
|
||||||
|
|
||||||
@Schema(description = "附加信息", example = "{yunai: true}")
|
@Schema(description = "附加信息", example = "{lidee: true}")
|
||||||
private String additionalInformation;
|
private String additionalInformation;
|
||||||
|
|
||||||
@Schema(description = "回调URI地址", requiredMode = Schema.RequiredMode.REQUIRED, example = "https://www.iocoder.cn")
|
@Schema(description = "回调URI地址", requiredMode = Schema.RequiredMode.REQUIRED, example = "https://www.iocoder.cn")
|
||||||
|
|||||||
Reference in New Issue
Block a user