feat:新增值联动和扩展覆盖属性

This commit is contained in:
wangyu 2021-09-27 21:57:35 +08:00
parent b110813474
commit b1232fc112

View File

@ -1,7 +1,7 @@
package com.flyfish.framework.validation.annotations;
import com.flyfish.framework.validation.enums.PhoneType;
import com.flyfish.framework.validation.validators.IsJSONStringValidator;
import com.flyfish.framework.validation.validators.PhoneValidator;
import javax.validation.Constraint;
import javax.validation.Payload;
@ -20,7 +20,7 @@ import static java.lang.annotation.RetentionPolicy.RUNTIME;
@Target({METHOD, FIELD, ANNOTATION_TYPE, CONSTRUCTOR, PARAMETER})
@Retention(RUNTIME)
@Documented
@Constraint(validatedBy = {IsJSONStringValidator.class})
@Constraint(validatedBy = {PhoneValidator.class})
public @interface Phone {
String message() default "不是合法的电话号码!";