add diffectly

This commit is contained in:
2026-10-03 14:52:40 +07:00
parent 4631c443e0
commit 7d4361a315
13 changed files with 200 additions and 103 deletions
+40 -37
View File
@@ -1045,19 +1045,19 @@ message DeleteAccountRsp {
message GetTermsReq {}
message GetTermsRsp {
string text = 1;
string text = 1;
}
message GetPrivacyReq {}
message GetPrivacyRsp {
string text = 1;
string text = 1;
}
message GetConsentReq {}
message GetConsentRsp {
string text = 1;
string text = 1;
}
message GetUsersReq {}
@@ -1080,13 +1080,13 @@ message GetUserByIDReq {
}
message GetUserByIDRsp {
User user = 1;
User user = 1;
}
message GetMeReq {}
message GetMeRsp {
User user = 1;
User user = 1;
}
message ChangeUserPasswordReq {
@@ -1139,7 +1139,7 @@ message AddScenarioReq {
}
message AddScenarioRsp {
int32 ID = 1;
int32 ID = 1;
}
message GetMyScenariosReq {}
@@ -1175,14 +1175,15 @@ message Scenario {
google.protobuf.Timestamp published_at = 10;
double average_rating = 11;
int32 reviews_count = 12;
string difficulty = 13;
}
message Story {
repeated Place places = 1;
Introduction introduction = 2;
repeated Question questions = 3;
string background = 4;
Conclusion conclusion = 5; // Только в полном сценарии, игрокам не передаётся.
repeated Place places = 1;
Introduction introduction = 2;
repeated Question questions = 3;
string background = 4;
Conclusion conclusion = 5; // Только в полном сценарии, игрокам не передаётся.
}
message Conclusion {
@@ -1364,20 +1365,20 @@ message DownloadScenarioArchiveReq {
}
message UploadScenarioArchiveRsp {
int32 ID = 1;
int32 ID = 1;
}
message AddGameReq {
string name = 1;
string description = 2;
google.protobuf.Timestamp start_at = 3;
int32 scenarioID = 4;
int32 scenarioID = 4;
string format = 5;
string location = 6;
}
message AddGameRsp {
int32 ID = 1;
int32 ID = 1;
}
message GetGamesReq {}
@@ -1437,7 +1438,7 @@ enum ScreenCommand {
message ScreenState {
string ID = 1;
string status = 2;
optional int32 gameID = 3;
optional int32 gameID = 3;
ScreenMode mode = 4;
bool sound_enabled = 5;
string error = 6;
@@ -1459,7 +1460,7 @@ message ScreenState {
message CreateScreenSessionReq {}
message CreateScreenSessionRsp {
string screenID = 1;
string screenID = 1;
string access_token = 2;
}
@@ -1507,7 +1508,7 @@ message SetScreenSoundRsp {
message MapItem {
string kind = 1;
int32 itemID = 2;
int32 itemID = 2;
string label = 3;
int32 x = 4;
int32 y = 5;
@@ -1601,22 +1602,22 @@ message ParticipationRsp {
}
message Team {
int32 ID = 1;
string name = 2;
string status = 3;
string password = 4;
int32 actions_count = 5;
repeated Application applications = 6;
string captain_email = 7;
int32 participants_count = 8;
int32 ID = 1;
string name = 2;
string status = 3;
string password = 4;
int32 actions_count = 5;
repeated Application applications = 6;
string captain_email = 7;
int32 participants_count = 8;
// Статус участия: pending, confirmed или cancelled. Поле панели организатора.
string participation_status = 9;
string participation_status = 9;
// Источник решения: captain, automatic либо пустая строка до ответа.
string participation_source = 10;
// Последняя ошибка отправки; пустая строка, если ошибки нет.
string participation_email_error = 11;
// Письмо принято SMTP-сервером; не означает прочтение или доставку во входящие.
bool participation_email_sent = 12;
bool participation_email_sent = 12;
}
message GetGameReq {
@@ -1624,7 +1625,7 @@ message GetGameReq {
}
message GetGameRsp {
Game game = 1;
Game game = 1;
}
message GetGameAnswersReq {
@@ -1668,22 +1669,24 @@ message GetGameResultsRsp {
message GameReview {
int32 ID = 1;
int32 gameID = 2;
int32 teamID = 3;
int32 gameID = 2;
int32 teamID = 3;
string team_name = 4;
int32 rating = 5;
string text = 6;
string status = 7;
google.protobuf.Timestamp created_at = 8;
string game_name = 9;
int32 difficulty = 10;
}
message CreateGameReviewReq {
int32 gameID = 1;
int32 teamID = 2;
string password = 3;
int32 rating = 4;
string text = 5;
int32 gameID = 1;
int32 teamID = 2;
string password = 3;
int32 rating = 4;
string text = 5;
int32 difficulty = 6;
}
message CreateGameReviewRsp {
@@ -1720,7 +1723,7 @@ message UpdateGameReq {
string name = 2;
string description = 3;
google.protobuf.Timestamp start_at = 4;
int32 scenarioID = 5;
int32 scenarioID = 5;
string format = 6;
string location = 7;
}
@@ -1771,7 +1774,7 @@ message DeleteGameRsp {
}
message AddTeamReq {
int32 gameID = 1;
int32 gameID = 1;
string name = 2;
string captain_email = 3;
}