Discover Packages
github.com/milkomeda-org/auth-gateway
serializer
user
package
Version:
v0.0.0-...-1b41cfb
Opens a new window with list of versions in this module.
Published: Dec 24, 2020
License: MIT
Opens a new window with license information.
Imports: 2
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
Documentation
¶
BuildUserResponse 序列化用户响应
type Session struct {
UserName string `json:"user_name"`
UserID int `json:"user_id"`
NickName string `json:"nick_name"`
Avatar string `json:"avatar"`
Roles map[int ]string `json:"roles"`
}
UserSession 用户session信息
type User struct {
ID int `json:"id"`
UserName string `json:"user_name"`
Nickname string `json:"nickname"`
Status int `json:"status"`
Avatar string `json:"avatar"`
CreatedAt int64 `json:"created_at"`
}
User 用户序列化器
Source Files
¶
Click to show internal directories.
Click to hide internal directories.