package com.cf.imes.module.executor.validation.veneer;

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 = VeneerDimensionRangeValidator.class)
public @interface VeneerDimensionRangeValid {

    /**
     * 校验失败提示。
     *
     * @return 国际化消息模板
     */
    String message();

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

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