id type change
This commit is contained in:
parent
520f0e6ec7
commit
11ff61f561
3 changed files with 7 additions and 7 deletions
|
|
@ -18,9 +18,9 @@ func newService(repo Repository, utils utils.Utils) *service {
|
|||
}
|
||||
}
|
||||
|
||||
func (s *service) GetUserId(ctx context.Context, userUuid string) (string, error) {
|
||||
func (s *service) GetUserId(ctx context.Context, userUuid string) (int64, error) {
|
||||
if userUuid == "" {
|
||||
return "", errors.New("user uuid is empty")
|
||||
return 0, errors.New("user uuid is empty")
|
||||
}
|
||||
|
||||
return s.repo.getUserId(ctx, userUuid)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue