/**
 * 用户余额类型定义
 */

export interface UserBalance {
  balance: string
  frozenBalance: string
  totalIncome: string
  totalExpense: string
}

/**
 * 用户信息（来自 core 系统 sys_user 表）
 */
export interface User {
  userId?: number
  id?: number
  username?: string
  realName?: string
  nickname?: string
  avatar?: string
  phone?: string
  mobile?: string
  email?: string
  gender?: number
  balance?: string | number
  points?: number
  memberLevelId?: number
  memberLevelName?: string
  status?: number
  createTime?: string
  updateTime?: string
  /** 扩展字段，兼容后端返回的额外属性 */
  [key: string]: unknown
}
