修复自定义校验异常
parent
af5176682e
commit
7f1f0d6305
|
@ -1,6 +1,7 @@
|
|||
package com.muyu.common.core.validation.custom;
|
||||
|
||||
import jakarta.validation.Constraint;
|
||||
import jakarta.validation.Payload;
|
||||
|
||||
import java.lang.annotation.*;
|
||||
|
||||
|
@ -19,4 +20,6 @@ import static java.lang.annotation.RetentionPolicy.RUNTIME;
|
|||
@Constraint(validatedBy = {SystemYesNoValidator.class})
|
||||
public @interface IsSystemYesNo {
|
||||
String message() default "{数据字典: [系统是否] - 参数不合法}";
|
||||
Class<?>[] groups() default { };
|
||||
Class<? extends Payload>[] payload() default { };
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue