feat: history-order-list
This commit is contained in:
@@ -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"`
|
||||
|
||||
Reference in New Issue
Block a user