package com.zjrs.appcomm.validation;

import jakarta.validation.Constraint;
import java.lang.annotation.*;

/**
 * 验证是否为手机号码
 * @author Petty
 */
@Constraint(validatedBy = NumberValidator.class)
@Documented
@Target({ElementType.PARAMETER,ElementType.FIELD})
@Retention(RetentionPolicy.RUNTIME)
public @interface Number {
    String message() default "无效数字";
    Class[] groups() default {};
    Class[] payload() default {};
}
