add intro

This commit is contained in:
2026-08-28 22:02:58 +07:00
parent 5fcbf6f2c5
commit 1a05799b2d
17 changed files with 1103 additions and 364 deletions
@@ -973,6 +973,46 @@
]
}
},
"/api/scenarios/{id}/introduction": {
"put": {
"summary": "Обновить введение сценария",
"operationId": "EveningDetectiveServer_UpdateScenarioIntro",
"responses": {
"200": {
"description": "A successful response.",
"schema": {
"$ref": "#/definitions/evening_detective_serverUpdateScenarioIntroRsp"
}
},
"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/EveningDetectiveServerUpdateScenarioIntroBody"
}
}
],
"tags": [
"Сценарии"
]
}
},
"/api/scenarios/{id}/places": {
"post": {
"summary": "Создать точку сценария",
@@ -1765,6 +1805,14 @@
}
}
},
"EveningDetectiveServerUpdateScenarioIntroBody": {
"type": "object",
"properties": {
"introduction": {
"$ref": "#/definitions/evening_detective_serverIntroduction"
}
}
},
"EveningDetectiveServerUpdateScenarioPlaceBody": {
"type": "object",
"properties": {
@@ -2228,6 +2276,17 @@
}
}
},
"evening_detective_serverIntroduction": {
"type": "object",
"properties": {
"text": {
"type": "string"
},
"audio": {
"type": "string"
}
}
},
"evening_detective_serverKey": {
"type": "object",
"properties": {
@@ -2450,6 +2509,9 @@
"evening_detective_serverStory": {
"type": "object",
"properties": {
"introduction": {
"$ref": "#/definitions/evening_detective_serverIntroduction"
},
"places": {
"type": "array",
"items": {
@@ -2496,6 +2558,14 @@
}
}
},
"evening_detective_serverUpdateScenarioIntroRsp": {
"type": "object",
"properties": {
"error": {
"type": "string"
}
}
},
"evening_detective_serverUpdateScenarioPlaceRsp": {
"type": "object",
"properties": {