runtimecache

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Sep 27, 2024 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ProviderSetRuntimeCache = wire.NewSet(NewRuntimeCache)

ProviderSetRuntimeCache is runtime_cache providers.

Functions

This section is empty.

Types

type RuntimeCache

type RuntimeCache interface {
	// GetUserTeamList 获取用户团队列表
	GetUserTeamList(ctx context.Context, userID uint32) []*model.SysTeam
	// AppendUserTeamList 设置用户团队列表
	AppendUserTeamList(ctx context.Context, userID uint32, teams []*model.SysTeam)
	// RemoveUserTeamList 移除用户团队列表
	RemoveUserTeamList(ctx context.Context, userID uint32, teamIDs []uint32)
	// ClearUserTeamList 清空用户团队列表
	ClearUserTeamList(ctx context.Context, userID uint32)
	// GetTeamAdminList 获取团队管理员列表
	GetTeamAdminList(ctx context.Context, teamID uint32) []*bizmodel.SysTeamMember
	// AppendTeamAdminList 设置团队管理员列表
	AppendTeamAdminList(ctx context.Context, teamID uint32, admins []*bizmodel.SysTeamMember)
	// RemoveTeamAdminList 移除团队管理员列表
	RemoveTeamAdminList(ctx context.Context, teamID uint32, adminIDs []uint32)
	// ClearTeamAdminList 清空团队管理员列表
	ClearTeamAdminList(ctx context.Context, teamID uint32)

	// GetUser 获取用户信息
	GetUser(ctx context.Context, userID uint32) *model.SysUser
	// GetTeam 获取团队信息
	GetTeam(ctx context.Context, teamID uint32) *model.SysTeam

	// AppendUser 设置用户信息
	AppendUser(ctx context.Context, user *model.SysUser)
	// AppendTeam 设置团队信息
	AppendTeam(ctx context.Context, team *model.SysTeam)
}

RuntimeCache 运行时缓存的环境变量

func GetRuntimeCache

func GetRuntimeCache() RuntimeCache

GetRuntimeCache 获取运行时缓存的环境变量

func NewRuntimeCache

func NewRuntimeCache(d *data.Data) RuntimeCache

NewRuntimeCache 创建运行时缓存的环境变量

Jump to

Keyboard shortcuts

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