From a6f34cddeafc9850e32a752a3af9d8a307ee341f Mon Sep 17 00:00:00 2001 From: ikura-hamu <104292023+ikura-hamu@users.noreply.github.com> Date: Sun, 8 Oct 2023 18:10:19 +0900 Subject: [PATCH] =?UTF-8?q?:recycle:=20=E3=82=B2=E3=83=BC=E3=83=A0?= =?UTF-8?q?=E3=81=AE=E3=82=B8=E3=83=A3=E3=83=B3=E3=83=AB=E5=A4=89=E6=9B=B4?= =?UTF-8?q?=E3=81=AEhandler=E9=96=A2=E6=95=B0=E3=82=92game=5Fgenre.go?= =?UTF-8?q?=E3=81=B8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/handler/v2/game.go | 7 ------- src/handler/v2/game_genre.go | 3 +++ 2 files changed, 3 insertions(+), 7 deletions(-) diff --git a/src/handler/v2/game.go b/src/handler/v2/game.go index e9d3b523..276db3dc 100644 --- a/src/handler/v2/game.go +++ b/src/handler/v2/game.go @@ -292,10 +292,3 @@ func (g *Game) PatchGame(ctx echo.Context, gameID openapi.GameIDInPath) error { return ctx.JSON(http.StatusOK, res) } - -// ゲームのジャンル編集 -// (PUT /games/{gameID}/genres) -// TODO: 実装 -func (g *Game) PutGameGenres(ctx echo.Context, gameID openapi.GameIDInPath) error { - return echo.NewHTTPError(http.StatusNotImplemented, "not implemented") -} diff --git a/src/handler/v2/game_genre.go b/src/handler/v2/game_genre.go index 6628462f..141ff991 100644 --- a/src/handler/v2/game_genre.go +++ b/src/handler/v2/game_genre.go @@ -26,4 +26,7 @@ type gameGenreUnimplemented interface { // ジャンル情報の変更 // (PATCH /genres/{gameGenreID}) PatchGameGenre(ctx echo.Context, gameGenreID openapi.GameGenreIDInPath) error + // ゲームのジャンル編集 + // (PUT /games/{gameID}/genres) + PutGameGenres(ctx echo.Context, gameID openapi.GameIDInPath) error }