Documentation ¶
Index ¶
- type Item
- type ItemModel
- func (im *ItemModel) CreateItem(item Item) (int64, error)
- func (im *ItemModel) GetItem(id int64) (Item, error)
- func (im *ItemModel) GetItemByName(name string) (Item, error)
- func (im *ItemModel) PageItems(offset, limit int) ([]Item, error)
- func (im *ItemModel) QueryItems(query string, page, limit int) ([]Item, error)
- func (im *ItemModel) UpdateItem(item Item) error
- type Models
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ItemModel ¶
func (*ItemModel) PageItems ¶
Will return all items in the database within the pagination range Hard Set Limit of 100 items per page, and default page size is 10
func (*ItemModel) QueryItems ¶
func (*ItemModel) UpdateItem ¶
Click to show internal directories.
Click to hide internal directories.