Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrRecordAlreadyExists = errors.New("record already exists")
View Source
var ErrRecordNotFound = errors.New("record not found")
Functions ¶
func DBTransformError ¶
Types ¶
type ImageProductCustom ¶
type PriceNowCustom ¶
type ProductStore ¶
func NewProductStore ¶
func NewProductStore(db *sql.DB) *ProductStore
func (*ProductStore) GetAllProducts ¶
func (s *ProductStore) GetAllProducts(userID uint32) ([]ResultGetAllProducts, error)
type ResultGetAllProducts ¶
type ResultGetAllProducts struct { ID int32 `sql:"primary_key" alias:"products.id"` Name string `alias:"products.name"` URL string `alias:"products.url"` model.Sellers ImageProduct []ImageProductCustom PriceNow []PriceNowCustom }
Click to show internal directories.
Click to hide internal directories.