Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
Functions ¶
This section is empty.
Types ¶
type Order ¶
type Order struct { Id int `json:"id,omitempty"` NumProducts int `json:"num_products,omitempty"` Money float64 `json:"money,omitempty"` ShippingAddress string `json:"shipping_address,omitempty"` Status OrderStatus `json:"status,omitempty"` }
type OrderStatus ¶
type OrderStatus int
const ( PeddingStatus OrderStatus = 1 SuccessfulStatus OrderStatus = 2 FailedStatus OrderStatus = 3 )
type Product ¶
type Product struct { ID int64 `json:"id,omitempty"` Title string `json:"title,omitempty"` Properties *Properties `json:"properties,omitempty" gorm:"serializer:json"` }
func (*Product) TablelName ¶
type Properties ¶
Click to show internal directories.
Click to hide internal directories.