syntax = "proto3";
option go_package = ".;pb";
import "mail_db.proto";
import "comm.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 {
   string ObjID = 1; // 返回删除邮件id
}

// 推送邮件
message MailGetNewMailPush{
   DBMailData Mail = 1; // 推送新的邮件信息
}
// 领取所有附件
message MailGetAllMailAttachmentReq {

}

message MailGetAllMailAttachmentResp {
   repeated UserAssets res = 1; //资源类型
   repeated string ids = 2; // 已经领取的邮件唯一id
}
message MailDelAllMailReq {

}

message MailDelAllMailResp {
   repeated DBMailData Mails = 1;
}
