chore: initial commit of HouseholdBudgetBook (backend, frontend, desktop)

This commit is contained in:
mapleferry committed 2026-11-29 21:29:06 +08:00
commit 4a5db3f1f9
167 files changed
+21732

No files matched your search

+15
View File
@@ -0,0 +1,15 @@
package service
import (
"testing"
"household-book/model"
)
func TestSourceKeyDoesNotDependOnWholeFile(t *testing.T) {
a := model.ImportTransactionsRequest{Content: []byte("first export"), SourceKind: "wechat", BankName: "微信", CardType: "wechat"}
b := model.ImportTransactionsRequest{Content: []byte("overlapping export"), SourceKind: "wechat", BankName: "微信", CardType: "wechat"}
if sourceKey(a, "stable-trade-id") != sourceKey(b, "stable-trade-id") {
t.Fatal("same transaction identity should deduplicate across different files")
}
}