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

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/18 16:37
 */
@Target({
        ElementType.FIELD,
        ElementType.PARAMETER
})
@Retention(RetentionPolicy.RUNTIME)
@Documented
@Constraint(
        validatedBy = {OrderStatusValidator.class}
)
public @interface OrderStatusValid {
    String message() default "订单状态不合法，请检查";

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

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