Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
Functions ¶
This section is empty.
Types ¶
type Order ¶
type Order struct { ID uuid.UUID Restaurant uuid.UUID Products []Product Customer struct { ID uuid.UUID Address string } CreatedAt time.Time Acceptance *struct { Manager uuid.UUID AcceptedAt time.Time } Courier *struct { ID uuid.UUID TakenAt time.Time } Payment *struct { Transaction string PayedAt time.Time } Cancellation *struct { Canceller uuid.UUID CancelledAt time.Time } CookingStartedAt *time.Time DeliveryStartedAt *time.Time DeliveryCompleted *time.Time }
type OrderHistory ¶
type OrderHistory struct {
// contains filtered or unexported fields
}
func NewOrderHistory ¶
func NewOrderHistory(logger *slog.Logger, storage Storage) *OrderHistory
Click to show internal directories.
Click to hide internal directories.