48 lines
955 B
TypeScript
48 lines
955 B
TypeScript
export type ILoginType = 'common' | 'phone' | 'email' | 'admin' | 'register'
|
|
|
|
export type IAccountType = 'QQ' | 'WeChat' | 'Phone' | 'EMail'
|
|
|
|
export interface IUser {
|
|
id?: number;
|
|
username: string;
|
|
password: string;
|
|
gender?: number;
|
|
idNumber?: string;
|
|
phoneNumber?: string;
|
|
email?: string;
|
|
birthDate?: string;
|
|
avatar?: string;
|
|
description?: string;
|
|
area?: string[];
|
|
address?: string;
|
|
job?: string;
|
|
tags?: string[];
|
|
}
|
|
|
|
export interface ISession {
|
|
saToken: {
|
|
tokenName: string;
|
|
tokenValue: string;
|
|
isLogin: boolean;
|
|
loginId: string;
|
|
loginType: string;
|
|
tokenTimeout: number;
|
|
sessionTimeout: number;
|
|
tokenSessionTimeout: number;
|
|
tokenActiveTimeout: number;
|
|
loginDevice: string;
|
|
tag: string;
|
|
};
|
|
userInfo: IUser;
|
|
}
|
|
|
|
export interface IAccount {
|
|
id: number;
|
|
accountName: string;
|
|
password: string;
|
|
confirmPassword: string;
|
|
username: string;
|
|
state: number;
|
|
date: string;
|
|
}
|