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

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/11/8 13:59
 */
@Target({
        ElementType.FIELD,
        ElementType.PARAMETER,
})
@Retention(RetentionPolicy.RUNTIME)
@Documented
@Constraint(
        validatedBy = {SystemConfigTypeEnumValidator.class}
)
public @interface SystemConfigTypeEnumValid {
    String message() default "配置类型非法输入，请检查";

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

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