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