feat:新增值联动和扩展覆盖属性
This commit is contained in:
parent
b110813474
commit
b1232fc112
@ -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 "不是合法的电话号码!";
|
||||
|
Loading…
Reference in New Issue
Block a user