技能 编程开发 后台多租户功能抽象组件

后台多租户功能抽象组件

v20260825
webiny-admin-tenancy-catalog
本模块为管理后台应用提供了多租户架构所需的关键抽象、类型和自定义钩子。它帮助开发者管理租户上下文,判断租户状态(如根租户),并执行启用或禁用租户等核心操作,确保应用开发结构化和隔离性。
获取技能
500 次下载
概览

admin/tenancy

How to Use

  1. Find the abstraction you need below
  2. You MUST read the source file to get the exact interface and types!
  3. Import: import { Name } from "<importPath>";

Abstractions


Name: IsNotRootTenant Import: import { IsNotRootTenant } from "webiny/admin/tenancy" Source: @webiny/tenant-manager/admin/IsRootTenant.tsx


Name: IsRootTenant Import: import { IsRootTenant } from "webiny/admin/tenancy" Source: @webiny/tenant-manager/admin/IsRootTenant.tsx


Name: IsTenant Import: import { IsTenant } from "webiny/admin/tenancy" Source: @webiny/tenant-manager/admin/IsRootTenant.tsx


Name: TenantContext Import: import { TenantContext } from "webiny/admin/tenancy" Source: @webiny/app-admin/features/tenancy/abstractions.ts


Name: TenantEntry Kind: type Import: import type { TenantEntry } from "webiny/admin/tenancy" Source: @webiny/tenant-manager/admin/types.ts


Name: useCurrentTenant Import: import { useCurrentTenant } from "webiny/admin/tenancy" Source: @webiny/tenant-manager/admin/CurrentTenant/useCurrentTenant.ts


Name: useDisableTenant Import: import { useDisableTenant } from "webiny/admin/tenancy" Source: @webiny/tenant-manager/admin/DisableTenant/index.ts


Name: useEnableTenant Import: import { useEnableTenant } from "webiny/admin/tenancy" Source: @webiny/tenant-manager/admin/EnableTenant/index.ts


Name: useTenantContext Import: import { useTenantContext } from "webiny/admin/tenancy" Source: @webiny/app-admin/presentation/tenancy/useTenantContext.ts


信息
Category 编程开发
Name webiny-admin-tenancy-catalog
版本 v20260825
大小 1.77KB
更新时间 2026-09-06
语言