syntax = "proto3";
option go_package = ".;pb";
import "mail_db.proto";

message MailGetListReq {

}

// 查询邮件信息
message MailGetListResp {
   repeated DBMailData Mails = 1;
}

// 查看邮件
message MailReadMailReq {
   string ObjID = 1;
}

message MailReadMailResp {
   DBMailData Mail = 1;
}

// 领取附件
message MailGetUserMailAttachmentReq {
   string ObjID = 1;
}

message MailGetUserMailAttachmentResp {
   DBMailData Mail = 1;
}

// 删除某个邮件
message MailDelMailReq {
   string ObjID = 1;
}

message MailDelMailResp {
   repeated DBMailData Mail = 1;
}

// 推送邮件
message MailGetNewMailPush{
   DBMailData Mail = 1; // 推送新的邮件信息
}