generated from VLADIMIR/template
add update status methods
This commit is contained in:
@@ -240,6 +240,28 @@ service EveningDetectiveServer {
|
||||
};
|
||||
}
|
||||
|
||||
rpc PublicScenario(PublicScenarioReq) returns (PublicScenarioRsp) {
|
||||
option (google.api.http) = {
|
||||
put : "/api/scenarios/{id}/public"
|
||||
body: "*"
|
||||
};
|
||||
option (grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation) = {
|
||||
tags : "Сценарии";
|
||||
summary: "Опубликовать сценарий";
|
||||
};
|
||||
}
|
||||
|
||||
rpc DraftScenario(DraftScenarioReq) returns (DraftScenarioRsp) {
|
||||
option (google.api.http) = {
|
||||
put : "/api/scenarios/{id}/draft"
|
||||
body: "*"
|
||||
};
|
||||
option (grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation) = {
|
||||
tags : "Сценарии";
|
||||
summary: "Снять с публикации сценарий";
|
||||
};
|
||||
}
|
||||
|
||||
rpc DeleteScenario(DeleteScenarioReq) returns (DeleteScenarioRsp) {
|
||||
option (google.api.http) = {
|
||||
delete: "/api/scenarios/{id}"
|
||||
@@ -482,6 +504,22 @@ message UpdateScenarioRsp {
|
||||
string error = 1;
|
||||
}
|
||||
|
||||
message PublicScenarioReq {
|
||||
int32 id = 1;
|
||||
}
|
||||
|
||||
message PublicScenarioRsp {
|
||||
string error = 1;
|
||||
}
|
||||
|
||||
message DraftScenarioReq {
|
||||
int32 id = 1;
|
||||
}
|
||||
|
||||
message DraftScenarioRsp {
|
||||
string error = 1;
|
||||
}
|
||||
|
||||
message DeleteScenarioReq {
|
||||
int32 id = 1;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user