mirror of
https://github.com/bufanyun/hotgo.git
synced 2025-11-08 10:13:47 +08:00
发布v2.6.10版本,更新内容请查看:https://github.com/bufanyun/hotgo/blob/v2.0/docs/guide-zh-CN/start-update-log.md
This commit is contained in:
@@ -7,6 +7,7 @@ package model
|
||||
|
||||
import (
|
||||
"github.com/gogf/gf/v2/frame/g"
|
||||
"github.com/gogf/gf/v2/os/gtime"
|
||||
)
|
||||
|
||||
// Context 请求上下文结构
|
||||
@@ -20,17 +21,16 @@ type Context struct {
|
||||
|
||||
// Identity 通用身份模型
|
||||
type Identity struct {
|
||||
Id int64 `json:"id" description:"用户ID"`
|
||||
Pid int64 `json:"pid" description:"上级ID"`
|
||||
DeptId int64 `json:"deptId" description:"部门ID"`
|
||||
RoleId int64 `json:"roleId" description:"角色ID"`
|
||||
RoleKey string `json:"roleKey" description:"角色唯一标识符"`
|
||||
Username string `json:"username" description:"用户名"`
|
||||
RealName string `json:"realName" description:"姓名"`
|
||||
Avatar string `json:"avatar" description:"头像"`
|
||||
Email string `json:"email" description:"邮箱"`
|
||||
Mobile string `json:"mobile" description:"手机号码"`
|
||||
Exp int64 `json:"exp" description:"登录有效期截止时间戳"`
|
||||
Expires int64 `json:"expires" description:"登录有效期"`
|
||||
App string `json:"app" description:"登录应用"`
|
||||
Id int64 `json:"id" description:"用户ID"`
|
||||
Pid int64 `json:"pid" description:"上级ID"`
|
||||
DeptId int64 `json:"deptId" description:"部门ID"`
|
||||
RoleId int64 `json:"roleId" description:"角色ID"`
|
||||
RoleKey string `json:"roleKey" description:"角色唯一标识符"`
|
||||
Username string `json:"username" description:"用户名"`
|
||||
RealName string `json:"realName" description:"姓名"`
|
||||
Avatar string `json:"avatar" description:"头像"`
|
||||
Email string `json:"email" description:"邮箱"`
|
||||
Mobile string `json:"mobile" description:"手机号码"`
|
||||
App string `json:"app" description:"登录应用"`
|
||||
LoginAt *gtime.Time `json:"loginAt" description:"登录时间"`
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user