package com.zjrs.appcomm.validation;

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

/**
 * @author Pettyfer
 */
@Constraint(validatedBy = NumberLettersValidator.class)
@Documented
@Target({ElementType.PARAMETER,ElementType.FIELD})
@Retention(RetentionPolicy.RUNTIME)
public @interface NumberLetters {

    String message() default "只允许输入数字和字母";
    Class[] groups() default {};
    Class[] payload() default {};

}
