56 lines
1.0 KiB
Protocol Buffer
56 lines
1.0 KiB
Protocol Buffer
package com.ljsd.jieling.protocols;
|
|
|
|
option optimize_for = SPEED;
|
|
|
|
import "CommonProto.proto";
|
|
|
|
// request 编号需要小于 response 编号
|
|
|
|
message ErrorMsgResponse{
|
|
optional string msg = 1;
|
|
}
|
|
|
|
message LoginRequest{
|
|
optional int32 num = 1;
|
|
optional string openId = 2;
|
|
optional string str = 3;
|
|
}
|
|
|
|
message LoginResponse{
|
|
optional int32 resultCode = 1;
|
|
optional string newToken = 2;
|
|
}
|
|
|
|
|
|
message GetPlayerInfoRequest{
|
|
optional int32 num = 1;
|
|
optional string str = 2;
|
|
}
|
|
|
|
message GetPlayerInfoResponse{
|
|
optional Player player = 1;
|
|
}
|
|
|
|
|
|
message GetItemInfoRequest{
|
|
optional int32 index = 1; //第一次请求索引为0, 第二次:第一次索引+每页的数量
|
|
}
|
|
|
|
message GetItemInfoResponse{
|
|
repeated Item itemlist = 1;
|
|
optional bool isSendFinish =2; //是否发送完成
|
|
}
|
|
|
|
message GetAllMailInfoResponse{
|
|
repeated Mail mialList = 1;
|
|
}
|
|
|
|
message MailReadRequest{
|
|
optional string mailId = 1;
|
|
}
|
|
message TakeMailRequest{
|
|
repeated string mailIds = 1;
|
|
}
|
|
message TakeMailResponse{
|
|
optional Drop drop = 1;
|
|
} |