Versions in this module Expand all Collapse all v0 v0.0.1 Aug 7, 2025 Changes in this version + func GetCustomDeptFromCtx(ctx context.Context) ([]uint64, error) + func GetFilterFieldFromCtx(ctx context.Context) (string, error) + func GetRoleCustomDeptDataPermRedisKey(roleCodes []string) string + func GetRoleScopeDataPermRedisKey(roleCodes []string) string + func GetScopeFromCtx(ctx context.Context) (uint8, error) + func GetSubDeptDataPermRedisKey(departmentId uint64) string + func GetSubDeptFromCtx(ctx context.Context) ([]uint64, error) + func GetTenantRoleCustomDeptDataPermRedisKey(roleCodes []string, tenantId uint64) string + func GetTenantRoleScopeDataPermRedisKey(roleCodes []string, tenantId uint64) string + func GetTenantSubDeptDataPermRedisKey(departmentId uint64, tenantId uint64) string + func WithCustomDeptContext(ctx context.Context, deptIds string) context.Context + func WithFilterFieldContext(ctx context.Context, filterField string) context.Context + func WithScopeContext(ctx context.Context, scope string) context.Context + func WithSubDeptContext(ctx context.Context, deptIds string) context.Context + type DataPermKey string + const CustomDeptKey + const FilterFieldKey + const ScopeKey + const SubDeptKey