master_huanxiang
gaojie 2019-01-23 18:40:59 +08:00
parent 9bba84907c
commit d52808f490
3 changed files with 19 additions and 4 deletions

View File

@ -73,8 +73,16 @@ option optimize_for = SPEED;
message Mail{
optional int32 mailId = 1;
optional int32 itemId = 2;
optional string mailId = 1;
optional int32 state = 2; //0:未读 1:已读取 2: 未领取 3 已领取
optional string head = 3;
optional string content = 4;
optional string mailItem = 5; //附件
optional int32 sendTime = 6;
optional int32 effectiveTime = 7; // 秒 0:永久有效
optional string sendName = 8 ; //发送者名字
optional int32 mailType = 9; //邮件类型 1:系统邮件 2:idip 业务邮件
}

View File

@ -39,6 +39,9 @@ enum MessageType{
GM_REQUEST = 10606; //GM
GM_RESPONSE = 10607; //GM
GET_ALL_MAIL_INFO_REQUEST = 10608; // 获取用户所有邮件
GET_ALL_MAIL_INFO_RESPONSE = 10609;
// H 10700
HERO_RAND_REQQUEST = 10701;

View File

@ -33,10 +33,14 @@ import "CommonProto.proto";
message GetItemInfoRequest{
optional int32 index = 1; //第一次请求1 第二次:1+一页的总数量
optional int32 index = 1; //第一次请求索引为0, 第二次:第一次索引+每页的数量
}
message GetItemInfoResponse{
repeated Item itemlist = 1;
optional bool isSendFinish =2; //是否发送完成
}
}
message GetAllMailInfoResponse{
repeated Mail mialList = 1;
}