From 7035b62cc4ffe2cb4fa2734e5253b0e4586da4ad Mon Sep 17 00:00:00 2001 From: gaojie Date: Mon, 13 May 2019 14:58:01 +0800 Subject: [PATCH] =?UTF-8?q?=E5=95=86=E5=BA=97=E5=88=B7=E6=96=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- protos/MessageTypeProto.proto | 7 +++++++ protos/PlayerInfoProto.proto | 22 ++++++++++++++++++++-- 2 files changed, 27 insertions(+), 2 deletions(-) diff --git a/protos/MessageTypeProto.proto b/protos/MessageTypeProto.proto index eb41380..99132e2 100644 --- a/protos/MessageTypeProto.proto +++ b/protos/MessageTypeProto.proto @@ -38,6 +38,9 @@ enum MessageType{ ARENA_DEFENSE_RESPONSE = 10015; // B 10100 + BUY_STORE_ITEM_REQUEST = 10100; // 购买商店物品 + BUY_STORE_ITEM_RESPONSE = 10101; + // C 10200 COOK_FOOD_REQUEST = 10200; // 制作美食 COOK_FOOD_RESPONSE = 10201; @@ -186,6 +189,10 @@ enum MessageType{ SECRETBOX_RANDOM_REQUEST = 11811; //秘盒抽取 SECRETBOX_RANDOM_RESPONSE = 11812; + + STORE_GOODS_REFRESH_REQUEST = 11813; //商店刷新 + STORE_GOODS_REFRESH_RESPONSE= 11814; + // T 11900 TRIGGER_EVENT_REQUEST = 11900; // TRIGGER_EVENT_RESPONSE = 11901; diff --git a/protos/PlayerInfoProto.proto b/protos/PlayerInfoProto.proto index 61f462f..6395e6f 100644 --- a/protos/PlayerInfoProto.proto +++ b/protos/PlayerInfoProto.proto @@ -166,6 +166,24 @@ import "CommonProto.proto"; optional Drop extrarReward =2; //额外奖励 } - message GetStoreInfos{ + message GetStoreInfosResponse{ repeated StoreInfo StoreInfo = 1; //商店信息 - } \ No newline at end of file + } + + message BuyStoreItemRequest{ + optional int32 storeId =1;//商店id + optional int32 itemId =2; //物品id + optional int32 itemNum =3; //物品数量 + } + + message BuyStoreItemResponse{ + optional Drop drop = 1; //抽取到的物品 + } + + message StoreGoodsRefreshRequest{ + optional int32 type =1; //0:手动刷新 1: 自动刷新 + optional int32 storeId = 2; //商店id + } + message StoreGoodsRefreshResponse{ + optional StoreInfo StoreInfo = 1; //商店信息 + }