add game to team story

This commit is contained in:
2026-08-03 01:17:50 +07:00
parent 051b3e8bee
commit 599c73bc08
6 changed files with 116 additions and 85 deletions
+10 -1
View File
@@ -67,7 +67,16 @@ func (s *GameService) AddGame(
return id, nil
}
func (s *GameService) GetGame(
func (s *GameService) GetGame(ctx context.Context, id int) (*Game, error) {
game, err := s.gamesRepo.GetGameByID(ctx, id)
if err != nil {
return nil, err
}
res := mapGame(game, s.domain)
return res, nil
}
func (s *GameService) GetFullGame(
ctx context.Context,
id int,
) (*Game, error) {