package cn.lihongjie.coal.validator;

import static java.lang.annotation.ElementType.*;
import static java.lang.annotation.RetentionPolicy.RUNTIME;

import jakarta.validation.*;
import jakarta.validation.constraints.*;

import java.lang.annotation.*;
import java.lang.annotation.Documented;

@NotNull
@Target({ TYPE, ANNOTATION_TYPE, TYPE_USE })
@Require(field = "sortKey")
@Retention(RUNTIME)
@Constraint(validatedBy = { })
@Documented
@ReportAsSingleViolation
public @interface RequireSortKey {

    String message() default "{require.sortKey}";

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

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