feat: 增加唯一字段验证

This commit is contained in:
wangyu 2021-09-29 11:38:57 +08:00
parent 372ae99c73
commit 9ef064b4eb
1 changed files with 1 additions and 1 deletions

View File

@ -26,7 +26,7 @@ public @interface UniqueField {
String message() default "集合中的关键字段不唯一!";
// 唯一字段
String value();
String value() default "";
//分组
Class<?>[] groups() default {};