Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Order ¶
type Order struct { ID bson.ObjectId `json:"id" bson:"_id,omitempty"` UserID bson.ObjectId `json:"userID" bson:"user_id,omitempty"` Details string `json:"details" bson:"details,omitempty"` Description string `json:"description" bson:"description,omitempty"` Type string `json:"type" bson:"type,omitempty"` TotalPrice float64 `json:"totalPrice" bson:"total_price,omitempty"` Products []OrderedProduct `json:"products" bson:"products,omitempty"` CreatedOn time.Time `json:"createdOn" bson:"created_on,omitempty"` }
Order ...
type OrderedProduct ¶
type OrderedProduct struct { ID bson.ObjectId `json:"id" bson:"_id,omitempty"` Name string `json:"name" bson:"name,omitempty"` Description string `json:"description" bson:"description,omitempty"` Price float64 `json:"price" bson:"price,omitempty"` Quantity uint32 `json:"quantity" bson:"quantity,omitempty"` }
OrderedProduct ...
Click to show internal directories.
Click to hide internal directories.