// src/types/user.ts
// 登录请求参数类型
export interface LoginRequest {
  username: string;
  password: string;
}

// 注册请求参数类型
export interface RegisterRequest {
  username: string;
  password: string;
  phone: string;
  email: string;
}

// 登录响应数据类型
export interface LoginResponse {
  id: number;
  username: string;
  nickname: string;
  token: string;
}

// 用户信息类型
export interface UserInfo {
  id: number;
  username: string;
  nickname?: string;
  phone?: string;
  email?: string;
  avatar?: string;
  gender?: number;
  status?: number;
  createTime?: string;
  updateTime?: string;
}
