|
|
@@ -6,12 +6,10 @@ export enum ELockInfo {
|
|
|
BUY = 2, // 销售
|
|
|
}
|
|
|
|
|
|
-export interface IUpgradeInfo {
|
|
|
+export interface IUpgradeItemInfo {
|
|
|
compilationID: string;
|
|
|
isUpgrade: boolean;
|
|
|
lock?: ELockInfo;
|
|
|
-
|
|
|
- [key: string]: any;
|
|
|
}
|
|
|
|
|
|
// 实体类型
|
|
|
@@ -19,7 +17,7 @@ export enum EntityType {
|
|
|
// 个人
|
|
|
PERSON = 1,
|
|
|
// 企业
|
|
|
- ENTERPRISE,
|
|
|
+ ENTERPRISE = 2,
|
|
|
}
|
|
|
|
|
|
export enum UserType {
|
|
|
@@ -35,17 +33,27 @@ export interface IUsed {
|
|
|
compilationId: string;
|
|
|
}
|
|
|
|
|
|
+export interface ISpecifyCptItem {
|
|
|
+ accountType: string;
|
|
|
+ enterpriseID?: string;
|
|
|
+ cptID: string;
|
|
|
+}
|
|
|
+
|
|
|
// user 表原始字段
|
|
|
export interface IRawUser {
|
|
|
+ enterpriseID?: string;
|
|
|
_id?: string;
|
|
|
qq?: string;
|
|
|
real_name?: string;
|
|
|
avatar?: string;
|
|
|
+ // 职位
|
|
|
position?: string;
|
|
|
company?: string;
|
|
|
province?: number;
|
|
|
company_type?: number;
|
|
|
company_scale?: number;
|
|
|
+ // 指定的编办
|
|
|
+ specifyCpt?: string;
|
|
|
latest_login?: number;
|
|
|
user_type?: string;
|
|
|
contacts?: IContact[];
|
|
|
@@ -56,24 +64,29 @@ export interface IRawUser {
|
|
|
mobile?: string;
|
|
|
create_time?: string;
|
|
|
isUserActive?: number;
|
|
|
- upgrade_list?: IUpgradeInfo[];
|
|
|
+ upgrade_list?: IUpgradeItemInfo[];
|
|
|
used_list?: IUsed[];
|
|
|
latest_used?: string;
|
|
|
-
|
|
|
- [key: string]: any;
|
|
|
}
|
|
|
|
|
|
// 返回给前端的字段
|
|
|
export interface IUser {
|
|
|
+ enterpriseID?: string;
|
|
|
ID?: string;
|
|
|
qq?: string;
|
|
|
realName?: string;
|
|
|
avatar?: string;
|
|
|
+ // 职位
|
|
|
position?: string;
|
|
|
- company?: string;
|
|
|
- province?: number;
|
|
|
+ // 公司名
|
|
|
+ companyName?: string;
|
|
|
+ // 省(个人账户只需要精确到省)
|
|
|
+ companyLocation?: number;
|
|
|
+ // 公司类型
|
|
|
companyType?: number;
|
|
|
companyScale?: number;
|
|
|
+ // 指定的编办
|
|
|
+ specifyCpt?: string;
|
|
|
latestLogin?: number;
|
|
|
userType?: string;
|
|
|
contacts?: IContact[];
|
|
|
@@ -84,15 +97,9 @@ export interface IUser {
|
|
|
mobile?: string;
|
|
|
createTime?: string;
|
|
|
isUserActive?: number;
|
|
|
- upgradeList?: IUpgradeInfo[];
|
|
|
+ upgradeList?: IUpgradeItemInfo[];
|
|
|
usedList?: IUsed[];
|
|
|
latestUsed?: string;
|
|
|
-
|
|
|
- [key: string]: any;
|
|
|
-}
|
|
|
-
|
|
|
-export interface IUserSession extends IUser {
|
|
|
- enterpriseID: string; // 企业ID
|
|
|
}
|
|
|
|
|
|
// 最近联系人
|