feat(erp): 添加费用统计功能
- 在费用列表响应中增加 count 字段 - 新增 ExpenseCount 结构体用于统计费用金额 - 添加 Amount 字段用于存储费用总金额,使用 decimal.Decimal 类型
This commit is contained in:
@@ -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"`
|
||||||
|
|||||||
Reference in New Issue
Block a user