添加state校验

This commit is contained in:
orangebabu
2024-08-19 15:18:20 +08:00
parent bab15aee23
commit da9a0387c1
3 changed files with 27 additions and 13 deletions

View File

@@ -15,6 +15,9 @@ public class ScanCode {
@NotEmpty(message = "登录方式不能为空")
String authType;
@NotEmpty(message = "state不能为空")
String state;
public @NotEmpty(message = "二维码内容不能为空") String getCode() {
return code;
}
@@ -30,4 +33,12 @@ public class ScanCode {
public void setAuthType(@NotEmpty(message = "登录方式不能为空") String authType) {
this.authType = authType;
}
public @NotEmpty(message = "state不能为空") String getState() {
return state;
}
public void setState(@NotEmpty(message = "state不能为空") String state) {
this.state = state;
}
}