package com.bcxin.Infrastructures.validations;

import javax.validation.Constraint;
import javax.validation.Payload;
import java.lang.annotation.*;

@Target({ElementType.FIELD})
@Retention(RetentionPolicy.RUNTIME)
@Constraint(validatedBy = TelephoneValidator.class)
@Documented
public @interface Telephone {
    String message() default "手机号码无效";

    Class<?>[] groups() default {};

    Class<? extends Payload>[] payload() default {};
}
