generated from VLADIMIR/template
69 lines
2.7 KiB
Go
69 lines
2.7 KiB
Go
package app
|
|
|
|
import (
|
|
"evening_detective_server/internal/repos/game_map_repo"
|
|
"evening_detective_server/internal/repos/screen_sessions_repo"
|
|
"evening_detective_server/internal/services/answer_service"
|
|
"evening_detective_server/internal/services/file_service"
|
|
"evening_detective_server/internal/services/game_review_service"
|
|
"evening_detective_server/internal/services/game_service"
|
|
"evening_detective_server/internal/services/gameplay_service"
|
|
"evening_detective_server/internal/services/participation_service"
|
|
"evening_detective_server/internal/services/scenarios_service"
|
|
"evening_detective_server/internal/services/team_service"
|
|
"evening_detective_server/internal/services/ticket_service"
|
|
"evening_detective_server/internal/services/ui_service"
|
|
"evening_detective_server/internal/services/users_service"
|
|
proto "evening_detective_server/proto"
|
|
)
|
|
|
|
type server struct {
|
|
proto.UnsafeEveningDetectiveServerServer
|
|
|
|
usersService *users_service.UsersService
|
|
uiService *ui_service.UiService
|
|
fileService *file_service.FileService
|
|
scenarioService *scenarios_service.ScenarioService
|
|
gameService *game_service.GameService
|
|
gameplayService *gameplay_service.GameplayService
|
|
answerService *answer_service.AnswerService
|
|
reviewService *game_review_service.Service
|
|
teamService *team_service.TeamService
|
|
ticketService *ticket_service.Service
|
|
participationService *participation_service.ParticipationService
|
|
screenRepo *screen_sessions_repo.ScreenSessionsRepo
|
|
mapRepo *game_map_repo.Repo
|
|
}
|
|
|
|
func NewServer(
|
|
usersService *users_service.UsersService,
|
|
uiService *ui_service.UiService,
|
|
fileService *file_service.FileService,
|
|
scenarioService *scenarios_service.ScenarioService,
|
|
gameService *game_service.GameService,
|
|
gameplayService *gameplay_service.GameplayService,
|
|
answerService *answer_service.AnswerService,
|
|
reviewService *game_review_service.Service,
|
|
teamService *team_service.TeamService,
|
|
ticketService *ticket_service.Service,
|
|
participationService *participation_service.ParticipationService,
|
|
screenRepo *screen_sessions_repo.ScreenSessionsRepo,
|
|
mapRepo *game_map_repo.Repo,
|
|
) proto.EveningDetectiveServerServer {
|
|
return &server{
|
|
usersService: usersService,
|
|
uiService: uiService,
|
|
fileService: fileService,
|
|
scenarioService: scenarioService,
|
|
gameService: gameService,
|
|
gameplayService: gameplayService,
|
|
answerService: answerService,
|
|
reviewService: reviewService,
|
|
teamService: teamService,
|
|
ticketService: ticketService,
|
|
participationService: participationService,
|
|
screenRepo: screenRepo,
|
|
mapRepo: mapRepo,
|
|
}
|
|
}
|