diff --git a/internal/handlers/ebook.go b/internal/handlers/ebook.go index 9877575..8c729d4 100644 --- a/internal/handlers/ebook.go +++ b/internal/handlers/ebook.go @@ -322,7 +322,7 @@ func (h *Handler) UpdateReadingProgress(c echo.Context) error { // CreateOrUpdateEbookRatingRequest represents the request for creating/updating an ebook rating type CreateOrUpdateEbookRatingRequest struct { - Rating int32 `json:"rating" validate:"required,min=1,max=5"` + Rating int32 `json:"rating" validate:"required,min=1,max=10"` } // GetEbookRating handles GET /api/ebooks/:id/rating