add conclusion

This commit is contained in:
2026-09-07 02:54:23 +07:00
parent 106d2830fa
commit 94fc85f074
18 changed files with 1112 additions and 520 deletions
+72 -1
View File
@@ -1005,6 +1005,46 @@
]
}
},
"/api/scenarios/{id}/conclusion": {
"put": {
"summary": "Обновить закрывашку сценария (игрокам не передаётся)",
"operationId": "EveningDetectiveServer_UpdateScenarioConclusion",
"responses": {
"200": {
"description": "A successful response.",
"schema": {
"$ref": "#/definitions/evening_detective_serverUpdateScenarioConclusionRsp"
}
},
"default": {
"description": "An unexpected error response.",
"schema": {
"$ref": "#/definitions/rpcStatus"
}
}
},
"parameters": [
{
"name": "id",
"in": "path",
"required": true,
"type": "integer",
"format": "int32"
},
{
"name": "body",
"in": "body",
"required": true,
"schema": {
"$ref": "#/definitions/EveningDetectiveServerUpdateScenarioConclusionBody"
}
}
],
"tags": [
"Сценарии"
]
}
},
"/api/scenarios/{id}/draft": {
"put": {
"summary": "Снять с публикации сценарий",
@@ -2204,6 +2244,14 @@
}
}
},
"EveningDetectiveServerUpdateScenarioConclusionBody": {
"type": "object",
"properties": {
"conclusion": {
"$ref": "#/definitions/evening_detective_serverConclusion"
}
}
},
"EveningDetectiveServerUpdateScenarioIntroBody": {
"type": "object",
"properties": {
@@ -2415,6 +2463,17 @@
}
}
},
"evening_detective_serverConclusion": {
"type": "object",
"properties": {
"text": {
"type": "string"
},
"video": {
"type": "string"
}
}
},
"evening_detective_serverDeleteAccountRsp": {
"type": "object",
"properties": {
@@ -3071,6 +3130,10 @@
"evening_detective_serverStory": {
"type": "object",
"properties": {
"conclusion": {
"$ref": "#/definitions/evening_detective_serverConclusion",
"description": "Только в полном сценарии, игрокам не передаётся."
},
"background": {
"type": "string"
},
@@ -3204,6 +3267,14 @@
}
}
},
"evening_detective_serverUpdateScenarioConclusionRsp": {
"type": "object",
"properties": {
"error": {
"type": "string"
}
}
},
"evening_detective_serverUpdateScenarioIntroRsp": {
"type": "object",
"properties": {
@@ -3267,7 +3338,7 @@
},
"file_type": {
"type": "string",
"description": "Тип загруженного файла: image | pdf | audio (определяется сервером по\nсодержимому). Удобен редактору для предзаполнения file_type улики."
"description": "Тип загруженного файла: image | pdf | audio | video (определяется сервером по\nсодержимому). Удобен редактору для предзаполнения file_type улики."
}
}
},