mirror of
				https://github.com/continew-org/continew-admin.git
				synced 2025-10-31 00:57:13 +08:00 
			
		
		
		
	修复:修复分组校验导致无分组字段校验失效的问题
This commit is contained in:
		| @@ -18,6 +18,8 @@ package top.charles7c.cnadmin.common.base; | |||||||
|  |  | ||||||
| import java.io.Serializable; | import java.io.Serializable; | ||||||
|  |  | ||||||
|  | import javax.validation.groups.Default; | ||||||
|  |  | ||||||
| import lombok.Data; | import lombok.Data; | ||||||
|  |  | ||||||
| /** | /** | ||||||
| @@ -34,10 +36,10 @@ public class BaseRequest implements Serializable { | |||||||
|     /** |     /** | ||||||
|      * 分组校验-创建 |      * 分组校验-创建 | ||||||
|      */ |      */ | ||||||
|     public @interface Create {} |     public interface Create extends Default {} | ||||||
|  |  | ||||||
|     /** |     /** | ||||||
|      * 分组校验-修改 |      * 分组校验-修改 | ||||||
|      */ |      */ | ||||||
|     public @interface Update {} |     public interface Update extends Default {} | ||||||
| } | } | ||||||
|   | |||||||
| @@ -66,6 +66,7 @@ public class DeptRequest extends BaseRequest { | |||||||
|      * 部门排序 |      * 部门排序 | ||||||
|      */ |      */ | ||||||
|     @Schema(description = "部门排序") |     @Schema(description = "部门排序") | ||||||
|  |     @NotNull(message = "部门排序不能为空") | ||||||
|     private Integer deptSort; |     private Integer deptSort; | ||||||
|  |  | ||||||
|     /** |     /** | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user