add cover

This commit is contained in:
2026-09-10 12:02:06 +07:00
parent 3fe0083593
commit b6c9c8ed55
42 changed files with 76 additions and 58 deletions
+25 -18
View File
@@ -576,7 +576,7 @@ service EveningDetectiveServer {
rpc GetGameMap(GetGameMapReq) returns (GetGameMapRsp) {
option (google.api.http) = { get: "/api/games/{gameId}/map" };
option (grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation) = {
tags: "Экраны";
tags : "Экраны";
summary: "Получить карту игры";
};
}
@@ -587,7 +587,7 @@ service EveningDetectiveServer {
body: "*"
};
option (grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation) = {
tags: "Экраны";
tags : "Экраны";
summary: "Изменить объект карты игры";
};
}
@@ -1316,6 +1316,8 @@ message ScreenState {
string error = 6;
int64 state_version = 7;
int64 position_ms = 8;
string game_name = 9;
string cover_image = 10;
}
message CreateScreenSessionReq {}
@@ -1374,29 +1376,34 @@ message SetScreenSoundRsp {
}
message MapItem {
string kind = 1;
int32 item_id = 2;
string label = 3;
int32 x = 4;
int32 y = 5;
bool hidden = 6;
string status = 7;
bool sound_enabled = 8;
string kind = 1;
int32 item_id = 2;
string label = 3;
int32 x = 4;
int32 y = 5;
bool hidden = 6;
string status = 7;
bool sound_enabled = 8;
}
message GetGameMapReq {
int32 gameId = 1;
}
message GetGameMapReq { int32 gameId = 1; }
message GetGameMapRsp {
string error = 1;
string error = 1;
repeated MapItem items = 2;
}
message UpdateGameMapItemReq {
int32 gameId = 1;
string kind = 2;
int32 itemId = 3;
int32 x = 4;
int32 y = 5;
bool hidden = 6;
int32 gameId = 1;
string kind = 2;
int32 itemId = 3;
int32 x = 4;
int32 y = 5;
bool hidden = 6;
}
message UpdateGameMapItemRsp { string error = 1; }
message SetScreenModeReq {