| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116 |
- 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 IAPInstitution {
- ID: string;
- name: string;
- }
- export interface IAPOrganizationalStructure {
- ID: string;
- name: string;
- }
- export interface IAPUser {
- ID: string;
- createdTime: number;
- gender: string;
- accountType: number;
- account: string;
- name: string;
- phone: string;
- institution: IAPInstitution;
- organizationalStructure: IAPOrganizationalStructure;
- dataID: string;
- created: string;
- createdID: string; // 创建人ID
- isCreated?: boolean; // 是否可创建,字段由后台定义
- }
- // 最近联系人
- export interface IRecentUser extends IUser {
- recentDate: number;
- }
- // 正在查看项目的用户
- export interface IViewingProjectUser {
- projectID: string;
- userID: string;
- userName: string;
- mobile: string;
- enterpriseID: string;
- enterpriseName: string;
- }
|