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