Просмотр исходного кода

fix(types): 误删user.ts&User.ts rename to user.ts

qinlaiqiao 5 лет назад
Родитель
Сommit
a287736616
3 измененных файлов с 32 добавлено и 4 удалено
  1. 1 1
      types/src/interface/project.ts
  2. 1 1
      types/src/interface/share.ts
  3. 30 2
      types/src/interface/User.ts

+ 1 - 1
types/src/interface/project.ts

@@ -1,4 +1,4 @@
-import { EntityType } from './User';
+import { EntityType } from './user';
 import { ValuationType } from './compilation';
 import { IIncreaseSetting } from './increaseFee';
 import { ITreeScm, DeleteEnum, INumFileRef, IColumnMeta } from './base';

+ 1 - 1
types/src/interface/share.ts

@@ -1,4 +1,4 @@
-import { IUser } from './User';
+import { IUser } from './user';
 
 export enum ShareType {
   PROJECT = 1, // 项目

+ 30 - 2
types/src/interface/User.ts

@@ -1,16 +1,25 @@
+import { ICompilation, ICptItem } from './compilation';
 /* eslint-disable camelcase */
 export enum ELockInfo {
   BORROW = 1, // 借用
   BUY = 2, // 销售
 }
 
-export interface IupgradeInfo {
+export interface IUpgradeInfo {
   compilationID: string;
   isUpgrade: boolean;
   lock?: ELockInfo;
   [key: string]: any;
 }
 
+// 实体类型
+export enum EntityType {
+  // 个人
+  PERSON = 1,
+  // 企业
+  ENTERPRISE,
+}
+
 export enum UserType {
   NORMAL = 'normal',
   PROFESSIONAL = 'professional',
@@ -27,7 +36,7 @@ export interface IUserResult {
   email?: string;
   mobile?: string;
   qq?: string;
-  upgrade_list?: IupgradeInfo[]; // 升级购买信息
+  upgrade_list?: IUpgradeInfo[]; // 升级购买信息
   // eslint-disable-next-line camelcase
   real_name?: string;
   company?: string;
@@ -60,3 +69,22 @@ export interface IUser {
   contacts?: IContact[];
   [key: string]: any;
 }
+
+export interface IUserSession extends IUser {
+  enterpriseID: string; // 企业ID
+}
+
+// 最近联系人
+export interface IRecentUser extends IUser {
+  recentDate: number;
+}
+
+export interface IBootResult {
+  compilation: ICompilation;
+  path: string;
+}
+
+export interface ILoginResult {
+  userInfo: IUser;
+  cptList: ICptItem;
+}