package response // DashboardStatistResponse 仪表盘统计响应 type DashboardStatistResponse struct { TotalOrderCount int64 `json:"total_order_count"` // 今日订单数 TotalReceivingCount int64 `json:"total_receiving_count"` // 今日入库数 TotalOutboundCount int64 `json:"total_outbound_count"` // 今日出库数 TotalSaleCount int64 `json:"total_sale_count"` // 今日销售数 YesterdayOrderCount int64 `json:"yesterday_order_count"` // 昨日订单数 YesterdayReceivingCount int64 `json:"yesterday_receiving_count"` // 昨日入库数 YesterdayOutboundCount int64 `json:"yesterday_outbound_count"` // 昨日出库数 YesterdaySaleCount int64 `json:"yesterday_sale_count"` // 昨日销售数 UserStats []UserStatItem `json:"user_stats"` // 个人统计数据 ProductTotal int64 `json:"product_total"` // 商品总量 InventoryTotal int64 `json:"inventory_total"` // 库存量 } // UserStatItem 个人统计项 type UserStatItem struct { UserID int64 `json:"user_id"` // 用户ID UserName string `json:"user_name"` // 用户姓名 ReceivingCount int64 `json:"receiving_count"` // 入库次数 OutboundCount int64 `json:"outbound_count"` // 出库次数 } // WarehouseStatistResponse 仓库统计响应 type WarehouseStatistResponse struct { ProductTotal int64 `json:"product_total"` // 商品总量 InventoryTotal int64 `json:"inventory_total"` // 库存量 TodayInbound int64 `json:"today_inbound"` // 今日入库 TodayOutbound int64 `json:"today_outbound"` // 今日出库 YesterdayInbound int64 `json:"yesterday_inbound"` // 昨日入库 YesterdayOutbound int64 `json:"yesterday_outbound"` // 昨日出库 } // OrderStatistResponse 订单统计响应 type OrderStatistResponse struct { Today OrderStatItem `json:"today"` // 今日统计数据 Yesterday OrderStatItem `json:"yesterday"` // 昨日统计数据 } // OrderStatItem 订单统计项 type OrderStatItem struct { Quantity int64 `json:"quantity"` // 数量 Amount int64 `json:"amount"` // 金额(分) Shipped int64 `json:"shipped"` // 已发货 Unshipped int64 `json:"unshipped"` // 未发货 Pending int64 `json:"pending"` // 待处理 }