-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
PATCH
/genres/:genreID`の実装
#1023
Conversation
PR Reviewer Guide 🔍(Review updated until commit c376176)Here are some key observations to aid the review process:
|
PR Code Suggestions ✨Latest suggestions up to c376176
Previous suggestionsSuggestions up to commit 91224f3
|
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #1023 +/- ##
==========================================
+ Coverage 49.10% 49.58% +0.48%
==========================================
Files 121 121
Lines 10742 10892 +150
==========================================
+ Hits 5275 5401 +126
- Misses 5140 5159 +19
- Partials 327 332 +5 ☔ View full report in Codecov by Sentry. |
Persistent review updated to latest commit c376176 |
User description
fix: #720
PR Type
Enhancement, Tests
Description
PATCH /genres/{gameGenreID}
の実装を行い、ゲームジャンルの情報を更新する機能を追加しました。Changes walkthrough 📝
6 files
game_genre.go
Implement PATCH method for updating game genre
src/handler/v2/game_genre.go
PatchGameGenre
method implemented for updating game genre information.added.
game_genre.go
Implement repository methods for game genre updates
src/repository/game_genre.go
UpdateGameGenre
method to update game genre information.GetGameGenre
method to retrieve game genre by ID.GetGamesByGenreID
method to retrieve games by genre ID.game_genre.go
Implement GORM repository methods for game genre
src/repository/gorm2/game_genre.go
UpdateGameGenre
method for database updates.GetGameGenre
andGetGamesByGenreID
methods.errors.go
Define new error types for game genre service
src/service/errors.go
ErrNoGameGenreUpdated
andErrDuplicateGameGenreName
.game_genre.go
Extend service interface for game genre updates
src/service/game_genre.go
UpdateGameGenre
method to service interface.game_genre.go
Implement service logic for updating game genre
src/service/v2/game_genre.go
UpdateGameGenre
method in service.3 files
game_genre_test.go
Add tests for PATCH game genre functionality
src/handler/v2/game_genre_test.go
PatchGameGenre
method.game_genre_test.go
Add repository tests for game genre methods
src/repository/gorm2/game_genre_test.go
UpdateGameGenre
repository method.GetGameGenre
andGetGamesByGenreID
.game_genre_test.go
Add service tests for updating game genre
src/service/v2/game_genre_test.go
UpdateGameGenre
service method.