Browse Source

style(types): 获取更新

qinlaiqiao 5 years atrás
parent
commit
e8b8619ad1
1 changed files with 2 additions and 30 deletions
  1. 2 30
      types/src/interface/User.ts

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

@@ -1,25 +1,16 @@
-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',
@@ -36,7 +27,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;
@@ -69,22 +60,3 @@ 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;
-}