From 4ea63dbdbfcf2514eb183d5d84008a1aeda28969 Mon Sep 17 00:00:00 2001 From: gaojie Date: Thu, 6 Jun 2019 17:22:03 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A5=BD=E5=8F=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- protos/CommonProto.proto | 12 ++++++++++++ protos/MessageTypeProto.proto | 7 +++++++ protos/PlayerInfoProto.proto | 11 +++++++++++ 3 files changed, 30 insertions(+) diff --git a/protos/CommonProto.proto b/protos/CommonProto.proto index da91da3..2b9f225 100644 --- a/protos/CommonProto.proto +++ b/protos/CommonProto.proto @@ -359,3 +359,15 @@ option optimize_for = SPEED; optional int32 hadTakeDailyBox = 4 ;//是否领取每日礼包 1:已领取vip等级 -1:未领取 } + message Friend { + optional int32 id = 1;//好友的id + optional string name=2;//名字 + optional int32 lv=3;//等级 + optional uint64 offLineTime=4;//离线时间 0表示在线 + optional int32 haveReward=5;// 是否有体力可以领取 + optional int32 haveFriendPoint = 6; // 是否有回礼 + optional string head = 12; // 新头像 + optional string frame = 13; // 头像框 + optional int32 soulVal = 14; // 战斗力 + } + diff --git a/protos/MessageTypeProto.proto b/protos/MessageTypeProto.proto index 1a6f35a..1c44bd3 100644 --- a/protos/MessageTypeProto.proto +++ b/protos/MessageTypeProto.proto @@ -61,6 +61,9 @@ enum MessageType{ ADVENTURE_BOSS_FIND_INDICATION = 10044; //挂机boss分享到世界推送消息 + ADD_FRIEND_REQUEST = 10045; //添加好友信息 + ADD_FRIEND_RESPONSE = 10046; + // B 10100 BUY_STORE_ITEM_REQUEST = 10100; // 购买商店物品 BUY_STORE_ITEM_RESPONSE = 10101; @@ -141,6 +144,10 @@ enum MessageType{ GET_CHAT_MESSAGE_REQUEST = 16636; // 获取聊天信息 GET_CHAT_MESSAGE_REPONSE = 16637; + + GET_FRIEND_INFO_REQUEST = 16638; // 获取好友信息 + GET_FRIEND_INFO_REPONSE = 16639; + // H 10700 HERO_RAND_REQQUEST = 10701; HERO_RAND_RESPONSE = 10702; diff --git a/protos/PlayerInfoProto.proto b/protos/PlayerInfoProto.proto index 7c1c68a..a46b307 100644 --- a/protos/PlayerInfoProto.proto +++ b/protos/PlayerInfoProto.proto @@ -238,6 +238,17 @@ import "CommonProto.proto"; repeated UserMissionInfo UserMissionInfo =1;//每日任务详情 } + message GetFriendInfoRequest{ + optional int32 type = 1; //1:好友列表, 2:推荐列表 3:申请列表 + } + + message GetFriendInfoResponse{ + repeated Friend Friends =1; //好友信息 + } + + + +