This commit is contained in:
2026-08-28 22:05:23 +07:00
parent 606d515ade
commit 8a535a3f3c
2 changed files with 63 additions and 1 deletions
+27 -1
View File
@@ -365,6 +365,17 @@ service EveningDetectiveServer {
};
}
rpc UpdateScenarioIntro(UpdateScenarioIntroReq) returns (UpdateScenarioIntroRsp) {
option (google.api.http) = {
put : "/api/scenarios/{id}/introduction"
body: "*"
};
option (grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation) = {
tags : "Сценарии";
summary: "Обновить введение сценария";
};
}
rpc DownloadScenarioArchive(DownloadScenarioArchiveReq) returns (google.api.HttpBody) {
option (google.api.http) = {
get: "/api/scenarios/{id}/archive"
@@ -776,7 +787,13 @@ message Scenario {
}
message Story {
repeated Place places = 1;
Introduction introduction = 2;
repeated Place places = 1;
}
message Introduction {
string text = 1;
string audio = 2;
}
message Place {
@@ -868,6 +885,15 @@ message DeleteScenarioPlaceRsp {
string error = 1;
}
message UpdateScenarioIntroReq {
int32 id = 1;
Introduction introduction = 2;
}
message UpdateScenarioIntroRsp {
string error = 1;
}
message DownloadScenarioArchiveReq {
int32 id = 1;
}