422 lines
11 KiB
Protocol Buffer
422 lines
11 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 string device_id_s =1 ; //设备唯一标识,必须添加该字段
|
||
optional string idfa_sOr_imei_s =2 ; //苹果 安卓设备唯一标识吗
|
||
optional string brand_type_s =3; //设备机型类型
|
||
optional string brand_s =4; //设备机型名称
|
||
optional string os_version_s =5; //设备使用系统版本号
|
||
optional string dpi_s =6; //设备分辨率
|
||
optional string operator_s =7; //设备对应运营商类型
|
||
optional string network_s =8; //设备对应网络类型
|
||
optional string ip_s =9; //IP
|
||
optional string openId =10; //openID
|
||
optional string channel_s=11; //渠道 ID
|
||
optional string platform_s=12;// 平台类型
|
||
}
|
||
|
||
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;
|
||
repeated Privilege privilege =3;
|
||
repeated GiftGoodsInfo giftGoodsInfo =4;
|
||
repeated int32 buyGoodsId = 5;
|
||
optional SuddenlyBossInfo SuddenlyBossInfo = 6;//精英怪信息
|
||
optional VipBaseInfo vipBaseInfo = 7;
|
||
optional int32 userCreateTime = 8; // 玩家创角时间
|
||
repeated int32 redType = 9;// 红点信息
|
||
optional int32 randCount = 10;//已招募次数
|
||
repeated int32 heroHandBook = 11;//英雄图鉴
|
||
repeated int32 equipHandBook = 12;//装备图鉴
|
||
repeated int32 towerReceivedReward = 13;//试炼已领取奖励层数
|
||
repeated GoodsTypeDuration goodsTypeDuration = 14; // 已购买商品结束时间
|
||
optional int32 treasureScore = 15; // 孙龙的宝藏分数
|
||
optional int32 hadBuyTreasure = 16; // 是否购买孙龙的宝藏
|
||
}
|
||
|
||
|
||
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:分解装备3:分解妖灵师
|
||
optional int32 itemId = 2;
|
||
repeated Item items = 3;
|
||
repeated string equipIds = 4;
|
||
repeated string heroIds = 5;
|
||
}
|
||
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 不需要传送特殊符文。
|
||
optional int32 nums = 3 ;// 锻造装备数量
|
||
}
|
||
|
||
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 WorkTechnologyLevelRequest{
|
||
optional int32 id = 1;//
|
||
}
|
||
|
||
message WorkTechnologyResetRequest{
|
||
optional int32 professionId = 1;// 重置科技树职业id
|
||
}
|
||
|
||
message WorkTechnologyResetResponse{
|
||
optional Drop drop = 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; //待确认重铸装备
|
||
repeated TechnologyInfo technologyInfo = 4 ; //科技树点
|
||
}
|
||
|
||
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: 邮件红点 2 : 分享外敌boss红点 3:竞技场防守记录红点
|
||
}
|
||
|
||
message SaveNewPlayerPointRequest{
|
||
optional NewPlayerGuidePoint newPlayerGuidePoint =1;
|
||
}
|
||
|
||
message TakeActivityRewardRequest{
|
||
optional int32 missionId = 1; //活动任务id
|
||
optional int32 activityId = 2 ;//活动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 GetSecretBoxInfoResponse{
|
||
optional int32 season =1;//当前周期id
|
||
optional int32 count =2; //总抽取次数
|
||
}
|
||
|
||
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 ;
|
||
}
|
||
|
||
message VipLevelUpResponse{
|
||
optional VipBaseInfo vipBaseInfo =1;
|
||
repeated UserMissionInfo userMissionInfo =2;//任务请求
|
||
}
|
||
|
||
message MissionUpdateListIndication{
|
||
repeated UserMissionInfo userMissionInfo =2; //任务更新详情
|
||
}
|
||
|
||
message TakeMissionRewardRequest{
|
||
optional int32 type =1 ; // 任务类型 1:vip任务 2;每日任务
|
||
optional int32 missionId =2;// missionId
|
||
}
|
||
|
||
message TakeMissionRewardResponse{
|
||
optional Drop drop =1 ;
|
||
optional int32 treasureScore = 2 ;//孙龙的宝藏分数
|
||
}
|
||
|
||
message UserForceChangeRequest{
|
||
optional int32 teamId = 1; // 最高战力队伍id
|
||
}
|
||
|
||
message VipTakeBoxRequest{
|
||
optional int32 type =1 ;// 1 : 等级礼包 2 :每日礼包
|
||
}
|
||
|
||
message VipTakeBoxResponse{
|
||
optional Drop drop =1;
|
||
}
|
||
|
||
message RechargeInfoRequest{
|
||
optional int32 money = 1; //充值金额
|
||
}
|
||
|
||
message RechargeInfoResponse{
|
||
optional Drop drop = 1 ;// 首冲奖励
|
||
}
|
||
|
||
message GetFriendInfoRequest{
|
||
optional int32 type = 1; //1:好友列表, 2:推荐列表 3:申请列表
|
||
}
|
||
|
||
message GetFriendInfoResponse{
|
||
repeated Friend Friends =1; //好友信息
|
||
}
|
||
|
||
//测试购买礼包
|
||
message TestBuyGiftGoodsRequest{
|
||
optional int32 goodsId = 1;
|
||
}
|
||
|
||
//购买礼包获得道具推送
|
||
message BuyGoodsDropIndication{
|
||
optional Drop drop =1;
|
||
}
|
||
|
||
message AllGiftGoodsIndication{
|
||
repeated GiftGoodsInfo GiftGoodsInfo =1;
|
||
}
|
||
|
||
message InviteFriendRequest{
|
||
repeated int32 inviteUids = 1; // 申请的好友id
|
||
}
|
||
|
||
|
||
message FriendInviteOperationRequest{
|
||
optional int32 type = 1; //1:同意 2:拒绝 3:全部同意 4: 全部拒绝
|
||
optional int32 friendId = 2; // 好友id
|
||
}
|
||
|
||
message sendFriendInfoIndication{
|
||
optional int32 type = 1; //1:申请好友 2: 添加好友
|
||
optional Friend Friends =2; //好友信息
|
||
}
|
||
|
||
message FriendGivePresentRequest{
|
||
optional int32 type = 1; //1:赠送一个人 2 赠送全部好友
|
||
optional int32 friendId=2;
|
||
}
|
||
|
||
message DelFriendRequest{
|
||
optional int32 friendId= 1;
|
||
}
|
||
message FriendTakeHeartRequest{
|
||
optional int32 type = 1; // 1:领取一个人的 2:全部领取
|
||
optional int32 friendId = 2;
|
||
}
|
||
|
||
message FriendTakeHeartResponse{
|
||
optional Drop drop =1;
|
||
}
|
||
|
||
message FriendSearchRequest{
|
||
optional string name = 1; // 名字
|
||
}
|
||
|
||
message FriendSearchResponse{
|
||
optional int32 type = 1; // 1申请:, 2:好友. 3:已申请
|
||
optional Friend Friends =2; //好友信息
|
||
}
|
||
|
||
message SendFriendStateIndication{
|
||
optional int32 type = 1; //1:删除好友 2: 赠送体力
|
||
optional int32 friendId =2; //好友Id
|
||
}
|
||
|
||
message RefreshFriendStateResponse{
|
||
repeated int32 friendIds = 1;
|
||
}
|
||
|
||
message FivePlayerUpdateIndication{
|
||
optional int32 hadTakeDailyBox = 1 ;//是否领取每日礼包 1:已领取vip等级 -1:未领取
|
||
repeated Privilege privilege =2 ; //特权使用信息
|
||
repeated ActivityInfo activityInfo =3;// 活动刷新
|
||
repeated UserMissionInfo userMissionInfo =4;//任务详情(列如 每日任务重置)
|
||
optional fiveResetTowerInfo fiveResetTowerInfo = 5;// 重置试炼信息
|
||
}
|
||
|
||
message GetMissionResponse{
|
||
repeated UserMissionInfo userMissionInfo =1;//所有任务详情
|
||
}
|
||
|
||
message RefreshItemNumRequest{
|
||
repeated int32 itemId = 1;//
|
||
}
|
||
|
||
message RefreshItemNumResponse{
|
||
repeated ItemInfo itemInfo = 1;
|
||
}
|
||
|
||
message UpdateBagIndication{
|
||
optional int32 type =1; //更新背包类型 0: 普通背包 1: 临时背包
|
||
repeated Item item =2;
|
||
}
|
||
|
||
message modifyHeadFrameRequest{
|
||
//修改头像框
|
||
optional int32 headFrameId = 1;
|
||
}
|
||
|
||
//初始化云梦祈福
|
||
|
||
//请求云梦数据
|
||
message blessResponse{
|
||
repeated blessReward fixReward = 1;
|
||
repeated blessReward legendReward = 2;
|
||
repeated blessReward supremeReward = 3;
|
||
repeated blessReward countReward = 4;
|
||
repeated blessReward rewardView = 5;
|
||
optional int32 lastRefreshTime = 6;
|
||
}
|
||
//保存奖励
|
||
message blessSaveRequest{
|
||
repeated int32 rewardIds = 1;
|
||
}
|
||
//云梦抽取
|
||
message blessChooseRequest{
|
||
optional int32 locationId = 1;
|
||
}
|
||
message blessChooseResponse{
|
||
optional Drop reward = 1;
|
||
//所选格子奖励Id
|
||
optional int32 chooseRewardId = 2;
|
||
}
|
||
//刷新奖励
|
||
message blessRefresh{
|
||
optional blessResponse reward =1;
|
||
}
|
||
|
||
message storeUpdateIndication{
|
||
repeated StoreInfo storeInfo =1;
|
||
}
|
||
//装备锁定
|
||
message LockEquip{
|
||
repeated string id = 1;
|
||
optional int32 type = 2;//1:锁定操作 2:解锁操作
|
||
}
|
||
|
||
message ActivityUpateIndication{
|
||
repeated ActivityInfo activityInfo =1;
|
||
repeated int32 closeActivityId = 2;
|
||
}
|
||
|
||
//招财猫
|
||
message LuckCatRewardResponse{
|
||
optional Drop drop = 1;
|
||
optional int32 missionId = 2;
|
||
}
|
||
|
||
|