package com.abcxin.smart.validator.annotation;

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

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 = TelValidator.class)
@SuppressWarnings("javadoc")
public @interface Tel {
    //默认提示信息
    String message() default "{com.abcxin.smart.validator.annotation.Tel.message}";


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

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