generated from VLADIMIR/template
add game to team story
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user