sessionx

package
v1.3.75 Latest Latest
Warning

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

Go to latest
Published: Dec 13, 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 UserContext

type UserContext struct {
	TenantId              int64  // 租户编号
	TenantCode            string // 租户唯一编号
	UserId                int64  // 用户唯一编号
	UserCode              string // 用户唯一编码
	UserName              string // 用户的登录名
	Mobile                string // 电话号码
	Mail                  string // 邮箱
	JwtToken              string // jwt token
	AccessToken           string // 请求的token
	AccessTokenExpiredAt  int64  // 访问token 过期时间
	RefreshTokenExpiredAt int64  // 刷新token 过期时间
	PermissionCodes       []string
	PermissionGroup       string // 权限组
	PermissionCode        string // 当前请求的url的操作权限码
	SpanId                string
	TraceId               string
}

func (UserContext) IsDefaultTenant added in v1.1.21

func (uc UserContext) IsDefaultTenant() bool

func (UserContext) IsSuper added in v1.1.21

func (uc UserContext) IsSuper() bool

Jump to

Keyboard shortcuts

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