// 账户相关类型定义

export interface AccountBalance {
  id: number
  accountId: number
  accountType: 'physical' | 'virtual'
  personalBalance: number
  laborBalance: number
  frozenBalance: number
  bankBalance: number
  transitAmount: number
  availableBalance: number
  systemBalance: number
  frozenAmount: number
  version: number
  updatedAt: string
}

export interface AccountSummary {
  totalBalance: number
  availableBalance: number
  frozenBalance: number
  transitAmount: number
  personalBalance: number
  laborBalance: number
}

export interface DeductionResult {
  fromPersonal: number
  fromLabor: number
  total: number
}

export enum AccountType {
  PHYSICAL = 'physical',
  VIRTUAL = 'virtual'
}
