解决未使用groups报错
parent
9b3e1b40ab
commit
2b4c187dc3
1
pom.xml
1
pom.xml
|
@ -171,6 +171,7 @@
|
|||
<groupId>io.swagger.core.v3</groupId>
|
||||
<artifactId>swagger-annotations-jakarta</artifactId>
|
||||
</dependency>
|
||||
|
||||
</dependencies>
|
||||
|
||||
</project>
|
||||
|
|
|
@ -7,7 +7,7 @@ import java.util.Arrays;
|
|||
|
||||
public enum SysPayType {
|
||||
|
||||
AlIPAY("aliPay","支付宝"),
|
||||
AlI_PAY("aliPay","支付宝"),
|
||||
WECHAT_PAY("wechatPay","微信支付"),
|
||||
JD_PAY("jdPay","京东支付");
|
||||
|
||||
|
|
|
@ -5,12 +5,14 @@ import jakarta.validation.Payload;
|
|||
|
||||
import java.lang.annotation.*;
|
||||
|
||||
import static java.lang.annotation.RetentionPolicy.RUNTIME;
|
||||
|
||||
@Target({ElementType.FIELD})
|
||||
@Retention(RetentionPolicy.RUNTIME)
|
||||
@Retention(RUNTIME)
|
||||
@Documented
|
||||
@Constraint(validatedBy = {SystemYesNoValidator.class})
|
||||
public @interface IsSystemYesNo {
|
||||
String message() default "数据字典不合法";
|
||||
String message() default "数据字典:[系统是否] - 参数不合法";
|
||||
Class<?>[] groups() default { };
|
||||
Class<? extends Payload>[] payload() default { };
|
||||
|
||||
|
|
Loading…
Reference in New Issue