Prechádzať zdrojové kódy

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

qinlaiqiao 5 rokov pred
rodič
commit
a287736616

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

@@ -1,4 +1,4 @@
-import { EntityType } from './User';
+import { EntityType } from './user';
 import { ValuationType } from './compilation';
 import { ValuationType } from './compilation';
 import { IIncreaseSetting } from './increaseFee';
 import { IIncreaseSetting } from './increaseFee';
 import { ITreeScm, DeleteEnum, INumFileRef, IColumnMeta } from './base';
 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 {
 export enum ShareType {
   PROJECT = 1, // 项目
   PROJECT = 1, // 项目

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

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