Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Order ¶
type Order struct {
ID string `json:"id"`
Status OrderStatus `json:"status"`
Total float64 `json:"total"`
Items int `json:"items"`
ShipTo string `json:"ship_to"`
}
Order is the aggregate root for the order bounded context.
type OrderStatus ¶
type OrderStatus string
OrderStatus represents the lifecycle state of an order.
const ( OrderPending OrderStatus = "Pending" OrderConfirmed OrderStatus = "Confirmed" OrderShipped OrderStatus = "Shipped" )
Click to show internal directories.
Click to hide internal directories.