package dtos // 1. INPUT (Upsert) // We only need the value, track, and author. type UpsertRatingRequest struct { Value int `json:"value" binding:"required,min=1,max=10"` TrackID string `json:"track_id" binding:"required,uuid"` AuthorID string `json:"author_id" binding:"required,uuid"` } type RatingResponse struct { Message string `json:"message" example:"Rating saved successfully"` ID string `json:"id,omitempty" example:"123e4567-e89b-12d3-a456-426614174000"` Count int `json:"count" example:"42"` Value float64 `json:"value" example:"8.5"` }