package com.cf.imes.module.system.validation.sms;

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

/**
 * 短信接收状态校验注解
 *
 * @author Gqr
 * @since 2024/10/15 13:46
 */
@Target({
        ElementType.FIELD,
})
@Retention(RetentionPolicy.RUNTIME)
@Documented
@Constraint(
        validatedBy = {SmsReceiveStatusValidator.class}
)
public @interface SmsReceiveStatusValid {
    String message() default "短信接收状态不合法";

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

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