package com.qianwen.smartman.common.validator.importmodel; 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 javax.validation.Constraint; import javax.validation.Payload; @Target({ElementType.FIELD, ElementType.PARAMETER}) @Constraint(validatedBy = {ImportModelValueValidator.class}) @Documented @Retention(RetentionPolicy.RUNTIME) public @interface ImportModelValue { @Target({ElementType.FIELD, ElementType.PARAMETER}) @Retention(RetentionPolicy.RUNTIME) @Documented public @interface List { ImportModelValue[] value(); } String message() default "不正确的状态标识"; Class[] groups() default {}; Class[] payload() default {}; boolean required() default true; }