// 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 }