| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081 |
- import { IProCptItem } from './compilation';
- // 实体类型
- export enum EntityType {
- // 个人
- PERSON = 1,
- // 企业
- ENTERPRISE = 2,
- }
- // 登录类型(与实体类型有语义上的区别)
- export enum LoginType {
- PERSON = 'person',
- ENTERPRISE = 'enterprise',
- }
- // 登录方式(使用密码还是短信进行登录,与登录类型是不同概念)
- export enum LoginMode {
- PASSWORD = 'password',
- SMS = 'sms',
- }
- export enum UserType {
- NORMAL = 'normal',
- PROFESSIONAL = 'professional',
- }
- export interface IUsedCptItem {
- // 编办 ID
- compilationID: string;
- // 第一次使用的时间
- firstUseTime: number;
- }
- export interface IContactItem {
- // 用户 ID
- userID: string;
- // 第一成为联系人的时间
- firstContactTime: number;
- }
- export interface IEverydayOnlineTimeItem {
- // 日期
- date: number;
- // 在线时长
- onlineTime: number;
- }
- export interface ISummary {
- // 最后登录时间
- lastLoginTime: number;
- // 上次使用的编办
- lastUsedCpt: string;
- // 总共在线时长
- totalOnlineTime: number;
- // 今天目前的在线时长
- todayOnlineTime: number;
- // 每天的在线时长
- everydayOnlineTime: IEverydayOnlineTimeItem[];
- }
- export interface IUser {
- ID: string;
- ssoID: string;
- mobile: string;
- realName: string;
- createTime: number;
- proCptList: IProCptItem[];
- usedCptList: IUsedCptItem[];
- specifyCpt: string;
- contacts: IContactItem[];
- onlySMSLogin: boolean;
- abnormalLoginAlert: boolean;
- defaultEnterprise: string;
- summaryInfo: ISummary;
- }
- // 最近联系人
- export interface IRecentUser extends IUser {
- recentDate: number;
- }
|