user

package
v0.0.1-202404151115 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 15, 2024 License: Apache-2.0 Imports: 0 Imported by: 0

Documentation

Index

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
	GetThird() map[string]interface{}
	GetSessionId() string
	SetThird(platform string, info interface{}) error

	LoadFromClaim(map[string]string) error
	GetClaim() map[string]string
}

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      map[string]interface{} `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]interface{}

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 interface{}) error

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL