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

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 2025/4/18 10:21
 */
@Target({
        ElementType.FIELD,
})
@Retention(RetentionPolicy.RUNTIME)
@Documented
@Constraint(
        validatedBy = {PayChannelCodeValidator.class}
)
public @interface PayChannelCodeValid {
    String message() default "不支持的支付渠道";

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

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