Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Category ¶
type CategoryQuery ¶
type CategoryQuery struct {
// contains filtered or unexported fields
}
func NewCategoryQuery ¶
func NewCategoryQuery(ctx context.Context, db *gorm.DB) *CategoryQuery
func (CategoryQuery) GetProductsByCategoryName ¶
func (c CategoryQuery) GetProductsByCategoryName(name string) (categories []*Category, err error)
type Product ¶
type ProductQuery ¶
type ProductQuery struct {
// contains filtered or unexported fields
}
func NewProductQuery ¶
func NewProductQuery(ctx context.Context, db *gorm.DB) *ProductQuery
func (ProductQuery) GetById ¶
func (p ProductQuery) GetById(productId int) (product Product, err error)
func (ProductQuery) SearchProducts ¶
func (p ProductQuery) SearchProducts(q string) (products []*Product, err error)
Click to show internal directories.
Click to hide internal directories.