Selaa lähdekoodia

feat(types): 企业

qinlaiqiao 4 vuotta sitten
vanhempi
commit
7d576fe8ec
2 muutettua tiedostoa jossa 26 lisäystä ja 1 poistoa
  1. 26 0
      types/src/interface/enterprise.ts
  2. 0 1
      types/src/interface/user.ts

+ 26 - 0
types/src/interface/enterprise.ts

@@ -0,0 +1,26 @@
+export interface IMember {
+  userID: string;
+  cptList: string[];
+  createProject: 'yes' | 'no';
+  projectView: 'self' | 'all';
+  editProject: 'self' | 'all';
+  exportProject: 'disabled' | 'self' | 'all';
+  importProject: 'disabled' | 'self' | 'all';
+  shareProject: 'disabled' | 'self' | 'all';
+}
+
+export interface IEnterprise {
+  ID: string;
+  cldID: string;
+  adminID: string;
+  members: IMember[];
+  companyName: string;
+  logo: string;
+  companyLocation: [string, string, string];
+  companyType: string;
+  companyScale: string;
+  createTime: number;
+  passwordCheck: 'no' | 'weak' | 'normal' | 'strong' | 'super';
+  ip: string;
+  logoutRule: string;
+}

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

@@ -77,7 +77,6 @@ export interface IRawUser {
 
 
 // 返回给前端的字段
 // 返回给前端的字段
 export interface IUser {
 export interface IUser {
-  enterpriseID?: string;
   ID?: string;
   ID?: string;
   qq?: string;
   qq?: string;
   realName?: string;
   realName?: string;