Documentation ¶
Index ¶
Constants ¶
View Source
const (
// ContextKey 上下文变量存储键名
ContextKey = "ContextKey"
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BasicUserInfo ¶
type BasicUserInfo struct { Role uint `json:"role"` Id int64 `json:"id"` CompanyId int64 `json:"company_id"` Email string `json:"email"` Username string `json:"username"` OpenId string `json:"open_id"` SessionKey string `json:"session_key"` IsStaff bool `json:"is_staff"` IsSuper bool `json:"is_super"` }
type ChangePasswordReq ¶
type Context ¶
type Context struct { Session *ghttp.Session // 当前Session管理对象 User *ContextUser // 上下文用户信息 }
Context 请求上下文结构
type ContextUser ¶
ContextUser 请求上下文中的用户信息
type ForgetPasswordReq ¶
type ResetEmailContext ¶
type ResetPasswordReq ¶
type UserLoginReq ¶
Click to show internal directories.
Click to hide internal directories.