export type TenantInfoType = {
  id: number;
  tenantCode: string; // 租户编码
  tenantName: string; // 租户名称
  parentId: number;
  startTime: string; // 生效时间
  endTime: string; //失效时间
  isDisabled: 0 | 1; // 状态
  createdBy: number; // 创建人
  updatedBy: number; // 更新人
  createdAt: string;
  updatedAt: string;
  isDeleted: number;
  children: TenantInfoType[] | [];
};

export type TenantInfoTreeType = TenantInfoType[];

export const TENANT_STATUS_LABEL = {
  0: '启用',
  1: '禁用',
};

export type tenantDrawerModeType = 'add' | 'edit';

export interface tenantFormType {
  id?: number;
  parentId: number | undefined;
  parentName: string | undefined;
  tenantName: string;
  tenantCode: string;
  startTime: string;
  endTime: string;
}
