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")
|
||||
@NotEmpty(message = "配置列表不能为空")
|
||||
@Valid
|
||||
private List<BatchConfigItem> configs;
|
||||
|
||||
@Data
|
||||
public static class BatchConfigItem {
|
||||
@JsonProperty("configKey")
|
||||
@NotEmpty(message = "配置键不能为空")
|
||||
private String configKey;
|
||||
|
||||
@JsonProperty("configValue")
|
||||
private String configValue;
|
||||
}
|
||||
private List<UpdateConfigRequest> configs;
|
||||
}
|
@@ -1,6 +1,7 @@
|
||||
package com.ycwl.basic.integration.scenic.dto.config;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonProperty;
|
||||
import jakarta.validation.constraints.NotBlank;
|
||||
import lombok.Data;
|
||||
|
||||
@Data
|
||||
@@ -10,7 +11,10 @@ public class UpdateConfigRequest {
|
||||
|
||||
@JsonProperty("configValue")
|
||||
private String configValue;
|
||||
|
||||
|
||||
@JsonProperty("configType")
|
||||
private String configType;
|
||||
|
||||
@JsonProperty("description")
|
||||
private String description;
|
||||
}
|
Reference in New Issue
Block a user