This commit is contained in:
Aditya Siregar
2025-08-14 00:45:14 +07:00
parent 7adba2c8f5
commit 3a0c262c77
10 changed files with 242 additions and 0 deletions
+10
View File
@@ -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"`