feat: history-order-list

This commit is contained in:
ferdiansyah783
2024-07-26 11:37:22 +07:00
parent f4d782653d
commit 195371f5c6
9 changed files with 218 additions and 6 deletions
+19
View File
@@ -21,6 +21,18 @@ type Order struct {
UpdatedAt string `json:"updated_at"`
}
type HistoryOrder struct {
ID int64 `json:"id"`
Employee string `json:"employee"`
Site string `json:"site"`
Timestamp string `json:"timestamp"`
BookingTime string `json:"booking_time"`
Tickets []string `json:"tickets"`
PaymentType string `json:"payment_type"`
Status string `json:"status"`
Amount float64 `json:"amount"`
}
type OrderItem struct {
OrderItemID int64 `json:"order_item_id" `
ItemID int64 `json:"item_id" `
@@ -39,6 +51,13 @@ type OrderList struct {
Offset int `json:"offset"`
}
type HistoryOrderList struct {
Orders []HistoryOrder `json:"history_orders"`
Total int64 `json:"total"`
Limit int `json:"limit"`
Offset int `json:"offset"`
}
type OrderMonthlyRevenue struct {
TotalRevenue float64 `json:"total_revenue"`
TotalTransaction int64 `json:"total_transaction"`