generated from VLADIMIR/template
add tickets api
This commit is contained in:
@@ -516,6 +516,18 @@ service EveningDetectiveServer {
|
||||
};
|
||||
}
|
||||
|
||||
rpc IssueGameTickets(IssueGameTicketsReq) returns (IssueGameTicketsRsp) {
|
||||
option (google.api.http) = {
|
||||
post: "/api/games/{gameId}/tickets"
|
||||
body: "*"
|
||||
};
|
||||
option (grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation) = {
|
||||
security: { security_requirement: {} }
|
||||
tags: "Билеты";
|
||||
summary: "Выпустить билеты на игру";
|
||||
};
|
||||
}
|
||||
|
||||
// Создать сессию экрана. Экран получает токен и показывает QR для привязки.
|
||||
rpc CreateScreenSession(CreateScreenSessionReq) returns (CreateScreenSessionRsp) {
|
||||
option (google.api.http) = {
|
||||
@@ -1864,3 +1876,18 @@ message UpdateScenarioBackgroundReq {
|
||||
message UpdateScenarioBackgroundRsp {
|
||||
string error = 1;
|
||||
}
|
||||
|
||||
message IssueGameTicketsReq {
|
||||
int32 gameId = 1;
|
||||
int32 count = 2;
|
||||
}
|
||||
|
||||
message IssueGameTicketsRsp {
|
||||
string error = 1;
|
||||
repeated Ticket tickets = 2;
|
||||
}
|
||||
|
||||
message Ticket {
|
||||
int32 id = 1;
|
||||
string url = 2;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user