package com.cf.imes.module.executor.validation.manage.type;

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;

/**
 * 使用类型校验注解
 */
@Target({ElementType.FIELD, ElementType.PARAMETER, ElementType.METHOD})
@Retention(RetentionPolicy.RUNTIME)
@Constraint(validatedBy = TypeFieldValidator.class)
@Documented
public @interface ValidTypeField {
    String message() default "状态值必须为 0：核销、1：排单 或 2：补板";

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

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