generated from VLADIMIR/template
up
This commit is contained in:
@@ -40,6 +40,7 @@ import (
|
||||
"evening_detective_server/internal/services/game_export_service"
|
||||
"evening_detective_server/internal/services/game_import_service"
|
||||
"evening_detective_server/internal/services/game_package_service"
|
||||
"evening_detective_server/internal/services/game_print_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"
|
||||
@@ -221,6 +222,7 @@ func main() {
|
||||
reviewService := game_review_service.NewGameReviewService(reviewsRepo, gameRepo, teamRepo, os.Getenv("APP_BASE_URL"))
|
||||
|
||||
teamService := team_service.NewTeamService(gameRepo, teamRepo, passwordGenerator, os.Getenv("APP_BASE_URL"), emailSender)
|
||||
gamePrintService := game_print_service.NewGamePrintService(gameRepo, scenarioService, teamRepo, teamService, fileStorage, os.Getenv("FILE_PREFIX_DOMAIN"))
|
||||
|
||||
participationService := participation_service.NewParticipationService(teamRepo, os.Getenv("APP_BASE_URL"))
|
||||
ticketService := ticket_service.NewTicketService(ticketRepo, os.Getenv("APP_BASE_URL"))
|
||||
@@ -298,6 +300,7 @@ func main() {
|
||||
gameResultsApplyService,
|
||||
devicePresenceService,
|
||||
wifi_service.New(os.Getenv("CUDY_SNAPSHOT_FILE")),
|
||||
gamePrintService,
|
||||
),
|
||||
)
|
||||
|
||||
|
||||
@@ -841,6 +841,38 @@
|
||||
]
|
||||
}
|
||||
},
|
||||
"/api/games/{ID}/print-materials": {
|
||||
"get": {
|
||||
"summary": "Скачать материалы игры для печати ZIP-архивом",
|
||||
"operationId": "EveningDetectiveServer_DownloadGamePrintMaterials",
|
||||
"responses": {
|
||||
"200": {
|
||||
"description": "A successful response.",
|
||||
"schema": {
|
||||
"$ref": "#/definitions/apiHttpBody"
|
||||
}
|
||||
},
|
||||
"default": {
|
||||
"description": "An unexpected error response.",
|
||||
"schema": {
|
||||
"$ref": "#/definitions/rpcStatus"
|
||||
}
|
||||
}
|
||||
},
|
||||
"parameters": [
|
||||
{
|
||||
"name": "ID",
|
||||
"in": "path",
|
||||
"required": true,
|
||||
"type": "integer",
|
||||
"format": "int32"
|
||||
}
|
||||
],
|
||||
"tags": [
|
||||
"Игры"
|
||||
]
|
||||
}
|
||||
},
|
||||
"/api/games/{ID}/reset": {
|
||||
"put": {
|
||||
"summary": "Сбросить игру",
|
||||
|
||||
Reference in New Issue
Block a user