This commit is contained in:
2026-09-18 17:48:09 +07:00
parent f2c0b1c917
commit 3925879784
87 changed files with 1391 additions and 1149 deletions
+21
View File
@@ -539,6 +539,17 @@ service EveningDetectiveServer {
};
}
rpc AcceptTicket(AcceptTicketReq) returns (AcceptTicketRsp) {
option (google.api.http) = {
post: "/api/tickets/{token}/accept"
body: "*"
};
option (grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation) = {
tags: "Билеты";
summary: "Принять билет";
};
}
// Создать сессию экрана. Экран получает токен и показывает QR для привязки.
rpc CreateScreenSession(CreateScreenSessionReq) returns (CreateScreenSessionRsp) {
option (google.api.http) = {
@@ -1912,6 +1923,15 @@ message GetTicketRsp {
TicketPage ticket = 2;
}
message AcceptTicketReq {
string token = 1;
}
message AcceptTicketRsp {
string error = 1;
TicketPage ticket = 2;
}
message TicketPage {
int32 id = 1;
string game_name = 2;
@@ -1920,4 +1940,5 @@ message TicketPage {
string status = 5;
string game_status = 6;
optional google.protobuf.Timestamp used_at = 7;
string used_by = 8;
}