package link.at17.mid.tushare.data.validator;

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;

import jakarta.validation.Constraint;
import jakarta.validation.Payload;

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