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 运行时缓存的环境变量
Click to show internal directories.
Click to hide internal directories.