Documentation
¶
Index ¶
- func DelTenant(ctx context.Context, code string) error
- func DoToTenantMap(tenants ...*tenant.Info) map[string]string
- func GetTenant(ctx context.Context, code string) (*tenant.Info, error)
- func GetTenantCodes(ctx context.Context) ([]string, error)
- func GetUserAuthProject(ctx context.Context, userID int64) ([]*userDataAuth.Project, error)
- func InitTenant(ctx context.Context, tenants ...*tenant.Info) error
- func SetTenant(ctx context.Context, t *tenant.Info) error
- type UserOnline
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetUserAuthProject ¶
读取用户数据权限缓存(通用,ctx不限,但需uid传参)
Types ¶
Click to show internal directories.
Click to hide internal directories.