This commit is contained in:
2026-09-18 03:20:50 +07:00
parent 319d340b62
commit 154de679af
77 changed files with 327 additions and 88 deletions
+24 -11
View File
@@ -705,6 +705,16 @@ service EveningDetectiveServer {
};
}
rpc GetReviewsForModeration(GetReviewsForModerationReq) returns (GetGameReviewsRsp) {
option (google.api.http) = {
get: "/api/admin/game-reviews"
};
option (grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation) = {
tags : "Отзывы"
summary: "Получить общую очередь отзывов"
};
}
rpc ModerateGameReview(ModerateGameReviewReq) returns (ModerateGameReviewRsp) {
option (google.api.http) = {
put : "/api/admin/game-reviews/{id}"
@@ -1110,18 +1120,18 @@ message GetScenarioRsp {
}
message Scenario {
int32 id = 1;
string name = 2;
optional string description = 3;
optional string image = 4;
Story story = 5;
string status = 6;
User author = 7;
google.protobuf.Timestamp updated_at = 8;
google.protobuf.Timestamp created_at = 9;
google.protobuf.Timestamp published_at = 10;
int32 id = 1;
string name = 2;
optional string description = 3;
optional string image = 4;
Story story = 5;
string status = 6;
User author = 7;
google.protobuf.Timestamp updated_at = 8;
google.protobuf.Timestamp created_at = 9;
google.protobuf.Timestamp published_at = 10;
double average_rating = 11;
int32 reviews_count = 12;
int32 reviews_count = 12;
}
message Story {
@@ -1624,6 +1634,7 @@ message GameReview {
string text = 6;
string status = 7;
google.protobuf.Timestamp created_at = 8;
string game_name = 9;
}
message CreateGameReviewReq {
@@ -1643,6 +1654,8 @@ message GetGameReviewsReq {
int32 gameId = 1;
}
message GetReviewsForModerationReq {}
message GetGameReviewsRsp {
string error = 1;
double average_rating = 2;