add tickets api

This commit is contained in:
2026-09-18 16:08:35 +07:00
parent 32191529a5
commit 1be16d706e
11 changed files with 778 additions and 185 deletions
+27
View File
@@ -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;
}