Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func UpdateOrderState ¶
Types ¶
type Order ¶
type Order struct { Base OrderId string `gorm:"uniqueIndex;size:256"` UserId uint32 UserCurrency string Consignee Consignee `gorm:"embedded"` OrderItems []OrderItem `gorm:"foreignKey:OrderIdRefer;references:OrderId"` OrderState OrderState }
type OrderItem ¶
type OrderState ¶
type OrderState string
const ( OrderStatePlaced OrderState = "placed" OrderStatePaid OrderState = "paid" OrderStateCanceled OrderState = "canceled" )
Click to show internal directories.
Click to hide internal directories.