package cn.common.common.validation;


import cn.common.common.validation.validator.IsNumberStrValidator;

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

/**
 * 数字字符串验证注解
 * @author created by Singer email:singer-coder@qq.com
 * @time 2017/11/17
 * @description 数字字符串验证注解
 */
@Documented
@Target({ElementType.FIELD,ElementType.PARAMETER})
@Retention(RetentionPolicy.RUNTIME)
@Constraint(validatedBy = IsNumberStrValidator.class)
public @interface IsNumberStr {



    String message() default "必须为数字";

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

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

}
