2018-12-27 17:56:49 +08:00
|
|
|
|
package com.ljsd.jieling.protocols;
|
|
|
|
|
|
|
|
|
|
option optimize_for = SPEED;
|
|
|
|
|
|
2019-01-04 15:08:41 +08:00
|
|
|
|
import "CommonProto.proto";
|
|
|
|
|
|
2018-12-27 17:56:49 +08:00
|
|
|
|
// request 编号需要小于 response 编号
|
|
|
|
|
|
2019-01-21 17:51:08 +08:00
|
|
|
|
message ErrorMsgResponse{
|
|
|
|
|
optional string msg = 1;
|
|
|
|
|
}
|
|
|
|
|
|
2019-01-04 15:08:41 +08:00
|
|
|
|
message LoginRequest{
|
|
|
|
|
optional int32 num = 1;
|
2019-01-17 14:37:08 +08:00
|
|
|
|
optional string openId = 2;
|
|
|
|
|
optional string str = 3;
|
2019-01-04 15:08:41 +08:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
message LoginResponse{
|
|
|
|
|
optional int32 resultCode = 1;
|
2019-01-17 20:46:03 +08:00
|
|
|
|
optional string newToken = 2;
|
2019-01-04 15:08:41 +08:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
2018-12-27 17:56:49 +08:00
|
|
|
|
message GetPlayerInfoRequest{
|
|
|
|
|
optional int32 num = 1;
|
|
|
|
|
optional string str = 2;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
message GetPlayerInfoResponse{
|
2019-01-17 19:09:23 +08:00
|
|
|
|
optional Player player = 1;
|
2019-04-09 14:12:30 +08:00
|
|
|
|
repeated NewPlayerGuidePoint newPlayerGuidePoint =2;
|
2019-05-24 07:34:22 +08:00
|
|
|
|
repeated Privilege privilege =3;
|
2019-06-06 10:15:01 +08:00
|
|
|
|
repeated GiftGoodsInfo giftGoodsInfo =4;
|
2019-06-21 17:10:02 +08:00
|
|
|
|
repeated int32 buyGoodsId = 5;
|
|
|
|
|
optional SuddenlyBossInfo SuddenlyBossInfo = 6;//精英怪信息
|
|
|
|
|
optional VipBaseInfo vipBaseInfo = 7;
|
2018-12-27 17:56:49 +08:00
|
|
|
|
}
|
2019-01-16 16:45:23 +08:00
|
|
|
|
|
2018-12-27 17:56:49 +08:00
|
|
|
|
|
2019-01-04 15:08:41 +08:00
|
|
|
|
message GetItemInfoRequest{
|
2019-01-23 18:40:59 +08:00
|
|
|
|
optional int32 index = 1; //第一次请求索引为0, 第二次:第一次索引+每页的数量
|
2019-01-04 15:08:41 +08:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
message GetItemInfoResponse{
|
2019-01-23 10:26:05 +08:00
|
|
|
|
repeated Item itemlist = 1;
|
|
|
|
|
optional bool isSendFinish =2; //是否发送完成
|
2019-01-23 18:40:59 +08:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
message GetAllMailInfoResponse{
|
|
|
|
|
repeated Mail mialList = 1;
|
2019-01-24 17:20:45 +08:00
|
|
|
|
}
|
|
|
|
|
|
2019-01-28 17:51:14 +08:00
|
|
|
|
message UseAndPriceItemRequest{
|
2019-05-16 20:21:57 +08:00
|
|
|
|
optional int32 type = 1; //0:使用 1:分解物品 2:分解装备3:分解妖灵师
|
2019-04-19 18:20:47 +08:00
|
|
|
|
optional int32 itemId = 2;
|
|
|
|
|
repeated Item items = 3;
|
|
|
|
|
repeated string equipIds = 4;
|
2019-05-16 20:21:57 +08:00
|
|
|
|
repeated string heroIds = 5;
|
2019-01-28 17:51:14 +08:00
|
|
|
|
}
|
|
|
|
|
message UseAndPriceItemResponse{
|
|
|
|
|
optional Drop drop = 1;
|
|
|
|
|
}
|
|
|
|
|
|
2019-01-24 17:20:45 +08:00
|
|
|
|
message MailReadRequest{
|
|
|
|
|
optional string mailId = 1;
|
|
|
|
|
}
|
|
|
|
|
message TakeMailRequest{
|
|
|
|
|
repeated string mailIds = 1;
|
|
|
|
|
}
|
|
|
|
|
message TakeMailResponse{
|
|
|
|
|
optional Drop drop = 1;
|
2019-02-14 17:53:16 +08:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
message WorkShopFoundationRequest{
|
|
|
|
|
optional int32 materialId = 1; // 要打造的材料模板id
|
|
|
|
|
optional int32 nums =2; //数量
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
message WorkShopEquipCreateRequest{
|
2019-02-25 17:33:36 +08:00
|
|
|
|
optional int32 equipTid = 1; // 要打造的装备模板id
|
|
|
|
|
repeated int32 runneIds = 2; // 符文ids 不需要传送特殊符文。
|
2019-05-28 14:42:24 +08:00
|
|
|
|
optional int32 nums = 3 ;// 锻造装备数量
|
2019-02-25 11:43:10 +08:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
message WorkShopEquipCreateResponse{
|
|
|
|
|
optional int32 type =1 ; // 1:工坊 2:百味居
|
2019-05-28 15:22:59 +08:00
|
|
|
|
optional Drop drop =2;
|
2019-02-14 17:53:16 +08:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
message WorkShopRebuildRequest{
|
|
|
|
|
optional string equipId = 1; // 要重造装备动态id
|
|
|
|
|
repeated string consumeEquipIds =2; //祭品动态id
|
|
|
|
|
}
|
2019-02-25 11:43:10 +08:00
|
|
|
|
|
2019-02-25 17:33:36 +08:00
|
|
|
|
message WorkShopRebuildRespoonse{
|
|
|
|
|
optional Equip equip = 1;
|
|
|
|
|
}
|
|
|
|
|
|
2019-06-19 11:29:18 +08:00
|
|
|
|
message WorkTechnologyLevelRequest{
|
2019-06-19 14:49:31 +08:00
|
|
|
|
optional int32 id = 1;//
|
2019-06-19 11:29:18 +08:00
|
|
|
|
}
|
|
|
|
|
|
2019-06-19 17:17:12 +08:00
|
|
|
|
message WorkTechnologyResetRequest{
|
|
|
|
|
optional int32 professionId = 1;// 重置科技树职业id
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
message WorkTechnologyResetResponse{
|
|
|
|
|
optional Drop drop = 1;// 返还道具
|
|
|
|
|
}
|
|
|
|
|
|
2019-02-25 11:43:10 +08:00
|
|
|
|
message ActiviteWorkShopReqeust{
|
|
|
|
|
optional int32 type =1; //功能类型:1: 基础锻造 2:制作装备 或 制作美食
|
|
|
|
|
optional int32 activiteId =2; //要激活的功能id
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
message GetWorkShopInfoResponse{
|
2019-02-25 17:33:36 +08:00
|
|
|
|
repeated WorkShopUnLockInfo workShopUnLockInfo =1; //作坊解锁信息
|
|
|
|
|
repeated WorkShopBaseInfo workShopBaseInfo =2; //作坊基本信息
|
2019-05-07 11:05:58 +08:00
|
|
|
|
optional Equip unDetermined =3; //待确认重铸装备
|
2019-06-19 14:49:31 +08:00
|
|
|
|
repeated TechnologyInfo technologyInfo = 4 ; //科技树点
|
2019-02-25 11:43:10 +08:00
|
|
|
|
}
|
2019-02-25 20:46:35 +08:00
|
|
|
|
|
|
|
|
|
message CookFoodRequest{
|
|
|
|
|
repeated int32 materialId =1 ;// 所选食材id
|
|
|
|
|
optional int32 nums =2; //次数
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
message CookFoodResponse{
|
|
|
|
|
optional WorkShopBaseInfo workShopBaseInfo =1;
|
|
|
|
|
optional Drop drop =2;
|
|
|
|
|
}
|
2019-04-03 20:22:31 +08:00
|
|
|
|
|
|
|
|
|
message RedPointInfo{
|
|
|
|
|
optional int32 type =1 ;//红点类型 1: 邮件红点
|
|
|
|
|
}
|
2019-02-14 17:53:16 +08:00
|
|
|
|
|
2019-04-09 14:12:30 +08:00
|
|
|
|
message SaveNewPlayerPointRequest{
|
|
|
|
|
optional NewPlayerGuidePoint newPlayerGuidePoint =1;
|
|
|
|
|
}
|
2019-02-14 17:53:16 +08:00
|
|
|
|
|
2019-04-22 14:53:08 +08:00
|
|
|
|
message TakeActivityRewardRequest{
|
|
|
|
|
optional int32 missionId = 1; //活动id
|
2019-04-22 11:48:22 +08:00
|
|
|
|
}
|
|
|
|
|
|
2019-04-22 14:53:08 +08:00
|
|
|
|
message TakeActivityRewardResponse{
|
2019-04-22 11:48:22 +08:00
|
|
|
|
optional Drop drop = 1;
|
|
|
|
|
}
|
|
|
|
|
|
2019-04-22 14:53:08 +08:00
|
|
|
|
message GetAllActivityResponse{
|
2019-04-22 18:00:38 +08:00
|
|
|
|
repeated ActivityInfo activityInfo =1;
|
2019-04-22 14:53:08 +08:00
|
|
|
|
}
|
|
|
|
|
|
2019-04-25 14:52:06 +08:00
|
|
|
|
message RandomNameResponse{
|
|
|
|
|
optional string randomName =1;
|
|
|
|
|
}
|
2019-04-25 18:16:28 +08:00
|
|
|
|
|
|
|
|
|
message ReNameRequest{
|
|
|
|
|
optional int32 type = 1 ; // 1:玩家起名 2: 阵容起名
|
|
|
|
|
optional string name = 2;
|
|
|
|
|
optional int32 teamPosId = 3; // 队伍id
|
|
|
|
|
}
|
2019-05-07 11:05:58 +08:00
|
|
|
|
|
|
|
|
|
message WorkShopRebuildConfirmRequest{
|
|
|
|
|
optional int32 state = 1; // 1:确认使用 0:取消
|
|
|
|
|
}
|
2019-05-10 13:33:25 +08:00
|
|
|
|
|
2019-05-14 10:23:05 +08:00
|
|
|
|
|
2019-05-10 13:33:25 +08:00
|
|
|
|
message GetSecretBoxInfoResponse{
|
|
|
|
|
optional int32 season =1;//当前周期id
|
2019-05-11 15:16:37 +08:00
|
|
|
|
optional int32 count =2; //总抽取次数
|
2019-05-10 13:33:25 +08:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
message SecretBoxRandomRequest{
|
|
|
|
|
optional int32 typeId = 1;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
message SecretBoxRandomResponse{
|
|
|
|
|
optional Drop drop = 1; //抽取到的物品
|
|
|
|
|
optional Drop extrarReward =2; //额外奖励
|
|
|
|
|
}
|
2019-05-11 17:22:16 +08:00
|
|
|
|
|
2019-05-14 13:44:23 +08:00
|
|
|
|
message GetStoreInfosResponse{
|
2019-05-14 17:14:13 +08:00
|
|
|
|
repeated StoreInfo storeInfo = 1; //商店信息
|
2019-05-14 10:36:48 +08:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
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
|
|
|
|
|
}
|
2019-05-14 13:44:23 +08:00
|
|
|
|
|
2019-05-14 10:36:48 +08:00
|
|
|
|
message StoreGoodsRefreshResponse{
|
2019-05-14 17:14:13 +08:00
|
|
|
|
optional StoreInfo storeInfo = 1; //商店信息
|
2019-05-14 10:36:48 +08:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
2019-05-14 10:23:05 +08:00
|
|
|
|
message GetFunctionOfTimeResponse{
|
2019-05-14 16:31:30 +08:00
|
|
|
|
repeated FunctionOfTime functionOfTime =1 ;
|
2019-05-13 14:58:01 +08:00
|
|
|
|
}
|
|
|
|
|
|
2019-05-27 14:01:40 +08:00
|
|
|
|
message VipLevelUpResponse{
|
2019-06-21 17:02:11 +08:00
|
|
|
|
optional VipBaseInfo vipBaseInfo =1;
|
2019-06-21 17:38:37 +08:00
|
|
|
|
repeated UserMissionInfo userMissionInfo =2;//任务请求
|
2019-05-27 14:01:40 +08:00
|
|
|
|
}
|
|
|
|
|
|
2019-05-27 20:18:55 +08:00
|
|
|
|
message MissionUpdateListIndication{
|
2019-06-17 10:54:57 +08:00
|
|
|
|
repeated UserMissionInfo userMissionInfo =2; //任务更新详情
|
2019-05-27 20:18:55 +08:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
message TakeMissionRewardRequest{
|
2019-06-06 10:15:01 +08:00
|
|
|
|
optional int32 type =1 ; // 任务类型 1:vip任务 2;每日任务
|
2019-05-27 20:18:55 +08:00
|
|
|
|
optional int32 missionId =2;// missionId
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
message TakeMissionRewardResponse{
|
|
|
|
|
optional Drop drop =1 ;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
message UserForceChangeRequest{
|
|
|
|
|
optional int32 teamId = 1; // 最高战力队伍id
|
|
|
|
|
}
|
|
|
|
|
|
2019-05-28 09:58:02 +08:00
|
|
|
|
message VipTakeBoxRequest{
|
|
|
|
|
optional int32 type =1 ;// 1 : 等级礼包 2 :每日礼包
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
message VipTakeBoxResponse{
|
|
|
|
|
optional Drop drop =1;
|
|
|
|
|
}
|
|
|
|
|
|
2019-06-04 09:52:53 +08:00
|
|
|
|
message RechargeInfoRequest{
|
|
|
|
|
optional int32 money = 1; //充值金额
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
message RechargeInfoResponse{
|
|
|
|
|
optional Drop drop = 1 ;// 首冲奖励
|
|
|
|
|
}
|
|
|
|
|
|
2019-06-06 17:22:03 +08:00
|
|
|
|
message GetFriendInfoRequest{
|
|
|
|
|
optional int32 type = 1; //1:好友列表, 2:推荐列表 3:申请列表
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
message GetFriendInfoResponse{
|
|
|
|
|
repeated Friend Friends =1; //好友信息
|
|
|
|
|
}
|
|
|
|
|
|
2019-06-06 10:15:01 +08:00
|
|
|
|
//测试购买礼包
|
|
|
|
|
message TestBuyGiftGoodsRequest{
|
|
|
|
|
optional int32 goodsId = 1;
|
|
|
|
|
}
|
2019-06-06 17:22:03 +08:00
|
|
|
|
|
2019-06-06 10:15:01 +08:00
|
|
|
|
//购买礼包获得道具推送
|
|
|
|
|
message BuyGoodsDropIndication{
|
|
|
|
|
optional Drop drop =1;
|
|
|
|
|
}
|
2019-06-06 17:22:03 +08:00
|
|
|
|
|
2019-06-06 10:15:01 +08:00
|
|
|
|
message AllGiftGoodsIndication{
|
|
|
|
|
repeated GiftGoodsInfo GiftGoodsInfo =1;
|
|
|
|
|
}
|
2019-06-06 17:22:03 +08:00
|
|
|
|
|
2019-06-10 10:37:49 +08:00
|
|
|
|
message InviteFriendRequest{
|
|
|
|
|
repeated int32 inviteUids = 1; // 申请的好友id
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
2019-06-10 17:02:29 +08:00
|
|
|
|
message FriendInviteOperationRequest{
|
|
|
|
|
optional int32 type = 1; //1:同意 2:拒绝 3:全部同意 4: 全部拒绝
|
|
|
|
|
optional int32 friendId = 2; // 好友id
|
|
|
|
|
}
|
|
|
|
|
|
2019-06-11 10:45:23 +08:00
|
|
|
|
message sendFriendInfoIndication{
|
2019-06-13 11:40:53 +08:00
|
|
|
|
optional int32 type = 1; //1:申请好友 2: 添加好友
|
2019-06-12 20:44:48 +08:00
|
|
|
|
optional Friend Friends =2; //好友信息
|
2019-06-11 10:45:23 +08:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
message FriendGivePresentRequest{
|
|
|
|
|
optional int32 type = 1; //1:赠送一个人 2 赠送全部好友
|
|
|
|
|
optional int32 friendId=2;
|
|
|
|
|
}
|
2019-06-11 11:41:25 +08:00
|
|
|
|
|
2019-06-11 10:45:23 +08:00
|
|
|
|
message DelFriendRequest{
|
|
|
|
|
optional int32 friendId= 1;
|
|
|
|
|
}
|
2019-06-11 11:41:25 +08:00
|
|
|
|
message FriendTakeHeartRequest{
|
|
|
|
|
optional int32 type = 1; // 1:领取一个人的 2:全部领取
|
|
|
|
|
optional int32 friendId = 2;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
message FriendTakeHeartResponse{
|
|
|
|
|
optional Drop drop =1;
|
|
|
|
|
}
|
2019-06-11 10:45:23 +08:00
|
|
|
|
|
2019-06-11 14:20:29 +08:00
|
|
|
|
message FriendSearchRequest{
|
|
|
|
|
optional string name = 1; // 名字
|
|
|
|
|
}
|
2019-06-13 11:40:53 +08:00
|
|
|
|
|
2019-06-11 14:20:29 +08:00
|
|
|
|
message FriendSearchResponse{
|
|
|
|
|
optional int32 type = 1; // 1申请:, 2:好友. 3:已申请
|
|
|
|
|
optional Friend Friends =2; //好友信息
|
|
|
|
|
}
|
|
|
|
|
|
2019-06-13 11:40:53 +08:00
|
|
|
|
message SendFriendStateIndication{
|
|
|
|
|
optional int32 type = 1; //1:删除好友 2: 赠送体力
|
|
|
|
|
optional int32 friendId =2; //好友Id
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
message RefreshFriendStateResponse{
|
|
|
|
|
repeated int32 friendIds = 1;
|
|
|
|
|
}
|
|
|
|
|
|
2019-06-15 15:42:23 +08:00
|
|
|
|
message FivePlayerUpdateIndication{
|
|
|
|
|
optional int32 hadTakeDailyBox = 1 ;//是否领取每日礼包 1:已领取vip等级 -1:未领取
|
|
|
|
|
repeated Privilege privilege =2 ; //特权使用信息
|
2019-06-17 10:54:57 +08:00
|
|
|
|
repeated ActivityInfo activityInfo =3;// 活动刷新
|
|
|
|
|
repeated UserMissionInfo userMissionInfo =4;//任务详情(列如 每日任务重置)
|
2019-06-15 15:42:23 +08:00
|
|
|
|
}
|
|
|
|
|
|
2019-06-21 17:02:11 +08:00
|
|
|
|
message GetMissionResponse{
|
|
|
|
|
repeated UserMissionInfo userMissionInfo =1;//所有任务详情
|
|
|
|
|
}
|
|
|
|
|
|
2019-06-13 11:40:53 +08:00
|
|
|
|
|
2019-06-10 17:02:29 +08:00
|
|
|
|
|
2019-05-27 20:18:55 +08:00
|
|
|
|
|
2019-05-27 14:01:40 +08:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2019-05-16 14:36:57 +08:00
|
|
|
|
|