Documentation
¶
Index ¶
- type ISessionInfo
- type ISessionThird
- type SThird
- type SessionInfo
- func (s *SessionInfo) GetAppKey() string
- func (s *SessionInfo) GetClaim() map[string]string
- func (s *SessionInfo) GetDeptId() string
- func (s *SessionInfo) GetDeptPath() string
- func (s *SessionInfo) GetDeviceType() string
- func (s *SessionInfo) GetEmail() string
- func (s *SessionInfo) GetHost() string
- func (s *SessionInfo) GetNickName() string
- func (s *SessionInfo) GetPhone() string
- func (s *SessionInfo) GetRoleId() string
- func (s *SessionInfo) GetSessionId() string
- func (s *SessionInfo) GetTenantId() string
- func (s *SessionInfo) GetThird() map[string]ISessionThird
- func (s *SessionInfo) GetThirdPlatform(platform string) (ISessionThird, bool)
- func (s *SessionInfo) GetUserId() string
- func (s *SessionInfo) GetUsername() string
- func (s *SessionInfo) LoadFromClaim(val map[string]string) error
- func (s *SessionInfo) SetThird(platform string, info ISessionThird) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ISessionInfo ¶
type ISessionInfo interface {
GetAppKey() string
GetHost() string
GetDeviceType() string
GetUserId() string
GetUsername() string
GetNickName() string
GetEmail() string
GetPhone() string
GetRoleId() string
GetDeptId() string
GetDeptPath() string
GetTenantId() string
GetSessionId() string
GetThird() map[string]ISessionThird
GetThirdPlatform(platform string) (ISessionThird, bool)
SetThird(platform string, info ISessionThird) error
LoadFromClaim(map[string]string) error
GetClaim() map[string]string
}
type ISessionThird ¶
type SessionInfo ¶
type SessionInfo struct {
UserId string `json:"userId"` // 用户id
Username string `json:"username"` // 用户账号
NickName string `json:"nickName"` // 用户昵称
Email string `json:"email"` // 用户邮箱
Phone string `json:"phone"` // 用户手机
TenantId string `json:"tenantId"` // 租户id
RoleId string `json:"roleId"` // 角色id
DeptId string `json:"deptId"` // 部门id
DeptPath string `json:"deptPath"` // 部门路径
HostName string `json:"hostName"` // 主机名
DeviceType string `json:"deviceType"` // 设备类型
AppKey string `json:"appKey"` // 应用key
SessionId string `json:"sessionId"` // 会话id
Third *jsonfield.StrJson[map[string]ISessionThird] `json:"third"` // 第三方登录信息
}
func (*SessionInfo) GetAppKey ¶
func (s *SessionInfo) GetAppKey() string
func (*SessionInfo) GetClaim ¶
func (s *SessionInfo) GetClaim() map[string]string
func (*SessionInfo) GetDeptId ¶
func (s *SessionInfo) GetDeptId() string
func (*SessionInfo) GetDeptPath ¶
func (s *SessionInfo) GetDeptPath() string
func (*SessionInfo) GetDeviceType ¶
func (s *SessionInfo) GetDeviceType() string
func (*SessionInfo) GetEmail ¶
func (s *SessionInfo) GetEmail() string
func (*SessionInfo) GetHost ¶
func (s *SessionInfo) GetHost() string
func (*SessionInfo) GetNickName ¶
func (s *SessionInfo) GetNickName() string
func (*SessionInfo) GetPhone ¶
func (s *SessionInfo) GetPhone() string
func (*SessionInfo) GetRoleId ¶
func (s *SessionInfo) GetRoleId() string
func (*SessionInfo) GetSessionId ¶
func (s *SessionInfo) GetSessionId() string
func (*SessionInfo) GetTenantId ¶
func (s *SessionInfo) GetTenantId() string
func (*SessionInfo) GetThird ¶
func (s *SessionInfo) GetThird() map[string]ISessionThird
GetThird implements ISessionInfo.
func (*SessionInfo) GetThirdPlatform ¶
func (s *SessionInfo) GetThirdPlatform(platform string) (ISessionThird, bool)
GetThirdPlatform implements ISessionInfo.
func (*SessionInfo) GetUserId ¶
func (s *SessionInfo) GetUserId() string
func (*SessionInfo) GetUsername ¶
func (s *SessionInfo) GetUsername() string
func (*SessionInfo) LoadFromClaim ¶
func (s *SessionInfo) LoadFromClaim(val map[string]string) error
func (*SessionInfo) SetThird ¶
func (s *SessionInfo) SetThird(platform string, info ISessionThird) error
SetThird implements ISessionInfo.
Click to show internal directories.
Click to hide internal directories.