feat: expand merchant revenue statistics

This commit is contained in:
shiran
2026-07-20 11:34:42 +08:00
parent c9d007497b
commit 0fd4b6cf16
3 changed files with 69 additions and 4 deletions
+13 -4
View File
@@ -168,8 +168,17 @@ func (r StatsRequest) params() map[string]string {
}
type StatsResponse struct {
OrderCount int64 `json:"order_count"`
TotalAmount int64 `json:"total_amount"`
TotalFee int64 `json:"total_fee"`
NetAmount int64 `json:"net_amount"`
OrderCount int64 `json:"order_count"`
TotalAmount int64 `json:"total_amount"`
TotalFee int64 `json:"total_fee"`
NetAmount int64 `json:"net_amount"`
TotalOrderCount int64 `json:"total_order_count"`
PaidOrderCount int64 `json:"paid_order_count"`
UnpaidOrderCount int64 `json:"unpaid_order_count"`
RefundedOrderCount int64 `json:"refunded_order_count"`
ClosedOrderCount int64 `json:"closed_order_count"`
ManualOrderCount int64 `json:"manual_order_count"`
ReceivedAmount int64 `json:"received_amount"`
RefundAmount int64 `json:"refund_amount"`
RefundCount int64 `json:"refund_count"`
}