Skip to content

Commit

Permalink
Rename filter fields to use snake case
Browse files Browse the repository at this point in the history
  • Loading branch information
gapidobri committed Nov 21, 2024
1 parent a7388a7 commit f22096f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions internal/pkg/models/api/won_prize.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit f22096f

Please sign in to comment.