feat(erp): 添加费用统计功能

- 在费用列表响应中增加 count 字段
- 新增 ExpenseCount 结构体用于统计费用金额
- 添加 Amount 字段用于存储费用总金额,使用 decimal.Decimal 类型
This commit is contained in:
2026-07-10 15:53:16 +08:00
parent bb8de3675c
commit f9843fec94

View File

@@ -39,6 +39,10 @@ type ExpenseSearch struct {
type ReplyExpenseList struct { type ReplyExpenseList struct {
List []ExpenseItem `json:"list"` List []ExpenseItem `json:"list"`
Total int64 `json:"total"` Total int64 `json:"total"`
Count ExpenseCount `json:"count"`
}
type ExpenseCount struct {
Amount decimal.Decimal `json:"amount"`
} }
type ExpenseItem struct { type ExpenseItem struct {
Id int64 `json:"id"` Id int64 `json:"id"`