switch to pgx driver + create merch
This commit is contained in:
parent
546fe13107
commit
97f8d27430
13 changed files with 289 additions and 69 deletions
|
|
@ -1,6 +1,7 @@
|
|||
package user
|
||||
|
||||
import (
|
||||
"context"
|
||||
"errors"
|
||||
"merch-api/pkg/utils"
|
||||
)
|
||||
|
|
@ -17,10 +18,10 @@ func newService(repo Repository, utils utils.Utils) *service {
|
|||
}
|
||||
}
|
||||
|
||||
func (s *service) GetUserId(userUuid string) (string, error) {
|
||||
func (s *service) GetUserId(ctx context.Context, userUuid string) (string, error) {
|
||||
if userUuid == "" {
|
||||
return "", errors.New("user uuid is empty")
|
||||
}
|
||||
|
||||
return s.repo.getUserId(userUuid)
|
||||
return s.repo.getUserId(ctx, userUuid)
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue