generated from VLADIMIR/template
add game statuses
This commit is contained in:
@@ -148,6 +148,22 @@ func (s *GameService) UpdateGame(
|
||||
return s.gamesRepo.UpdateGame(ctx, id, name, description, startAt, scenarioId)
|
||||
}
|
||||
|
||||
func (s *GameService) StartGame(ctx context.Context, id int) error {
|
||||
return s.gamesRepo.StartGame(ctx, id)
|
||||
}
|
||||
|
||||
func (s *GameService) PauseGame(ctx context.Context, id int) error {
|
||||
return s.gamesRepo.PauseGame(ctx, id)
|
||||
}
|
||||
|
||||
func (s *GameService) FinishGame(ctx context.Context, id int) error {
|
||||
return s.gamesRepo.FinishGame(ctx, id)
|
||||
}
|
||||
|
||||
func (s *GameService) ResetGame(ctx context.Context, id int) error {
|
||||
return s.gamesRepo.ResetGame(ctx, id)
|
||||
}
|
||||
|
||||
func (s *GameService) AddTeam(
|
||||
ctx context.Context,
|
||||
creatorId int,
|
||||
|
||||
Reference in New Issue
Block a user