You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
19 lines
452 B
19 lines
452 B
6 years ago
|
package ${basePackage}.frame.validation;
|
||
|
|
||
|
import javax.validation.Constraint;
|
||
|
import javax.validation.Payload;
|
||
|
import java.lang.annotation.*;
|
||
|
|
||
|
@Target({ElementType.FIELD})
|
||
|
@Retention(RetentionPolicy.RUNTIME)
|
||
|
@Constraint(validatedBy = DictValidator.class)
|
||
|
public @interface Dict {
|
||
|
String message() default "字典项错误";
|
||
|
|
||
|
String name() default "";
|
||
|
|
||
|
Class<?>[] groups() default {};
|
||
|
|
||
|
Class<? extends Payload>[] payload() default {};
|
||
|
}
|