Update
This commit is contained in:
@@ -39,6 +39,16 @@ type ProductAnalytics struct {
|
||||
OrderCount int64 `json:"order_count"`
|
||||
}
|
||||
|
||||
// ProductAnalyticsPerCategory represents product analytics data grouped by category
|
||||
type ProductAnalyticsPerCategory struct {
|
||||
CategoryID uuid.UUID `json:"category_id"`
|
||||
CategoryName string `json:"category_name"`
|
||||
TotalRevenue float64 `json:"total_revenue"`
|
||||
TotalQuantity int64 `json:"total_quantity"`
|
||||
ProductCount int64 `json:"product_count"`
|
||||
OrderCount int64 `json:"order_count"`
|
||||
}
|
||||
|
||||
// DashboardOverview represents dashboard overview data
|
||||
type DashboardOverview struct {
|
||||
TotalSales float64 `json:"total_sales"`
|
||||
|
||||
Reference in New Issue
Block a user