Browse Source

refactor(types): enterprise

qinlaiqiao 4 years ago
parent
commit
74b7b48d9e
2 changed files with 7 additions and 2 deletions
  1. 5 2
      types/src/interface/enterprise.ts
  2. 2 0
      types/src/interface/user.ts

+ 5 - 2
types/src/interface/enterprise.ts

@@ -12,12 +12,15 @@ export interface IMember {
 
 export interface IEnterprise {
   ID: string;
-  cldID: string;
   adminID: string;
   members: IMember[];
+  active: boolean;
+  licenceNum: number;
+  cptList: string[];
+  usedCptList: string[];
   companyName: string;
   logo: string;
-  companyLocation: [string, string, string];
+  companyLocation: string[];
   companyType: string;
   companyScale: string;
   createTime: number;

+ 2 - 0
types/src/interface/user.ts

@@ -63,6 +63,7 @@ export interface IRawUser {
   upgrade_list?: IUpgradeItemInfo[];
   used_list?: IUsed[];
   latest_used?: string;
+  defaultEnterprise?: string;
 }
 
 // 返回给前端的字段
@@ -85,6 +86,7 @@ export interface IUser {
   upgradeList?: IUpgradeItemInfo[];
   usedList?: IUsed[];
   latestUsed?: string;
+  defaultEnterprise?: string;
 }
 
 // 最近联系人