12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455 |
- syntax = "proto3";
- option go_package = "./common";
- package common;
- message MailBody {
- string plainText = 1;
- string richText = 2;
- repeated AttachmentHeader attachments = 3;
- }
- message MailHeader {
- string from = 1;
- string to = 2;
- string cc = 3;
- string bcc = 4;
- sint64 date = 5;
- string subject = 6;
- }
- message Mail {
- MailHeader header = 1;
- MailBody body = 2;
- }
- message Attachment {
- AttachmentHeader header = 1;
- bytes data = 2;
- }
- message AttachmentHeader {
- string id = 1;
- string fileName = 2;
- string contentType = 3;
- }
- message UserInfo {
- string user = 1;
- string fullName = 2;
- }
- message Frame {
- sint32 skip = 1;
- sint32 limit = 2;
- }
- message Folder {
- string name = 1;
- bool custom = 2;
- }
- message FolderStat {
- string folder = 1;
- uint32 total = 2;
- uint32 unread = 3;
- }
|