Bläddra i källkod

sync response add columns

王虎 4 år sedan
förälder
incheckning
5df0eed34a
1 ändrade filer med 3 tillägg och 1 borttagningar
  1. 3 1
      sync.proto

+ 3 - 1
sync.proto

@@ -10,7 +10,7 @@ message RestoreRequest {
 
 // 载入游戏响应
 message RestoreResponse {
-    map<int32, UserInfo> Users = 1;
+    repeated UserInfo Users = 1;
     int64 Step = 2;
     map<string, bytes> Values = 3;
 }
@@ -24,6 +24,8 @@ message SyncRequest {
 // 同步消息响应
 message SyncResponse {
     bool Status = 1;
+    int64 Step = 2; // status=false时才有值
+    map<string, bytes> Values = 3; // status=false时才有值
 }
 
 // 同步消息推送