Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var (
ErrRecordNotFound = errors.New("Record not found")
)
Functions ¶
This section is empty.
Types ¶
type ProductRepo ¶
type ProductRepo interface { Create(*model.Product, *model.MarketPlaceItemsList) error Update(*model.Product, *model.MarketPlaceItemsList) error FindByUserId(int) ([]*model.Product, error) GetProductById(int) (*model.Product, error) GetCategories() ([]*model.Category, error) CreateCategory(*model.Category) error CreateMaterial(*model.Material) error GetMaterials() ([]*model.Material, error) Delete(int, int) error }
type Store ¶
type Store interface { User() UserRepo Product() ProductRepo }
Click to show internal directories.
Click to hide internal directories.