package store

type HomeResponse struct {
	Banners           []BannerResponse        `json:"banners"`
	Statistics        StoreStatisticsResponse `json:"statistics"`
	ProductCategories []CategoryResponse      `json:"productCategories"`
	TrendingProducts  []ProductResponse       `json:"trendingProducts"`
	TopSelling        []ProductResponse       `json:"topSelling"`
	NewLaunch         []ProductResponse       `json:"newLaunch"`
	Status            int                     `json:"status"`
	Success           bool                    `json:"success"`
	Message           string                  `json:"message"`
}

type BannerResponse struct {
	ID           uint   `json:"id"`
	BannerImage  string `json:"bannerImage"`
	BannerTypeID uint   `json:"bannerTypeId"`
}

type StoreStatisticsResponse struct {
	Orders    int     `json:"orders"`
	Rating    float64 `json:"rating"`
	Experts   int     `json:"experts"`
	InSession int     `json:"inSession"`
}

type CategoryResponse struct {
	ID            uint   `json:"id"`
	Name          string `json:"name"`
	DisplayOrder  int    `json:"displayOrder"`
	CategoryImage string `json:"categoryImage"`
}

type ProductResponse struct {
	ID                uint    `json:"id"`
	Name              string  `json:"name"`
	Features          string  `json:"features"`
	ProductImage      string  `json:"productImage"`
	ProductCategoryID uint    `json:"productCategoryId"`
	Amount            float64 `json:"amount"`
	Description       string  `gorm:"column:description"`
}