Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Order ¶
type Order struct { ID primitive.ObjectID `bson:"_id,omitempty" json:"orderId"` Version int64 `json:"version" bson:"version"` CreatedAt time.Time `json:"createdAt" bson:"createdAt"` UpdatedAt time.Time `json:"updatedAt" bson:"updatedAt"` Products []Product `json:"products" bson:"products"` User string `json:"user" bson:"user"` TotalAmount float64 `json:"totalAmount" bson:"totalAmount"` Status OrderStatus `json:"status" bson:"status"` Updates []OrderUpdate `json:"updates" bson:"updates"` }
type OrderStatus ¶
type OrderStatus string
const ( OrderPending OrderStatus = "OrderPending" OrderProcessing OrderStatus = "OrderProcessing" OrderCompleted OrderStatus = "OrderCompleted" OrderCancelled OrderStatus = "OrderCancelled" OrderDelivered OrderStatus = "OrderDelivered" )
type OrderUpdate ¶
Click to show internal directories.
Click to hide internal directories.