client2world_notice.proto 823 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  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_req_notice
  7. {
  8. optional e_server_msg_type packet_id = 1 [default = e_mst_c2w_req_notice];
  9. optional int32 lastTime = 2;
  10. }
  11. message NoticeInfo
  12. {
  13. // 生成时间
  14. optional int32 genTime = 1;
  15. // 结束时间
  16. optional int32 deadTime = 2;
  17. optional int32 type = 3;
  18. // 标题
  19. optional string title = 4;
  20. // 内容
  21. optional string content = 5;
  22. // 排序,降序排列
  23. optional int32 order = 6;
  24. }
  25. // 请求公告结果
  26. message packetw2c_req_notice_result
  27. {
  28. optional e_server_msg_type packet_id = 1 [default = e_mst_w2c_req_notice_result];
  29. repeated NoticeInfo infoList = 2;
  30. // 返回最后一个公告的时间
  31. optional int32 lastTime = 3;
  32. }