| 123456789101112131415161718192021222324252627282930313233343536373839404142434445 |
- syntax = "proto3";
- package protos.modules;
- option go_package = ".;protos";
- /// 一封邮件
- message Mail {
- int64 id = 1;
- string subject = 2;
- string body = 3;
- int64 ts = 4;
- string sender = 5;
- repeated string itemIds = 6; // 可领取的道具列表,空表示没有
- string btnText = 7; // 按钮上的文字,如果空,表示没有按钮
- int64 expiresAt = 9; // 过期时间,0 永不过期
- int32 read = 10; // 是否已读
- int32 valid = 12; // 是否有效
- }
- message C_UserMails {
- }
- message S_UserMails {
- repeated Mail mails = 1;
- }
- // 标记已读
- message C_ReadMails {
- repeated int64 ids = 1;
- }
- message S_ReadMails {
- repeated int64 ids = 1;
- }
- // 点击邮箱中按钮领取物品
- // 此时,背包中需要有空槽,否则领取失败
- message C_RetrieveMails {
- repeated int64 ids = 1;
- }
- message S_RetrieveMails {
- repeated int64 ids = 1;
- }
|