package com.abcxin.smart.validator.annotation;

import com.abcxin.smart.validator.constraint.PhoneValidator;

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

import static java.lang.annotation.RetentionPolicy.RUNTIME;

/**
 * Created by Dareen on 2018/3/24.
 */
@Retention(RUNTIME)
@Constraint(validatedBy = PhoneValidator.class)
@SuppressWarnings("javadoc")
public @interface Phone {
    //默认提示信息
    String message() default "{com.abcxin.smart.validator.annotation.Phone.message}";


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

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