跳到主要内容

钱包模块

钱包模块管理财务记录。

数据结构

interface WalletItem {
id: string
type: 'income' | 'expense' // 收入/支出
amount: number // 金额
category: string // 分类
description?: string // 描述
date: string // 日期
tags?: string[] // 标签
createdAt: string
}

IPC 通道

通道参数返回
wallet-get-all-WalletItem[]
wallet-createPartial<WalletItem>WalletItem
wallet-updateid, Partial<WalletItem>WalletItem
wallet-deleteidboolean
wallet-get-summary{ startDate, endDate }Summary