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.
Click to show internal directories.
Click to hide internal directories.