Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrEmptyItems = errors.New("empty items")
ErrEmptyItems is returned when items is zero or empty.
Functions ¶
Types ¶
type Pack ¶
type Pack struct {
Box uint `json:"box" format:"uint" example:"50"`
Quantity uint `json:"quantity" format:"uint" example:"3"`
}
Pack represents a pack of items.
type PackRequest ¶
type PackRequest struct {
Items uint `json:"items" format:"uint" example:"543"`
}
PackRequest represents a request to pack items.
type PackResponse ¶
type PackResponse struct {
Packs []Pack `json:"packs,omitempty"`
}
PackResponse represents a response to a pack request.
Click to show internal directories.
Click to hide internal directories.