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

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,
})
@Retention(RetentionPolicy.RUNTIME)
@Documented
@Constraint(
        validatedBy = {PartsCategoryValidator.class}
)
public @interface PartsCategoryValid {

    String message() default "配件主类不合法，1：封边条，2：五金，3：组件";

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

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

}
