199 lines
4.5 KiB
Protocol Buffer
199 lines
4.5 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;
|
||
repeated NewPlayerGuidePoint newPlayerGuidePoint =2;
|
||
}
|
||
|
||
|
||
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:分解物品 2:分解装备
|
||
optional int32 itemId = 2;
|
||
repeated Item items = 3;
|
||
repeated string equipIds = 4;
|
||
}
|
||
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 WorkShopEquipCreateRequest{
|
||
optional int32 equipTid = 1; // 要打造的装备模板id
|
||
repeated int32 runneIds = 2; // 符文ids 不需要传送特殊符文。
|
||
}
|
||
|
||
message WorkShopEquipCreateResponse{
|
||
optional int32 type =1 ; // 1:工坊 2:百味居
|
||
optional Drop drop =2;
|
||
}
|
||
|
||
message WorkShopRebuildRequest{
|
||
optional string equipId = 1; // 要重造装备动态id
|
||
repeated string consumeEquipIds =2; //祭品动态id
|
||
}
|
||
|
||
message WorkShopRebuildRespoonse{
|
||
optional Equip equip = 1;
|
||
}
|
||
|
||
message ActiviteWorkShopReqeust{
|
||
optional int32 type =1; //功能类型:1: 基础锻造 2:制作装备 或 制作美食
|
||
optional int32 activiteId =2; //要激活的功能id
|
||
}
|
||
|
||
message GetWorkShopInfoResponse{
|
||
repeated WorkShopUnLockInfo workShopUnLockInfo =1; //作坊解锁信息
|
||
repeated WorkShopBaseInfo workShopBaseInfo =2; //作坊基本信息
|
||
optional Equip unDetermined =3; //待确认重铸装备
|
||
}
|
||
|
||
message CookFoodRequest{
|
||
repeated int32 materialId =1 ;// 所选食材id
|
||
optional int32 nums =2; //次数
|
||
}
|
||
|
||
message CookFoodResponse{
|
||
optional WorkShopBaseInfo workShopBaseInfo =1;
|
||
optional Drop drop =2;
|
||
}
|
||
|
||
message RedPointInfo{
|
||
optional int32 type =1 ;//红点类型 1: 邮件红点
|
||
}
|
||
|
||
message SaveNewPlayerPointRequest{
|
||
optional NewPlayerGuidePoint newPlayerGuidePoint =1;
|
||
}
|
||
|
||
message TakeActivityRewardRequest{
|
||
optional int32 missionId = 1; //活动id
|
||
}
|
||
|
||
message TakeActivityRewardResponse{
|
||
optional Drop drop = 1;
|
||
}
|
||
|
||
message GetAllActivityResponse{
|
||
repeated ActivityInfo activityInfo =1;
|
||
}
|
||
|
||
message RandomNameResponse{
|
||
optional string randomName =1;
|
||
}
|
||
|
||
message ReNameRequest{
|
||
optional int32 type = 1 ; // 1:玩家起名 2: 阵容起名
|
||
optional string name = 2;
|
||
optional int32 teamPosId = 3; // 队伍id
|
||
}
|
||
|
||
message WorkShopRebuildConfirmRequest{
|
||
optional int32 state = 1; // 1:确认使用 0:取消
|
||
}
|
||
|
||
message SecretBoxFreeUseInfo{
|
||
optional int32 id =1;
|
||
optional int32 times=3; //免费已使用次数
|
||
}
|
||
|
||
message GetSecretBoxInfoResponse{
|
||
optional int32 season =1;//当前周期id
|
||
optional int32 count =2; //总抽取次数
|
||
repeated SecretBoxFreeUseInfo secretBoxFreeUseInfo =3; // 免费已使用信息
|
||
}
|
||
|
||
message SecretBoxRandomRequest{
|
||
optional int32 typeId = 1;
|
||
}
|
||
|
||
message SecretBoxRandomResponse{
|
||
optional Drop drop = 1; //抽取到的物品
|
||
optional Drop extrarReward =2; //额外奖励
|
||
}
|
||
|
||
message GetStoreInfosResponse{
|
||
repeated StoreInfo StoreInfo = 1; //商店信息
|
||
|
||
}
|
||
|
||
message BuyStoreItemRequest{
|
||
optional int32 storeId =1;//商店id
|
||
optional int32 itemId =2; //物品id
|
||
optional int32 itemNum =3; //物品数量
|
||
}
|
||
|
||
message BuyStoreItemResponse{
|
||
optional Drop drop = 1; //抽取到的物品
|
||
}
|
||
|
||
message StoreGoodsRefreshRequest{
|
||
optional int32 type =1; //0:手动刷新 1: 自动刷新
|
||
optional int32 storeId = 2; //商店id
|
||
}
|
||
|
||
message StoreGoodsRefreshResponse{
|
||
optional StoreInfo StoreInfo = 1; //商店信息
|
||
}
|
||
|
||
|
||
message GetFunctionOfTimeResponse{
|
||
repeated functionOfTime functionOfTime =1 ;
|
||
}
|
||
|
||
|