Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type User ¶
type User struct { UserID int `json:"uid"` IsOwner bool `json:"is_owner"` UserName string `json:"user_name"` RoleID int `json:"role_id"` Token string `json:"token"` LoginAt time.Time `json:"login_at"` LoginDuration time.Duration `json:"login_duration"` ExpiresAt time.Time `json:"expires_at"` AreaID uint64 `json:"area_id"` Option map[string]interface{} `json:"option"` Key string }
func GetUserByToken ¶
func (User) BelongsToArea ¶
Click to show internal directories.
Click to hide internal directories.