Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MenuTreeNode ¶
type MenuTreeNode struct { ID string `json:"id"` Icon string `json:"icon"` Label string `json:"label"` Alias string `json:"alias"` Children []MenuTreeNode `json:"children"` Privilege []string `json:"privilege"` }
func NewMenuTreeNodeFromUnionUserResourceInfo ¶
func NewMenuTreeNodeFromUnionUserResourceInfo(resourceInfo *UnionUserResourceInfoType) []MenuTreeNode
func (*MenuTreeNode) Append ¶
func (menu *MenuTreeNode) Append(node MenuTreeNode)
type UnionUserBaseInfoType ¶
type UnionUserBaseInfoType struct { Avatar string `json:"avatar"` LoginAppName string `json:"loginAppName"` LoginDeviceInfo string `json:"loginDeviceInfo"` LoginIP string `json:"loginIp"` LoginName string `json:"loginName"` LoginPwd string `json:"loginPwd"` LoginUserID int `json:"loginUserId"` LoginUserNikeName string `json:"loginUserNikeName"` MaxTokenTime int `json:"maxTokenTime"` UserType int `json:"userType"` WxUserID string `json:"wxUserId"` }
基于产研的登录方式存取员工基本信息
func (*UnionUserBaseInfoType) Get ¶
func (userInfo *UnionUserBaseInfoType) Get(token string, appId string) error
func (*UnionUserBaseInfoType) Set ¶
func (userInfo *UnionUserBaseInfoType) Set(token string, appId string) error
type UnionUserHotelRelationInfoType ¶
type UnionUserHotelRelationInfoType []struct { UserID int `json:"userId"` HotelCode string `json:"hotelCode"` HotelName string `json:"hotelName"` CompanyID int `json:"companyId"` DepartmentID int `json:"departmentId"` DefaultHotel int `json:"defaultHotel"` }
基于产研的登录方式存储员工酒店信息
func (*UnionUserHotelRelationInfoType) Get ¶
func (hotelRelate *UnionUserHotelRelationInfoType) Get(token string, appId string) error
func (*UnionUserHotelRelationInfoType) Set ¶
func (hotelRelate *UnionUserHotelRelationInfoType) Set(token string, appId string) error
type UnionUserInfoType ¶
type UnionUserInfoType struct { Token string `json:"token"` AppID int `json:"appId"` LoginTime int64 `json:"loginTime"` LoginInVO UnionUserBaseInfoType `json:"loginInVO"` ResourceModelList UnionUserResourceInfoType `json:"resourceModelList"` UserHotelMappingRelationsVOList UnionUserHotelRelationInfoType `json:"userHotelMappingRelationsVOList"` }
产研登录发送过来的全量数据类型
type UnionUserLoginTimeType ¶
type UnionUserLoginTimeType struct {
LoginTime int64 `json:"loginTime"`
}
基于产研的登录方式存储员工登录时间信息
func (*UnionUserLoginTimeType) Get ¶
func (loginTime *UnionUserLoginTimeType) Get(token string, appId string) error
func (*UnionUserLoginTimeType) Set ¶
func (loginTime *UnionUserLoginTimeType) Set(token string, appId string) error
type UnionUserResourceInfoType ¶
type UnionUserResourceInfoType []UnionUserResourceInfoTypeItem
基于产研的登录方式存储员工资源信息
func (*UnionUserResourceInfoType) Get ¶
func (resource *UnionUserResourceInfoType) Get(token string, appId string) error
func (*UnionUserResourceInfoType) Set ¶
func (resource *UnionUserResourceInfoType) Set(token string, appId string) error
type UnionUserResourceInfoTypeItem ¶
type UnionUserResourceInfoTypeItem struct { CreateUserID int `json:"createUserId"` Description string `json:"description"` ID int `json:"id"` ImageURL string `json:"imageUrl"` IsBackURL int `json:"isBackUrl"` Name string `json:"name"` ParentID int `json:"parentId"` Status int `json:"status"` TopParentID int `json:"topParentId"` Type int `json:"type"` URL string `json:"url"` URLIndex int `json:"urlIndex"` URLType int `json:"urlType"` }
func (*UnionUserResourceInfoTypeItem) CreateMenuItem ¶
func (resourceItem *UnionUserResourceInfoTypeItem) CreateMenuItem() MenuTreeNode
type WorkerTokenType ¶
type WorkerTokenType struct { WorkerId string `json:"worker_id"` UserId string `json:"user_id"` LoginTime int64 `json:"login_time"` UnionToken string `json:"union_token"` AppId string `json:"app_id"` }
登录员工信息
func (WorkerTokenType) GetUnionUserBaseInfo ¶
func (token WorkerTokenType) GetUnionUserBaseInfo() (*UnionUserBaseInfoType, error)
func (WorkerTokenType) GetUnionUserHotelRelationInfo ¶
func (token WorkerTokenType) GetUnionUserHotelRelationInfo() (*UnionUserHotelRelationInfoType, error)
func (WorkerTokenType) GetUnionUserResourceInfo ¶
func (token WorkerTokenType) GetUnionUserResourceInfo() (*UnionUserResourceInfoType, error)
Click to show internal directories.
Click to hide internal directories.