Documentation
¶
Index ¶
- Constants
- func CreateBrand(session db.Session, brand *models.Brand) (uint, error)
- func CreateOffer(session db.Session, offer *models.Offer) (sql.Result, error)
- func CreateProduct(session db.Session, product *models.Product) (id uint, err error)
- func CreateStore(session db.Session, store *models.Store) (uint, error)
- func GetStore(session db.Session, id uint) (*models.Store, error)
- type Db
- type OfferResult
Constants ¶
View Source
const BrandTable = "brand"
View Source
const OfferTable = "offer"
View Source
const ProductTable = "product"
View Source
const StoreTable = "store"
Variables ¶
This section is empty.
Functions ¶
func CreateProduct ¶
Types ¶
type OfferResult ¶
type OfferResult struct {
models.Offer
Name string `db:"product_name"`
ProductDescription string `db:"product_description"`
Picture string `db:"product_picture"`
StoreName string `db:"store_name"`
BrandName string `db:"brand_name"`
}
func GetAvailableOffers ¶
func SearchAvailableOffers ¶
Click to show internal directories.
Click to hide internal directories.