|
|
@@ -1,4 +1,5 @@
|
|
|
import { ICompilation, ICptItem } from './compilation';
|
|
|
+
|
|
|
/* eslint-disable camelcase */
|
|
|
export enum ELockInfo {
|
|
|
BORROW = 1, // 借用
|
|
|
@@ -9,6 +10,7 @@ export interface IUpgradeInfo {
|
|
|
compilationID: string;
|
|
|
isUpgrade: boolean;
|
|
|
lock?: ELockInfo;
|
|
|
+
|
|
|
[key: string]: any;
|
|
|
}
|
|
|
|
|
|
@@ -29,44 +31,63 @@ export interface IContact {
|
|
|
userID: string;
|
|
|
}
|
|
|
|
|
|
-export interface IUserResult {
|
|
|
+export interface IUsed {
|
|
|
+ compilationId: string;
|
|
|
+}
|
|
|
+
|
|
|
+// user 表原始字段
|
|
|
+export interface IRawUser {
|
|
|
_id?: string;
|
|
|
- ssoId?: number;
|
|
|
- username?: string;
|
|
|
- email?: string;
|
|
|
- mobile?: string;
|
|
|
qq?: string;
|
|
|
- upgrade_list?: IUpgradeInfo[]; // 升级购买信息
|
|
|
- // eslint-disable-next-line camelcase
|
|
|
real_name?: string;
|
|
|
+ avatar?: string;
|
|
|
+ position?: string;
|
|
|
company?: string;
|
|
|
province?: number;
|
|
|
- token?: string;
|
|
|
- isSmsLogin?: number;
|
|
|
- // 最后登录时间
|
|
|
+ company_type?: number;
|
|
|
+ company_scale?: number;
|
|
|
latest_login?: number;
|
|
|
- // 最近使用编办
|
|
|
- latest_used?: string;
|
|
|
+ user_type?: string;
|
|
|
contacts?: IContact[];
|
|
|
+ isSmsLogin?: number;
|
|
|
+ isLoginValid?: number;
|
|
|
+ ssoId?: string;
|
|
|
+ email?: string;
|
|
|
+ mobile?: string;
|
|
|
+ create_time?: string;
|
|
|
+ isUserActive?: number;
|
|
|
+ upgrade_list?: IUpgradeInfo[];
|
|
|
+ used_list?: IUsed[];
|
|
|
+ latest_used?: string;
|
|
|
+
|
|
|
[key: string]: any;
|
|
|
}
|
|
|
|
|
|
+// 返回给前端的字段
|
|
|
export interface IUser {
|
|
|
- ID: string;
|
|
|
- name: string;
|
|
|
- realName: string;
|
|
|
- mobile: string;
|
|
|
- ssoID?: number;
|
|
|
- type?: UserType;
|
|
|
- email?: string;
|
|
|
+ ID?: string;
|
|
|
qq?: string;
|
|
|
+ realName?: string;
|
|
|
+ avatar?: string;
|
|
|
+ position?: string;
|
|
|
company?: string;
|
|
|
province?: number;
|
|
|
- token?: string;
|
|
|
- isSmsLogin?: number;
|
|
|
+ companyType?: number;
|
|
|
+ companyScale?: number;
|
|
|
latestLogin?: number;
|
|
|
- latestUsed?: string;
|
|
|
+ userType?: string;
|
|
|
contacts?: IContact[];
|
|
|
+ isSmsLogin?: number;
|
|
|
+ isLoginValid?: number;
|
|
|
+ ssoID?: string;
|
|
|
+ email?: string;
|
|
|
+ mobile?: string;
|
|
|
+ createTime?: string;
|
|
|
+ isUserActive?: number;
|
|
|
+ upgradeList?: IUpgradeInfo[];
|
|
|
+ usedList?: IUsed[];
|
|
|
+ latestUsed?: string;
|
|
|
+
|
|
|
[key: string]: any;
|
|
|
}
|
|
|
|