Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ProductRepository ¶
type ProductRepository struct {
// contains filtered or unexported fields
}
func NewProductRepository ¶
func NewProductRepository(db *gorm.DB) *ProductRepository
func (*ProductRepository) AddProduct ¶
func (*ProductRepository) AddTypeByCategoryId ¶
func (p *ProductRepository) AddTypeByCategoryId(categoryId uint, productTypes []string) error
func (*ProductRepository) GetProductByName ¶
func (p *ProductRepository) GetProductByName(name string) (*model.Product, error)
Click to show internal directories.
Click to hide internal directories.