package quant.rich.emoney.interfaces;

import java.lang.annotation.Documented;
import java.lang.annotation.Target;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;

import jakarta.validation.Constraint;
import jakarta.validation.Payload;
import quant.rich.emoney.validator.EmoneyRequestConfigValidator;

@Documented
@Constraint(validatedBy = EmoneyRequestConfigValidator.class)
@Target({ ElementType.TYPE })
@Retention(RetentionPolicy.RUNTIME)
public @interface ValidEmoneyRequestConfig {
    String message() default "非法的 EmoneyRequestConfig";
    Class<?>[] groups() default {};
    Class<? extends Payload>[] payload() default {};
}
