88 lines
1.8 KiB
Protocol Buffer
88 lines
1.8 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 UseAndPriceItemRequest{
|
|
optional int32 type = 1; //0:使用 1:出售
|
|
optional Item item = 2;
|
|
}
|
|
message UseAndPriceItemResponse{
|
|
optional Drop drop = 1;
|
|
}
|
|
|
|
message MailReadRequest{
|
|
optional string mailId = 1;
|
|
}
|
|
message TakeMailRequest{
|
|
repeated string mailIds = 1;
|
|
}
|
|
message TakeMailResponse{
|
|
optional Drop drop = 1;
|
|
}
|
|
|
|
|
|
message WorkShopFoundationRequest{
|
|
optional int32 materialId = 1; // 要打造的材料模板id
|
|
optional int32 nums =2; //数量
|
|
}
|
|
|
|
message WorkShopFoundationResponse{
|
|
optional int32 workExp =1;
|
|
optional int32 workLevel =2;
|
|
}
|
|
|
|
message WorkShopEquipCreateRequest{
|
|
optional int32 equipTid = 1; // 要打造的装备模板id
|
|
repeated int32 runneIds = 2; // 符文ids 不需要传送特殊符文。
|
|
}
|
|
|
|
message WorkShopRebuildRequest{
|
|
optional string equipId = 1; // 要重造装备动态id
|
|
repeated string consumeEquipIds =2; //祭品动态id
|
|
}
|
|
|
|
|