Documentation ¶
Index ¶
- Variables
- type Product
- func (self *Product) Create(db orm.DB, productModel model.Product) (*model.Product, error)
- func (self *Product) Delete(db orm.DB, product *model.Product) error
- func (self *Product) List(db orm.DB, qp *model.FilterQuery, p *model.Pagination) ([]model.Product, int, error)
- func (self *Product) Update(db orm.DB, product *model.Product) error
- func (self *Product) View(db orm.DB, qp *model.FilterQuery) (*model.Product, error)
Constants ¶
This section is empty.
Variables ¶
View Source
var (
ErrAlreadyExists = echo.NewHTTPError(http.StatusInternalServerError, "Product name already exists.")
)
Custom errors
Functions ¶
This section is empty.
Types ¶
type Product ¶
type Product struct{}
Product represents the client for product table
func (*Product) List ¶
func (self *Product) List(db orm.DB, qp *model.FilterQuery, p *model.Pagination) ([]model.Product, int, error)
List returns list of all products retrievable for the current product, depending on role
Click to show internal directories.
Click to hide internal directories.