25 lines
669 B
Protocol Buffer
25 lines
669 B
Protocol Buffer
syntax = "proto3";
|
|
option go_package = ".;pb";
|
|
|
|
// message Cache_mailData {
|
|
// string UserID = 1;
|
|
// repeated DB_MailData MailData = 2;
|
|
// }
|
|
|
|
message MailAttachment { // 附件
|
|
uint32 ItemId = 1; // 道具iD
|
|
uint32 ItemCount = 2; // 数量
|
|
}
|
|
|
|
message DB_MailData {
|
|
string ObjId = 1; // tags:{bson:"_id"}
|
|
string UserId = 2;
|
|
string Title = 3; // 邮件标题
|
|
string Contex = 4; // 邮件内容
|
|
uint64 CreateTime = 5; // 发送时间
|
|
uint64 DueTime = 6; // 过期时间
|
|
bool Check = 7; // 是否查看
|
|
bool Reward = 8; // 附件领取状态
|
|
repeated MailAttachment Items = 9; // 附件
|
|
}
|