mirror of
https://gitee.com/dromara/MaxKey.git
synced 2026-05-14 12:32:09 +08:00
添加state校验
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user