package com.rrtx.services.common.annotation;

import com.rrtx.services.common.validator.MobileValidator;

import javax.validation.Constraint;
import javax.validation.Payload;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

/**
 * ClassName: IsMobile<br>
 * Description: IsMobile <br>
 * Company: rrtx
 *
 * @author rrtx
 * @version v1.0.0    2019/7/24 4:42 PM  xugz    文件初始创建
 */
@Target({ElementType.FIELD})
@Retention(RetentionPolicy.RUNTIME)
@Constraint(validatedBy = MobileValidator.class)
public @interface IsMobile {

	String message();

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

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