Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type InventoryItem ¶
type InventoryItem struct { ID int `json:"id"` ProductID int `json:"product_id" db:"product_id" validate:"required"` Quantity int `json:"quantity" db:"quantity" validate:"min=0,required"` }
func (*InventoryItem) Validate ¶
func (i *InventoryItem) Validate() error
Click to show internal directories.
Click to hide internal directories.