Skip to content
This repository has been archived by the owner on Aug 7, 2023. It is now read-only.

Commit

Permalink
fix: binding on context mock
Browse files Browse the repository at this point in the history
  • Loading branch information
ImSoZRious committed Jun 29, 2023
1 parent f089558 commit fd3de9c
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/mocks/rctx/rctx.mock.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,12 @@ func (c *ContextMock) Bind(v interface{}) error {
switch v.(type) {
case *dto.GroupDto:
*v.(*dto.GroupDto) = *args.Get(0).(*dto.GroupDto)
case *dto.RedeemNewToken:
*v.(*dto.RedeemNewToken) = *args.Get(0).(*dto.RedeemNewToken)
case *dto.VerifyTicket:
*v.(*dto.VerifyTicket) = *args.Get(0).(*dto.VerifyTicket)
case *dto.VerifyEstampRequest:
*v.(*dto.VerifyEstampRequest) = *args.Get(0).(*dto.VerifyEstampRequest)
case *dto.SelectBaan:
*v.(*dto.SelectBaan) = *args.Get(0).(*dto.SelectBaan)
case *dto.UserDto:
Expand Down

0 comments on commit fd3de9c

Please sign in to comment.