Add customer feedback statistics endpoint and refactor feedback handling
This commit is contained in:
@@ -87,3 +87,12 @@ type StatsResponse struct {
|
||||
TotalFeedback int64 `json:"total_feedback"`
|
||||
LastUpdated int64 `json:"last_updated"`
|
||||
}
|
||||
|
||||
// CustomerStatsResponse represents feedback statistics for a single customer.
|
||||
type CustomerStatsResponse struct {
|
||||
CustomerID string `json:"customer_id"`
|
||||
TotalLikes int64 `json:"total_likes"`
|
||||
TotalDislikes int64 `json:"total_dislikes"`
|
||||
TotalFeedback int64 `json:"total_feedback"`
|
||||
LastUpdated int64 `json:"last_updated"`
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user