Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Sessions = &sync.Map{}
View Source
var UsersList = make([]*User, 0)
View Source
var UsersMap = &sync.Map{}
Functions ¶
func GetUserInfo ¶
Types ¶
type TokenInfo ¶
type TokenInfo struct { Code int `json:"code"` Data struct { SubTokenObj struct { Message string `json:"message"` SsoToken string `json:"ssoToken"` Status int `json:"status"` UserSession struct { OaSession struct { Dept string `json:"fdDept"` Email string `json:"fdEmail"` Mobile string `json:"fdMobileNo"` } Facility string `json:"facility"` HeadImgUrl string `json:"headImgUrl"` SysDepartmentId string `json:"sysDepartmentId"` UserId string `json:"userId"` UserName string `json:"userName"` UserType string `json:"userType"` } `json:"userSession"` } `json:"subTokenObj"` } `json:"data"` Message string `json:"message"` }
subToken认证,返回的用户信息
type ToneUserRes ¶
Click to show internal directories.
Click to hide internal directories.