generated from VLADIMIR/template
add intro
This commit is contained in:
+27
-1
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user