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

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/9/20 15:24
 */
@Target({
        ElementType.METHOD,
        ElementType.FIELD,
        ElementType.ANNOTATION_TYPE,
        ElementType.CONSTRUCTOR,
        ElementType.PARAMETER,
        ElementType.TYPE_USE
})
@Retention(RetentionPolicy.RUNTIME)
@Documented
@Constraint(
        validatedBy = {CssClassValidator.class}
)
public @interface CssClassValid {
    String message() default "颜色格式错误，请检查";

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

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