This commit is contained in:
2026-09-02 23:35:15 +07:00
parent 38d2227f99
commit daba1c244d
12 changed files with 1208 additions and 276 deletions
@@ -388,6 +388,38 @@
]
}
},
"/api/games/{gameId}/results": {
"get": {
"summary": "Получить итоговую таблицу игры (после завершения)",
"operationId": "EveningDetectiveServer_GetGameResults",
"responses": {
"200": {
"description": "A successful response.",
"schema": {
"$ref": "#/definitions/evening_detective_serverGetGameResultsRsp"
}
},
"default": {
"description": "An unexpected error response.",
"schema": {
"$ref": "#/definitions/rpcStatus"
}
}
},
"parameters": [
{
"name": "gameId",
"in": "path",
"required": true,
"type": "integer",
"format": "int32"
}
],
"tags": [
"Игры"
]
}
},
"/api/games/{id}": {
"get": {
"summary": "Получить игру",
@@ -2514,6 +2546,28 @@
}
}
},
"evening_detective_serverGetGameResultsRsp": {
"type": "object",
"properties": {
"error": {
"type": "string"
},
"questions": {
"type": "array",
"items": {
"type": "object",
"$ref": "#/definitions/evening_detective_serverResultsQuestion"
}
},
"teams": {
"type": "array",
"items": {
"type": "object",
"$ref": "#/definitions/evening_detective_serverTeamResult"
}
}
}
},
"evening_detective_serverGetGameRsp": {
"type": "object",
"properties": {
@@ -2867,6 +2921,18 @@
}
}
},
"evening_detective_serverResultsQuestion": {
"type": "object",
"properties": {
"code": {
"type": "string"
},
"text": {
"type": "string"
}
},
"description": "Вопрос в шапке итоговой таблицы: правильный ответ (поле answer сообщения\nQuestion) командам/таблице не передаётся — он виден только в панели оценки."
},
"evening_detective_serverScenario": {
"type": "object",
"properties": {
@@ -3022,6 +3088,37 @@
},
"title": "Ответы одной команды на вопросы дела"
},
"evening_detective_serverTeamResult": {
"type": "object",
"properties": {
"team": {
"$ref": "#/definitions/evening_detective_serverTeam"
},
"answers": {
"type": "array",
"items": {
"type": "object",
"$ref": "#/definitions/evening_detective_serverAnswerScore"
}
},
"totalScore": {
"type": "integer",
"format": "int32",
"title": "Сумма баллов по всем вопросам сценария (неоценённые считаются как 0)"
},
"place": {
"type": "integer",
"format": "int32",
"title": "Место в итоговой таблице: команды с одинаковой суммой баллов и\nодинаковым числом ходов занимают одно место (следующее пропускается)"
},
"actionsCount": {
"type": "integer",
"format": "int32",
"title": "Количество ходов команды (дублирует team.actions_count для удобства\nтаблицы; участвует в тай-брейке при равенстве суммы баллов)"
}
},
"description": "Строка итоговой таблицы: команда, баллы по вопросам, сумма и место."
},
"evening_detective_serverUpdateGameRsp": {
"type": "object",
"properties": {