package com.bcxin.Infrastructures.validations;

import javax.validation.Constraint;
import javax.validation.Payload;
import java.lang.annotation.*;

@Target({ElementType.FIELD, ElementType.TYPE})
@Retention(RetentionPolicy.RUNTIME)
@Constraint(validatedBy = CredentialValidator.class)
@Documented
public @interface Credential {
    String message() default "${credential.invalid:证件号无效}";

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

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