Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type LineItem ¶
type LineItem struct {
ID string `json:"id" bson:"_id"`
MenuItemID int64 `json:"menuItemId" bson:"menuItemId"`
OrderID int64 `json:"orderId" bson:"orderId"`
Name string `json:"name" bson:"name"`
Price float32 `json:"price" bson:"price"`
Quantity int32 `json:"quantity" bson:"quantity"`
}
func (LineItem) MarshalEasyJSON ¶
MarshalEasyJSON supports easyjson.Marshaler interface
func (LineItem) MarshalJSON ¶
MarshalJSON supports json.Marshaler interface
func (*LineItem) UnmarshalEasyJSON ¶
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (*LineItem) UnmarshalJSON ¶
UnmarshalJSON supports json.Unmarshaler interface
type Order ¶
type Order struct {
ID string `json:"id" bson:"_id"`
RestaurantID int64 `json:"restaurantId" bson:"restaurantId"`
ConsumerID int64 `json:"consumerId" bson:"consumerId"`
DeliveryID int64 `json:"deliveryId" bson:"deliveryId"`
PaymentID int64 `json:"paymentId" bson:"paymentId"`
StatusID int32 `json:"statusId" bson:"statusId"`
CreatedAt primitive.Timestamp `json:"createdAt" bson:"createdAt"`
UpdatedAt primitive.Timestamp `json:"updatedAt" bson:"updatedAt"`
}
func (Order) MarshalEasyJSON ¶
MarshalEasyJSON supports easyjson.Marshaler interface
func (Order) MarshalJSON ¶
MarshalJSON supports json.Marshaler interface
func (*Order) UnmarshalEasyJSON ¶
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (*Order) UnmarshalJSON ¶
UnmarshalJSON supports json.Unmarshaler interface
type OrderList ¶
type OrderList []Order
func (OrderList) MarshalEasyJSON ¶
MarshalEasyJSON supports easyjson.Marshaler interface
func (OrderList) MarshalJSON ¶
MarshalJSON supports json.Marshaler interface
func (*OrderList) UnmarshalEasyJSON ¶
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (*OrderList) UnmarshalJSON ¶
UnmarshalJSON supports json.Unmarshaler interface
Click to show internal directories.
Click to hide internal directories.