feat:增加美食表单功能

This commit is contained in:
2025-06-24 20:00:06 +08:00
parent 4956c1822e
commit 69c0bfa4c7
18 changed files with 836 additions and 92 deletions

48
src/types/auth.ts Normal file
View 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;
}