From f9843fec94e8ad341a1c855d59946ea2ba980d70 Mon Sep 17 00:00:00 2001 From: kanade Date: Fri, 10 Jul 2026 15:53:16 +0800 Subject: [PATCH] =?UTF-8?q?feat(erp):=20=E6=B7=BB=E5=8A=A0=E8=B4=B9?= =?UTF-8?q?=E7=94=A8=E7=BB=9F=E8=AE=A1=E5=8A=9F=E8=83=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 在费用列表响应中增加 count 字段 - 新增 ExpenseCount 结构体用于统计费用金额 - 添加 Amount 字段用于存储费用总金额,使用 decimal.Decimal 类型 --- erp/expense.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/erp/expense.go b/erp/expense.go index ba54986..1f18127 100644 --- a/erp/expense.go +++ b/erp/expense.go @@ -39,6 +39,10 @@ type ExpenseSearch struct { type ReplyExpenseList struct { List []ExpenseItem `json:"list"` Total int64 `json:"total"` + Count ExpenseCount `json:"count"` +} +type ExpenseCount struct { + Amount decimal.Decimal `json:"amount"` } type ExpenseItem struct { Id int64 `json:"id"`