Files
evening_detective_server/internal/app/server.go
T
2026-10-11 13:26:38 +07:00

97 lines
4.4 KiB
Go

package app
import (
"evening_detective_server/internal/services/answer_service"
"evening_detective_server/internal/services/file_service"
"evening_detective_server/internal/services/game_export_service"
"evening_detective_server/internal/services/game_import_service"
"evening_detective_server/internal/services/game_results_package_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/map_service"
"evening_detective_server/internal/services/participation_service"
"evening_detective_server/internal/services/playlist_service"
"evening_detective_server/internal/services/scenarios_service"
"evening_detective_server/internal/services/screen_plan_service"
"evening_detective_server/internal/services/screen_service"
"evening_detective_server/internal/services/task_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
taskService *task_service.TaskService
fileService *file_service.FileService
scenarioService *scenarios_service.ScenarioService
gameExportService *game_export_service.GameExportService
gameImportService *game_import_service.GameImportService
gameResultsService *game_results_package_service.GameResultsPackageService
gameResultsApplyService *game_results_package_service.GameResultsApplyService
gameService *game_service.GameService
gameplayService *gameplay_service.GameplayService
answerService *answer_service.AnswerService
reviewService *game_review_service.GameReviewService
teamService *team_service.TeamService
ticketService *ticket_service.TicketService
participationService *participation_service.ParticipationService
screenService *screen_service.ScreenService
playlistService *playlist_service.Service
screenPlanService *screen_plan_service.ScreenPlanService
mapService *map_service.MapService
}
// NewServer creates the application server.
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.GameReviewService,
teamService *team_service.TeamService,
ticketService *ticket_service.TicketService,
participationService *participation_service.ParticipationService,
screenService *screen_service.ScreenService,
playlistService *playlist_service.Service,
screenPlanService *screen_plan_service.ScreenPlanService,
mapService *map_service.MapService,
taskService *task_service.TaskService,
gameExportService *game_export_service.GameExportService,
gameImportService *game_import_service.GameImportService,
gameResultsService *game_results_package_service.GameResultsPackageService,
gameResultsApplyService *game_results_package_service.GameResultsApplyService,
) proto.EveningDetectiveServerServer {
return &server{
gameImportService: gameImportService,
gameResultsService: gameResultsService,
gameResultsApplyService: gameResultsApplyService,
taskService: taskService,
gameExportService: gameExportService,
usersService: usersService,
uiService: uiService,
fileService: fileService,
scenarioService: scenarioService,
gameService: gameService,
gameplayService: gameplayService,
answerService: answerService,
reviewService: reviewService,
teamService: teamService,
ticketService: ticketService,
participationService: participationService,
screenService: screenService,
playlistService: playlistService,
screenPlanService: screenPlanService,
mapService: mapService,
}
}