chroe
This commit is contained in:
1 parent
64f28c17d8
commit
b9efc73025
2 files changed
+18
-16
No files matched your search
@@ -11,6 +11,13 @@ type LoginPayload struct {
|
||||
Nickname string `json:"nickname"`
|
||||
}
|
||||
|
||||
func (lp *LoginPayload) FromUser(user *model.User) {
|
||||
lp.Username = user.Username
|
||||
lp.Email = user.Email
|
||||
lp.Avatar = user.Avatar
|
||||
lp.Nickname = user.Nickname
|
||||
}
|
||||
|
||||
var UserRouteNames = []string{
|
||||
"MyTagList", "MyAddressBookList", "MyInfo", "MyAddressBookCollection", "MyPeer",
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user