mirror of
https://github.com/continew-org/continew-admin.git
synced 2025-10-15 00:57:14 +08:00
fix: 修复保存生成配置校验失效的问题,并优化部分提示效果
Gitee fixes #I8GWVY
This commit is contained in:
@@ -21,6 +21,7 @@ import java.io.Serializable;
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
|
||||
import jakarta.validation.Valid;
|
||||
import jakarta.validation.constraints.NotEmpty;
|
||||
import jakarta.validation.constraints.NotNull;
|
||||
|
||||
@@ -47,6 +48,7 @@ public class GenConfigReq implements Serializable {
|
||||
/**
|
||||
* 字段配置信息
|
||||
*/
|
||||
@Valid
|
||||
@Schema(description = "字段配置信息")
|
||||
@NotEmpty(message = "字段配置不能为空")
|
||||
private List<FieldConfigDO> fieldConfigs = new ArrayList<>();
|
||||
@@ -54,6 +56,7 @@ public class GenConfigReq implements Serializable {
|
||||
/**
|
||||
* 生成配置信息
|
||||
*/
|
||||
@Valid
|
||||
@Schema(description = "生成配置信息")
|
||||
@NotNull(message = "生成配置不能为空")
|
||||
private GenConfigDO genConfig;
|
||||
|
Reference in New Issue
Block a user