You've already forked FrameTour-BE
refactor(scenic): 重构批量配置请求参数结构
All checks were successful
ZhenTu-BE/pipeline/head This commit looks good
All checks were successful
ZhenTu-BE/pipeline/head This commit looks good
- 将 BatchConfigRequest 中的 BatchConfigItem 类移除 - 使用 UpdateConfigRequest 替代 BatchConfigItem- 在 UpdateConfigRequest 中添加 configType 字段 - 更新相关代码以适应新的请求参数结构
This commit is contained in:
@@ -12,15 +12,5 @@ public class BatchConfigRequest {
|
|||||||
@JsonProperty("configs")
|
@JsonProperty("configs")
|
||||||
@NotEmpty(message = "配置列表不能为空")
|
@NotEmpty(message = "配置列表不能为空")
|
||||||
@Valid
|
@Valid
|
||||||
private List<BatchConfigItem> configs;
|
private List<UpdateConfigRequest> configs;
|
||||||
|
|
||||||
@Data
|
|
||||||
public static class BatchConfigItem {
|
|
||||||
@JsonProperty("configKey")
|
|
||||||
@NotEmpty(message = "配置键不能为空")
|
|
||||||
private String configKey;
|
|
||||||
|
|
||||||
@JsonProperty("configValue")
|
|
||||||
private String configValue;
|
|
||||||
}
|
|
||||||
}
|
}
|
@@ -1,6 +1,7 @@
|
|||||||
package com.ycwl.basic.integration.scenic.dto.config;
|
package com.ycwl.basic.integration.scenic.dto.config;
|
||||||
|
|
||||||
import com.fasterxml.jackson.annotation.JsonProperty;
|
import com.fasterxml.jackson.annotation.JsonProperty;
|
||||||
|
import jakarta.validation.constraints.NotBlank;
|
||||||
import lombok.Data;
|
import lombok.Data;
|
||||||
|
|
||||||
@Data
|
@Data
|
||||||
@@ -10,7 +11,10 @@ public class UpdateConfigRequest {
|
|||||||
|
|
||||||
@JsonProperty("configValue")
|
@JsonProperty("configValue")
|
||||||
private String configValue;
|
private String configValue;
|
||||||
|
|
||||||
|
@JsonProperty("configType")
|
||||||
|
private String configType;
|
||||||
|
|
||||||
@JsonProperty("description")
|
@JsonProperty("description")
|
||||||
private String description;
|
private String description;
|
||||||
}
|
}
|
Reference in New Issue
Block a user