code refactor

This commit is contained in:
MaysWind
2020-11-08 00:40:45 +08:00
parent 9bd341fb0e
commit 7e8b5710c1
12 changed files with 127 additions and 111 deletions
+3 -4
View File
@@ -1,8 +1,7 @@
package models
type AuthResponse struct {
Token string `json:"token"`
Username string `json:"username,omitempty"`
Nickname string `json:"nickname,omitempty"`
Need2FA bool `json:"need2FA"`
Token string `json:"token"`
Need2FA bool `json:"need2FA"`
User *UserBasicInfo `json:"user"`
}