Merge pull request 'history-order-list' (#3) from history-order-list into main

Reviewed-on: https://git.altru.id/Furtuna/furtuna-backend/pulls/3
This commit is contained in:
2024-07-28 06:05:49 +00:00
14 changed files with 285 additions and 24 deletions
+8
View File
@@ -21,6 +21,10 @@ type Order struct {
UpdatedAt string `json:"updated_at"`
}
type OrderAmount struct {
Amount float64 `json:"amount"`
}
type HistoryOrder struct {
ID int64 `json:"id"`
Employee string `json:"employee"`
@@ -58,6 +62,10 @@ type HistoryOrderList struct {
Offset int `json:"offset"`
}
type TicketSold struct {
Count int64 `json:"count"`
}
type OrderMonthlyRevenue struct {
TotalRevenue float64 `json:"total_revenue"`
TotalTransaction int64 `json:"total_transaction"`
+4
View File
@@ -24,6 +24,10 @@ type SiteName struct {
Name string `json:"name"`
}
type SiteCount struct {
Count int `json:"count"`
}
type SiteList struct {
Sites []Site `json:"sites"`
Total int64 `json:"total"`