store

package
v0.0.0-...-8851dd1 Latest Latest
Warning

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

Go to latest
Published: Oct 25, 2022 License: GPL-3.0 Imports: 2 Imported by: 0

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
}

type UserRepo

type UserRepo interface {
	Create(*model.User) error
	FindById(int) (*model.User, error)
	FindByEmail(string) (*model.User, error)
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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