From 8ba97034d87ba37fb8a1a1473f9ad19d9f1b1277 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ga=C5=A1per=20Dobrovoljc?= Date: Thu, 21 Nov 2024 19:14:05 +0100 Subject: [PATCH] Fix snake case inconsistencies --- internal/api/admin/draw_method.go | 4 ++-- internal/api/admin/participation_method.go | 2 +- internal/api/admin/prize.go | 2 +- internal/api/admin/user.go | 2 +- internal/api/admin/won_prize.go | 6 +++--- 5 files changed, 8 insertions(+), 8 deletions(-) diff --git a/internal/api/admin/draw_method.go b/internal/api/admin/draw_method.go index 49a75b1..15ec09c 100644 --- a/internal/api/admin/draw_method.go +++ b/internal/api/admin/draw_method.go @@ -12,10 +12,10 @@ func (s *Server) drawMethodRoutes() { // swagger:route GET /draw-methods admin drawMethods getDrawMethods // // parameters: - // + name: gameId + // + name: game_id // in: query // type: string - // + name: participationMethodId + // + name: participation_id // in: query // type: string // diff --git a/internal/api/admin/participation_method.go b/internal/api/admin/participation_method.go index 95adab4..4aad2c3 100644 --- a/internal/api/admin/participation_method.go +++ b/internal/api/admin/participation_method.go @@ -12,7 +12,7 @@ func (s *Server) participationMethodRoutes() { // swagger:route GET /participation-methods admin participationMethods getParticipationMethods // // parameters: - // + name: gameId + // + name: game_id // in: query // type: string // diff --git a/internal/api/admin/prize.go b/internal/api/admin/prize.go index 1e98f05..c5a07ee 100644 --- a/internal/api/admin/prize.go +++ b/internal/api/admin/prize.go @@ -12,7 +12,7 @@ func (s *Server) prizeRoutes() { // swagger:route GET /prizes admin prizes getPrizes // // parameters: - // + name: gameId + // + name: game_id // in: query // type: string // diff --git a/internal/api/admin/user.go b/internal/api/admin/user.go index 2562850..b46a75e 100644 --- a/internal/api/admin/user.go +++ b/internal/api/admin/user.go @@ -12,7 +12,7 @@ func (s *Server) userRoutes() { // swagger:route GET /users admin users getUsers // // parameters: - // + name: gameId + // + name: game_id // in: query // type: string // diff --git a/internal/api/admin/won_prize.go b/internal/api/admin/won_prize.go index df8234a..7a2a733 100644 --- a/internal/api/admin/won_prize.go +++ b/internal/api/admin/won_prize.go @@ -12,13 +12,13 @@ func (s *Server) wonPrizeRoutes() { // swagger:route GET /won-prizes admin wonPrizes getWonPrizes // // parameters: - // + name: gameId + // + name: game_id // in: query // type: string - // + name: userId + // + name: user_id // in: query // type: string - // + name: prizeId + // + name: prize_id // in: query // type: string //