package com.cf.imes.module.report.validation.datasource;

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;

/**
 * 非法sql校验注解
 *
 * @author Gqr
 * @since 2024/10/21 18:42
 */
@Target({
        ElementType.FIELD,
        ElementType.PARAMETER,
})
@Retention(RetentionPolicy.RUNTIME)
@Documented
@Constraint(
        validatedBy = {SqlIllegalValidator.class}
)
public @interface SqlIllegalValid {
    String message() default "sql语句非法输入，请检查";

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

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