mail.proto 1.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. syntax = "proto3";
  2. package protos.modules;
  3. /// 一封邮件
  4. message Mail {
  5. int64 id = 1;
  6. string subject = 2;
  7. string body = 3;
  8. int64 ts = 4;
  9. string sender = 5;
  10. repeated string itemIds = 6; // 可领取的道具列表,空表示没有
  11. string btnText = 7; // 按钮上的文字,如果空,表示没有按钮
  12. int64 expiresAt = 9; // 过期时间,0 永不过期
  13. int32 read = 10; // 是否已读
  14. int32 valid = 12; // 是否有效
  15. }
  16. message C_UserMails {
  17. }
  18. message S_UserMails {
  19. repeated Mail mails = 1;
  20. }
  21. // 标记已读
  22. message C_ReadMails {
  23. repeated int64 ids = 1;
  24. }
  25. message S_ReadMails {
  26. repeated int64 ids = 1;
  27. }
  28. // 点击邮箱中按钮领取物品
  29. // 此时,背包中需要有空槽,否则领取失败
  30. message C_RetrieveMails {
  31. repeated int64 ids = 1;
  32. }
  33. message S_RetrieveMails {
  34. repeated int64 ids = 1;
  35. }