client2world_friend.proto 3.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168
  1. import "client2world_msg_type.proto";
  2. import "msg_type_def.proto";
  3. import "msg_info_def.proto";
  4. package client2world_protocols;
  5. message FriendInfo
  6. {
  7. // 好友ID
  8. optional int32 friendId = 1;
  9. // 性别
  10. optional int32 sex = 2;
  11. // 是否在线
  12. optional bool online = 3;
  13. // VIP等级
  14. optional int32 vipLevel = 4;
  15. // 好友昵称
  16. optional string nickName = 5;
  17. // 头像ID
  18. optional int32 iconCustom = 6;
  19. // 相框ID
  20. optional int32 photoFrameId = 7;
  21. // 个性签名
  22. optional string selfSignature = 8;
  23. // 收到的礼物
  24. repeated msg_info_def.msg_gift giftList = 9;
  25. // 今日赠送的金币数量
  26. optional int32 giftCoinCount = 10;
  27. // 金币
  28. optional int32 gold = 11;
  29. // 经典捕鱼等级
  30. optional int32 fishLevel = 12;
  31. }
  32. // // 添加好友
  33. // message packetc2w_add_friend
  34. // {
  35. // optional e_server_msg_type packet_id = 1 [default = e_mst_c2w_add_friend];
  36. // // 好友ID
  37. // optional int32 friendId = 2;
  38. // }
  39. // // 添加好友结果
  40. // message packetw2c_add_friend_result
  41. // {
  42. // optional e_server_msg_type packet_id = 1 [default = e_mst_w2c_add_friend_result];
  43. // // 结果
  44. // optional int32 result = 2;
  45. // optional FriendInfo info = 3;
  46. // }
  47. // // 移除好友
  48. // message packetc2w_remove_friend
  49. // {
  50. // optional e_server_msg_type packet_id = 1 [default = e_mst_c2w_remove_friend];
  51. // // 好友ID
  52. // optional int32 friendId = 2;
  53. // }
  54. // // 移除好友结果
  55. // message packetw2c_remove_friend_result
  56. // {
  57. // optional e_server_msg_type packet_id = 1 [default = e_mst_w2c_remove_friend_result];
  58. // // 好友ID
  59. // optional int32 friendId = 2;
  60. // // 结果
  61. // optional int32 result = 3;
  62. // }
  63. // 请求好友列表
  64. message packetc2w_req_friend_list
  65. {
  66. optional e_server_msg_type packet_id = 1 [default = e_mst_c2w_req_friend_list];
  67. }
  68. // 请求好友列表结果
  69. message packetw2c_req_friend_list_result
  70. {
  71. optional e_server_msg_type packet_id = 1 [default = e_mst_w2c_req_friend_list_result];
  72. // 好友列表
  73. repeated FriendInfo friendList = 2;
  74. }
  75. // // 搜索好友
  76. // message packetc2w_search_friend
  77. // {
  78. // optional e_server_msg_type packet_id = 1 [default = e_mst_c2w_search_friend];
  79. // // 玩家ID
  80. // optional int32 playerId = 2;
  81. // }
  82. // // 搜索好友结果
  83. // message packetw2c_search_friend_result
  84. // {
  85. // optional e_server_msg_type packet_id = 1 [default = e_mst_w2c_search_friend_result];
  86. // optional FriendInfo info = 2;
  87. // // 结果
  88. // optional int32 result = 3;
  89. // }
  90. // // 进入好友房间
  91. // message packetc2w_enter_friend_room
  92. // {
  93. // optional e_server_msg_type packet_id = 1 [default = e_mst_c2w_enter_friend_room];
  94. // // 好友ID
  95. // optional int32 friendId = 2;
  96. // }
  97. // // 进入好友房间结果
  98. // message packetw2c_enter_friend_room_result
  99. // {
  100. // optional e_server_msg_type packet_id = 1 [default = e_mst_w2c_enter_friend_room_result];
  101. // // 结果
  102. // optional int32 result = 2;
  103. // // 游戏ID
  104. // optional int32 gameId = 3;
  105. // optional int32 roomId = 4;
  106. // }
  107. // // 获取好友所在游戏id
  108. // message packetc2w_get_friend_gameid
  109. // {
  110. // optional e_server_msg_type packet_id = 1 [default = e_mst_c2w_get_friend_gameid];
  111. // // 好友ID
  112. // optional int32 friendId = 2;
  113. // }
  114. // // 获取好友所在游戏id
  115. // message packetw2c_get_friend_gameid_result
  116. // {
  117. // optional e_server_msg_type packet_id = 1 [default = e_mst_w2c_get_friend_gameid_result];
  118. // // 结果
  119. // optional int32 result = 2;
  120. // // 游戏ID
  121. // optional int32 gameId = 3;
  122. // optional int32 friendId = 4;
  123. // }