21 lines
619 B
Protocol Buffer
21 lines
619 B
Protocol Buffer
syntax = "proto3";
|
|
option go_package = ".;pb";
|
|
|
|
message MailAttachment { // 附件
|
|
uint32 Itemid = 1; // 道具iD
|
|
uint32 ItemCount = 2; // 数量
|
|
}
|
|
|
|
message MailData {
|
|
string Title = 1; // 邮件标题
|
|
string Contex = 2; // 邮件内容
|
|
uint64 CreateTime = 3; // 发送时间
|
|
uint64 DueTime = 4; // 过期时间
|
|
bool Check = 5; // 是否查看
|
|
repeated MailAttachment Items = 6; // 附件
|
|
}
|
|
|
|
message DB_UserMailData {
|
|
string UserId = 1; //tags:{bson:"_id"}用户Id
|
|
repeated MailData mails = 2; // 邮件列表
|
|
} |