更新:登录功能

This commit is contained in:
2025-11-04 12:37:04 +08:00
commit a21fb92916
897 changed files with 51500 additions and 0 deletions

59
types/user.ts Normal file
View File

@@ -0,0 +1,59 @@
// types/user.ts
/**
* 用户信息接口
*/
export interface IUserInfo {
id: number
name: string
avatar: string
email: string
phone?: string
token?: string
[key: string]: any
}
/**
* 登录响应接口
*/
export interface ILoginResponse {
userInfo: IUserInfo
token: {
token: string
[key: string]: any
}
}
/**
* 协议内容接口
*/
export interface IAgreement {
id: number
title: string
content: string
[key: string]: any
}
/**
* 登录表单接口
*/
export interface ILoginForm {
// 验证码登录
email?: string
code?: string
// 密码登录
phoneEmail?: string
password?: string
// 通用
agree: boolean
}
/**
* 忘记密码表单接口
*/
export interface IForgetPasswordForm {
email: string
code: string
password: string
confirmPassword: string
}