stock request table created
This commit is contained in:
@@ -452,3 +452,21 @@ type LocationRevenueDetails struct {
|
||||
Revenue float64 `json:"revenue"`
|
||||
}
|
||||
|
||||
type SalesSummaryChartData struct {
|
||||
Date string `json:"date"`
|
||||
Revenue float64 `json:"revenue"`
|
||||
Orders int `json:"orders"`
|
||||
}
|
||||
|
||||
type SalesSummaryTopLocation struct {
|
||||
Locationname string `json:"locationname"`
|
||||
Revenue float64 `json:"revenue"`
|
||||
}
|
||||
|
||||
type SalesSummaryResponse struct {
|
||||
TotalRevenue float64 `json:"totalRevenue"`
|
||||
TotalOrders int `json:"totalOrders"`
|
||||
AverageOrderValue float64 `json:"averageOrderValue"`
|
||||
ChartData []SalesSummaryChartData `json:"chartData"`
|
||||
TopLocations []SalesSummaryTopLocation `json:"topLocations"`
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user