tenant

package
v1.0.3 Latest Latest
Warning

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

Go to latest
Published: Apr 28, 2026 License: Apache-2.0 Imports: 0 Imported by: 0

Documentation

Overview

Package tenant 定义 IAM 多租户在请求/Casbin/授权表中的统一租户标识约定。

Index

Constants

View Source
const DefaultID = "fangcun"

DefaultID 未在请求上下文显式指定租户时使用的租户 ID(与 tenants.id、Casbin domain、authz.tenant_id 对齐)。

View Source
const DefaultTenantID uint64 = 1

DefaultTenantID 是当前默认业务租户在 JWT / org 语义上的数值 ID。 这与 system bootstrap SQL 里 fangcun 租户当前的 org_id=1 约定对齐。

View Source
const PlatformID = "platform"

PlatformID 是平台控制面的固定租户 / domain 标识。

Variables

This section is empty.

Functions

This section is empty.

Types

This section is empty.

Jump to

Keyboard shortcuts

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