钱包模块
钱包模块管理财务记录。
数据结构
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-create | Partial<WalletItem> | WalletItem |
wallet-update | id, Partial<WalletItem> | WalletItem |
wallet-delete | id | boolean |
wallet-get-summary | { startDate, endDate } | Summary |