From f22096f36a0f61098ad660498e95b5f9d12eb051 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ga=C5=A1per=20Dobrovoljc?= Date: Thu, 21 Nov 2024 19:10:03 +0100 Subject: [PATCH] Rename filter fields to use snake case --- internal/pkg/models/api/won_prize.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/internal/pkg/models/api/won_prize.go b/internal/pkg/models/api/won_prize.go index 3070aeb..21c4854 100644 --- a/internal/pkg/models/api/won_prize.go +++ b/internal/pkg/models/api/won_prize.go @@ -24,8 +24,8 @@ func WonPrizeFromDB(wonPrize dbModels.WonPrize) WonPrize { type GetWonPrizesFilter struct { GameId *string `form:"game_id" binding:"omitnil,uuid"` - UserId *string `form:"userId" binding:"omitnil,uuid"` - PrizeId *string `form:"prizeId" binding:"omitnil,uuid"` + UserId *string `form:"user_id" binding:"omitnil,uuid"` + PrizeId *string `form:"prize_id" binding:"omitnil,uuid"` } func (f GetWonPrizesFilter) ToDB() dbModels.GetWonPrizesFilter {