implement

package
v0.0.0-...-70c7f13 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 15, 2022 License: MIT Imports: 3 Imported by: 0

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 (p *ProductRepository) AddProduct(product *model.Product) (*model.Product, error)

func (*ProductRepository) AddTypeByCategoryId

func (p *ProductRepository) AddTypeByCategoryId(categoryId uint, productTypes []string) error

func (*ProductRepository) GetProductByName

func (p *ProductRepository) GetProductByName(name string) (*model.Product, error)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL