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

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 10:42
 */
@Target({
        ElementType.FIELD,
        ElementType.PARAMETER
})
@Retention(RetentionPolicy.RUNTIME)
@Documented
@Constraint(
        validatedBy = {LabelTemplateTypeValidator.class}
)
public @interface LabelTemplateTypeValid {
    String message() default "标签模板类型不合法";

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

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