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"` CustomerID int64 `json:"customer"` Products []ProductInsideOrder `json:"products"` Status string `json:"status"` PaymentStatus string `json:"paymentStatus"` CreatedAt string `json:"createdAt"` UpdatedAt string `json:"updatedAt"` }
func (*Order) GetProductIds ¶
type Product ¶
type Product struct { ID uint `json:"id"` Name string `json:"name"` Price float64 `json:"price"` Description string `json:"description"` CategoryId uint `json:"categoryId"` CreatedAt string `json:"createdAt"` }
func (Product) IsExistingProduct ¶
type ProductCategory ¶
func (ProductCategory) IsExistingProductCategory ¶
func (pc ProductCategory) IsExistingProductCategory() bool
type ProductInsideOrder ¶
Click to show internal directories.
Click to hide internal directories.