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

/**
 * @projectName: cf_imes_server
 * @author: 晨丰科技
 * @date: 2024/8/19 9:56
 */

import jakarta.validation.Constraint;
import jakarta.validation.Payload;
import java.lang.annotation.*;

/**
 * 生产单统计维度单位入参校验注解
 */
@Target({
        ElementType.METHOD,
        ElementType.FIELD,
        ElementType.ANNOTATION_TYPE,
        ElementType.CONSTRUCTOR,
        ElementType.PARAMETER,
        ElementType.TYPE_USE
})
@Retention(RetentionPolicy.RUNTIME)
@Documented
@Constraint(
        validatedBy = {OrgStatisticsUnitInEnumValidator.class}
)
public @interface OrgStatisticsUnitInEnum {
    String message() default "生产单统计维度单位[unit]错误，请检查";

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

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