|
|
@@ -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;
|
|
|
+}
|