client2world_mail.proto 4.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220
  1. import "client2world_msg_type.proto";
  2. import "msg_type_def.proto";
  3. import "msg_info_def.proto";
  4. package client2world_protocols;
  5. // 获取玩家邮件列表请求
  6. message packetc2w_get_mails
  7. {
  8. optional e_server_msg_type packet_id = 1 [default = e_mst_c2w_get_mails];
  9. // 最后一封邮件的时间(初始请求时传0)
  10. optional int32 lastTime = 2;
  11. }
  12. message mail_info
  13. {
  14. // 邮件ID
  15. optional string mailId = 1;
  16. // 发送时间
  17. optional int32 time = 2;
  18. // 标题
  19. optional string title = 3;
  20. // 发送者
  21. optional string sender = 4;
  22. // 内容
  23. optional string content = 5;
  24. // 是否已领取道具(同样表示是否已读)
  25. optional bool isRecvive = 6;
  26. // 道具列表
  27. repeated msg_info_def.msg_gift gifts = 7;
  28. // 发送者ID
  29. optional int32 senderId = 8;
  30. };
  31. // 获取玩家邮件列表回应
  32. message packetw2c_get_mails_result
  33. {
  34. optional e_server_msg_type packet_id = 1 [default = e_mst_w2c_get_mails_result];
  35. // 返回最后一封邮件的时间
  36. optional int32 lastTime = 2;
  37. repeated mail_info mails = 3;
  38. }
  39. // 领取邮件中的礼物请求
  40. message packetc2w_recv_mail_gifts
  41. {
  42. optional e_server_msg_type packet_id = 1 [default = e_mst_c2w_recv_mail_gifts];
  43. // 邮件ID
  44. optional string mailId = 2;
  45. }
  46. // 领取邮件中的礼物回应
  47. message packetw2c_recv_mail_gifts_result
  48. {
  49. optional e_server_msg_type packet_id = 1 [default = e_mst_w2c_recv_mail_gifts_result];
  50. // 邮件ID
  51. optional string mailId = 2;
  52. // 领取结果
  53. optional int32 result = 3;
  54. }
  55. // 发送邮件
  56. // message packetc2w_send_mail
  57. // {
  58. // optional e_server_msg_type packet_id = 1 [default = e_mst_c2w_send_mail];
  59. // // 邮件标题
  60. // optional string title = 2;
  61. // // 内容
  62. // optional string content = 3;
  63. // // 发送给谁
  64. // optional int32 toPlayerId = 4;
  65. // // 礼物列表,列表空表示发送的是纯文本,不空表示要发送礼物
  66. // repeated msg_info_def.msg_gift gifts = 5;
  67. // }
  68. // // 发送邮件结果
  69. // message packetw2c_send_mail_result
  70. // {
  71. // optional e_server_msg_type packet_id = 1 [default = e_mst_w2c_send_mail_result];
  72. // // 结果
  73. // optional int32 result = 2;
  74. // // 礼物列表,列表空表示发送的是纯文本,不空表示要发送礼物
  75. // //repeated msg_info_def.msg_gift gifts = 3;
  76. // // 邮件类型 0不带礼物, 1带礼物
  77. // optional int32 mailType = 4;
  78. // // 结果成功的情况下,本邮件ID
  79. // optional string mailId = 5;
  80. // }
  81. // 删除某个邮件
  82. message packetc2w_remove_mail
  83. {
  84. optional e_server_msg_type packet_id = 1 [default = e_mst_c2w_remove_mail];
  85. // 邮件ID
  86. optional string mailId = 2;
  87. }
  88. // 删除某个邮件结果
  89. message packetw2c_remove_mail_result
  90. {
  91. optional e_server_msg_type packet_id = 1 [default = e_mst_w2c_remove_mail_result];
  92. // 邮件ID
  93. optional string mailId = 2;
  94. // 结果
  95. optional int32 result = 3;
  96. }
  97. // 收到礼物通知
  98. message packetw2c_accept_gift_notify
  99. {
  100. optional e_server_msg_type packet_id = 1 [default = e_mst_w2c_accept_gift_notify];
  101. }
  102. // 请求发送邮件日志
  103. message packetc2w_req_send_mail_log
  104. {
  105. optional e_server_msg_type packet_id = 1 [default = e_mst_c2w_req_send_mail_log];
  106. // 上次请求时间,初始为0
  107. optional int32 lastTime = 2;
  108. }
  109. message SendMailLogInfo
  110. {
  111. // 赠送时间
  112. optional int32 sendTime = 1;
  113. // 好友的ID
  114. optional int32 firendId = 2;
  115. // 内容
  116. optional string content = 3;
  117. // 邮件ID
  118. optional string mailId = 4;
  119. // 邮件标题
  120. optional string title = 5;
  121. // 对方昵称
  122. optional string friendNickName = 6;
  123. }
  124. // 请求发送邮件日志结果
  125. message packetw2c_req_send_mail_log_result
  126. {
  127. optional e_server_msg_type packet_id = 1 [default = e_mst_w2c_req_send_mail_log_result];
  128. // 日志列表
  129. repeated SendMailLogInfo logList = 2;
  130. // 新的时间
  131. optional int32 lastTime = 3;
  132. }
  133. // 删除某个邮件日志
  134. message packetc2w_remove_mail_log
  135. {
  136. optional e_server_msg_type packet_id = 1 [default = e_mst_c2w_remove_mail_log];
  137. // 邮件ID
  138. optional string mailId = 2;
  139. }
  140. // 删除某个邮件日志结果
  141. message packetw2c_remove_mail_log_result
  142. {
  143. optional e_server_msg_type packet_id = 1 [default = e_mst_w2c_remove_mail_log_result];
  144. // 邮件ID
  145. optional string mailId = 2;
  146. // 结果
  147. optional int32 result = 3;
  148. }
  149. // 赠送龙珠
  150. // message packetc2w_send_dragonball
  151. // {
  152. // optional e_server_msg_type packet_id = 1 [default = e_mst_c2w_send_dragonball];
  153. // // 发送给谁
  154. // optional int32 toPlayerId = 2;
  155. // // 赠送数量
  156. // optional int32 sendCount = 3;
  157. // }
  158. // // 赠送龙珠结果
  159. // message packetw2c_send_dragonball_result
  160. // {
  161. // optional e_server_msg_type packet_id = 1 [default = e_mst_w2c_send_dragonball_result];
  162. // // 结果
  163. // optional int32 result = 2;
  164. // // 赠送数量
  165. // optional int32 sendCount = 3;
  166. // // 邮件ID
  167. // optional string mailId = 4;
  168. // }