feat: transaction framework

This commit is contained in:
aaa
2025-02-03 17:23:16 +08:00
parent 0425cd90a6
commit 8ce7f902af
10 changed files with 252 additions and 30 deletions

28
models/transaction.ts Normal file
View File

@@ -0,0 +1,28 @@
export interface Category {
id: string,
name: string,
}
export interface Tag {
id: string,
name: string,
}
export interface Amount{
currency: string,
val: string,
}
export interface Transaction{
id: string,
description: string,
time: string,
category?: Category,
tags?: Tag[],
amount?:
}
export interface TransactionGroup {
group_title: string,
transactions?: Transaction[],
}