1.4.0 • Published 2 months ago

@shencom/utils-tenant v1.4.0

Weekly downloads
-
License
ISC
Repository
gitlab
Last release
2 months ago

@shencom/tenant

获取租户相关信息

install

pnpm add @shencom/utils

# or

pnpm add @shencom/utils-tenant

Basic Usage

import { Tenant } from '@shencom/utils';

Tenant.init(scid);

Option

type scid = string;
参数说明类型可选值默认值
scid唯一标识符String

Methods

init

  • 说明: 初始化
  • 类型: init(scid: string): ResGetTenantInfo
  • 示例:
import { Tenant } from '@shencom/utils';

Tenant.init(scid);

getTenetInfo

  • 说明: 获取当前租户情况
  • 类型: getTenetInfo(scid?: string): ResGetTenantInfo
  • 示例:
import { Tenant } from '@shencom/utils';

// isFutian => 是否为福田租户
const { isFutian } = Tenant.getTenetInfo();
1.4.0

2 months ago

1.3.0

2 months ago

1.2.0

8 months ago

1.1.1

9 months ago

1.1.0

9 months ago