package store

type ReviewResponse struct {
	ID       uint   `json:"id"`
	UserName string `json:"userName"`
	Profile  string `json:"profile"`
	Review   string `json:"review"`
	Rating   int    `json:"rating"`
}

type ProductReviewResponse struct {
	AverageRating float64          `json:"averageRating"`
	TotalReviews  int64            `json:"totalReviews"`
	RatingSummary RatingSummary    `json:"ratingSummary"`
	Reviews       []ReviewResponse `json:"reviews"`
	Status        int              `json:"status"`
}

type RatingSummary struct {
	FiveStar  int64 `json:"fiveStar"`
	FourStar  int64 `json:"fourStar"`
	ThreeStar int64 `json:"threeStar"`
	TwoStar   int64 `json:"twoStar"`
	OneStar   int64 `json:"oneStar"`
}