// message结构的属性名请使用 驼峰小写字母开始 syntax = "proto3"; option go_package = "/pb"; package pb; import "base_type.proto"; // 邮件 message Mail { // 邮件id int64 mailID = 1; // 发送玩家id(0为系统) int64 fromPlayerID = 2; // 发送玩家名 string fromPlayerName = 3; // 系统邮件信息 SystemMail systemMail = 4; // 同盟邮件信息 LeagueMail leagueMail = 5; // 是否阅读 bool isRead = 6; // 发送时间 int64 sendTime = 7; } // 系统邮件 message SystemMail { // 邮件模板id int32 templateID = 1; // 邮件模板参数 repeated string templateParams = 2; // 过期时间 int64 expireTime = 3; // 是否领奖励 bool isReward = 4; // 附件列表 repeated Asset rewards = 5; } // 联盟邮件 message LeagueMail { // 邮件标题 string title = 1; // 邮件内容 string content = 2; // 发送人职位ID 暂时不使用 int32 job = 3; } message MailTypeList { // 邮件列表 repeated MailList list = 2; } // 邮件列表 message MailList { // 邮件类型 0系统 1法令 2同盟 3指挥 int32 mailType = 1; // 置顶法令邮件ID 0为没有置顶 int64 topMailID = 2; // 邮件列表 repeated Mail list = 3; } // 领取邮件奖励 message TakeMailReward { // 领取邮件id列表 repeated int64 mailIDs = 2; // 领取奖励 repeated Asset list = 3; } // 删除邮件列表 message MailDelList { // 删除邮件类型 0系统 1法令 2同盟 3指挥 int32 mailType = 1; // 删除邮件唯一ID列表 repeated int64 mailIDs = 2; } // 发送/更新联盟邮件 message LeagueMailSend { // 邮件唯一ID 如果是更新邮件则需要,新增邮件不需要 int64 mailID = 1; // 联盟邮件类型 1法令 2同盟 3指挥 int32 mailType = 2; // 联盟邮件标题 string title = 3; // 联盟邮件内容 string content = 4; // 是否置顶 bool isTop = 5; }