add get me route

This commit is contained in:
2026-07-06 22:41:58 +07:00
parent b7219cfff9
commit 728fcc6fda
8 changed files with 313 additions and 37 deletions
@@ -197,3 +197,14 @@ func (s *UsersService) GetUsers(
}
return users, nil
}
func (s *UsersService) GetUserByID(
ctx context.Context,
userId int,
) (*repos.User, error) {
user, err := s.usersRepo.GetUserByID(ctx, userId)
if err != nil {
return nil, err
}
return user, nil
}