huangjinghao 1 неделя назад
Родитель
Сommit
050212d511
2 измененных файлов с 89 добавлено и 2 удалено
  1. 1 1
      protocol/A_new_buildjson.bat
  2. 88 1
      protocol/msg_mys.json

+ 1 - 1
protocol/A_new_buildjson.bat

@@ -1 +1 @@
-pbjs -t json -w commonjs -o msg_mys.json ws_battle_progress_request.proto ws_choose_magic_request.proto ws_common_request.proto ws_common_response.proto ws_enter_game_request.proto ws_game_mode.proto ws_mail_request.proto ws_message_types.proto ws_protocol.proto ws_upgrade_magic_request.proto ws_index_request.proto ws_daily_task_request.proto
+pbjs -t json -w commonjs -o msg_mys.json ws_battle_progress_request.proto ws_choose_magic_request.proto ws_common_request.proto ws_common_response.proto ws_enter_game_request.proto ws_game_mode.proto ws_mail_request.proto ws_message_types.proto ws_protocol.proto ws_upgrade_magic_request.proto ws_index_request.proto ws_daily_task_request.proto ws_enter_story_request.proto

+ 88 - 1
protocol/msg_mys.json

@@ -2,7 +2,7 @@
     "package": "vip.metadev.module.battle.protobuf",
     "syntax": "proto2",
     "options": {
-        "java_outer_classname": "DailyTaskRequestProto",
+        "java_outer_classname": "EnterStoryRequestProto",
         "java_multiple_files": false
     },
     "messages": [
@@ -836,6 +836,93 @@
                     "id": 2
                 }
             ]
+        },
+        {
+            "name": "EnterStoryRequest",
+            "syntax": "proto2",
+            "fields": [
+                {
+                    "rule": "optional",
+                    "type": "WsMessageType",
+                    "name": "message_id",
+                    "id": 1,
+                    "options": {
+                        "default": "ENTRY_STORY_GAME"
+                    }
+                },
+                {
+                    "rule": "optional",
+                    "type": "int32",
+                    "name": "story_id",
+                    "id": 2
+                },
+                {
+                    "rule": "optional",
+                    "type": "bool",
+                    "name": "battle_over",
+                    "id": 3,
+                    "options": {
+                        "default": false
+                    }
+                },
+                {
+                    "rule": "optional",
+                    "type": "bool",
+                    "name": "success",
+                    "id": 4,
+                    "options": {
+                        "default": false
+                    }
+                },
+                {
+                    "rule": "repeated",
+                    "type": "CommonRequest",
+                    "name": "envelope",
+                    "id": 5
+                }
+            ]
+        },
+        {
+            "name": "EntryStoryResponse",
+            "syntax": "proto2",
+            "fields": [
+                {
+                    "rule": "optional",
+                    "type": "int32",
+                    "name": "story_id",
+                    "id": 1
+                },
+                {
+                    "rule": "optional",
+                    "type": "int32",
+                    "name": "battle_status",
+                    "id": 2
+                },
+                {
+                    "rule": "repeated",
+                    "type": "StoryAwardItemVo",
+                    "name": "story_award_items",
+                    "id": 3
+                }
+            ]
+        },
+        {
+            "name": "StoryAwardItemVo",
+            "syntax": "proto2",
+            "fields": [
+                {
+                    "rule": "optional",
+                    "type": "int32",
+                    "name": "item_id",
+                    "id": 1
+                },
+                {
+                    "rule": "optional",
+                    "type": "int32",
+                    "name": "quantity",
+                    "id": 2
+                }
+            ]
         }
     ],
     "enums": [