feat:增加美食表单功能
This commit is contained in:
48
src/types/auth.ts
Normal file
48
src/types/auth.ts
Normal file
@@ -0,0 +1,48 @@
|
||||
export type ILoginType = 'common' | 'phone' | 'email' | 'admin'
|
||||
|
||||
export type IAccountType = 'QQ' | 'WeChat' | 'Phone' | 'EMail'
|
||||
|
||||
export interface IUser {
|
||||
id: number;
|
||||
accountId: number;
|
||||
accountName: string;
|
||||
username: 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;
|
||||
}
|
||||
Reference in New Issue
Block a user