// 心跳检测命令码:100
message heartbead{
}
message heartbeadResult{
required string serverTime = 1; //服务器时间戳
}
// 注册接口命令码:110
message register{
required string username = 1; //用户名
required string password = 2; //密码
required string password2 = 3; //密码
}
message registerResult{
required int32 result = 1; // 1成功 0失败
required string message = 2;//失败原因
required int32 userId = 3;//userId
}
// 登录接口命令码:111
message login{
optional string username = 1;//用户名,使用账号密码登录传此值
optional string password = 2;//密码,使用账号密码登录传此值
optional string ticket = 3;//如果是ticket登录,传这个值
}
message loginResult{
required int32 result = 1; // 1成功 0失败
required string message = 2;//失败原因
required int32 userId = 3;//用户ID
required int32 userDiamon = 4;//用户钻石
required int32 fireLevelCurrent = 5;//炮塔等级
required int32 fireLevelMax = 6;//最高炮塔等级
required string headUrl = 7;//头像
required string gunType = 8;//使用枪
required int32 heartTime = 9;//心跳检测的时间间隔(单位:秒)
required string serverTime = 10;//服务器时间
required string user_code = 11;//给客户端用于展示的用户id
required string ticket = 12;//每次登录成功,会把这个值给到客户端,客户端保存下来用于下一次登录
}
// 获取七天登录配置:114
message getSevenGiftConfig{
}
// 获取七天登录配置:114
message getSevenGiftConfigResult{
repeated sevenGiftConfig sevenGiftConfigs = 1;
}
message sevenGiftConfig{
required int32 day = 1;//星期几
repeated rewardInfo rewards = 2;//奖励列表
}
// 获取技能道具配置:116
message getSkillConfig{
}
// 获取技能道具配置:116
message getSkillConfigResult{
repeated skillconfig skills = 1;//道具配置信息
}
message skillconfig{
required int32 id = 1;
required string type = 2;
required string name = 3;
required string describe = 4;
required string can_use = 5;
required string can_superposition = 6;
required string can_donate = 7;
required int32 jewel = 8;
required int32 cooling_time = 9;
required string url = 10;
required string status = 11;
required string group = 12;
required string can_sale = 13;
required string price_sale = 14;
required int32 addFrequency = 15;//增加的发炮速率百分比
required int32 addSpeed = 16;//增加炮弹速度百分比
required int32 addRate = 17;//增加捕鱼概率百分比
required int32 isCompound = 18;//是否能合成
required string indate = 19;//有效期(单位:天)
required int32 userExpVip = 20;//需要的等级
required int32 isShow = 21;//是否显示
required int32 isNoNum = 22;//是否没有数量属性
}
// 正常退出接口命令码:112
message logout{
}
// 获取大厅玩家信息接口命令码:113
message getPlayerInfo{
required int32 userId = 1;//用户id
}
message getPlayerInfoResult{
required int32 userId = 1;//用户id
required string nickName = 2;//昵称
required string userGold = 3;//金币数
required int32 expLevel = 4;//经验值
required int32 expVip = 5;//vip经验值
required string headerUrl = 6;// 头像
required int32 age = 7;//年龄
required int32 friendCount = 8;//好友数
required int32 constellation = 9;//星座
required int32 status = 10;//状态 0-呵呵 1-单身 2-热恋 3-已婚
required string sign = 11;//个性签名
repeated userSkillDetail skillDetail = 12;//用户道具
required int32 fireLevelMax = 13;//最高炮塔等级
required int32 sex = 14;//性别 0-保密 1-女 2-男
required string lotteryFishCount = 15;//击杀奖金鱼的数量
required string lotteryGold = 16;//奖池金额
required string redPacket = 17;//红包余额
required int32 redPacketLotteryCount = 18;//红包已抽奖次数
required string userGoldFish = 19;//招财金鱼-打鱼累计获得的金币,领取奖励后置0
required string userGoldFishTime = 20;//招财金鱼-下一次领取的时间戳
required int32 userGoldFishLevel = 21;//招财金鱼-等级
required string shop_ids = 22;//充值获得的shop_id列表,多条记录用','分隔,服务端返回消息后会清空该字段
required int32 can_exchange_count_today = 23;//今天还可以兑换红包券的次数
required int32 first_recharge = 24;//首次充值,0:尚未使用,1:已经使用
required int32 little_try = 25;//小试牛刀,0:尚未使用,1:已经使用
required string user_tel = 26;//已经绑定的手机号
required string user_code = 27;//客户端用于展示的用户id
required int32 is_new = 28;//是否是新玩家
required int32 is_bindwx = 29;//是否绑定微信,0:未绑定,1:已绑定
}
// 获取系统配合数据:115
message getSysconf{
}
message getSysconfResult{
required int32 firePower = 1;//火力
required int32 speed = 2;//炮弹移动速度
required int32 fireNumPerSecond = 3;//每秒出炮数量
required int32 heartTime = 4;//心跳检测间隔时间(单位:秒)
required int32 levelCap = 5;//玩家等级上限
required string lotteryRate = 6;//抽奖概率
required string lotteryFishType = 7;//抽奖鱼的类型
required int32 compoundDebris = 8;//合成碎片需要的数量
required int32 rankingCount = 9;//排行榜人数上限
required int32 functionDonate = 10;//赠送功能开关 0-关 1-开
required int32 functionRedPacket = 11;//红包功能开关 0-关 1-开
required int32 functionRedPacketLottery = 12;//红包抽奖功能开关 0-关 1-开
required int32 redPacketLotteryNeedGold = 13;//红包抽奖需要消耗金币
required int32 redPacketLotteryNeed = 14;//红包抽奖需要消耗红包余额
required int32 redPacketLotteryLimitCount = 15;//一等奖抽中数量限制
required int32 functionH5 = 16;//h5活动开关 0-关 1-开
//repeated fishRoad fishRoads = 4;//鱼的移动轨迹
}
message fishRoad{
required int32 roadID = 1; //路线id
repeated fishPoint points = 2;//点列表
}
message fishPoint{
required movPositionInfo positionInfo = 1; //位置
required movEffectInfo effectInfo = 2; //特效信息
required movFishInfo movInfo = 3; //动画信息
required movRotaInfo rotaInfo = 4;//旋转调整
required movScaleInfo scaleInfo = 5;//大小信息
required talkingInfo talking = 6;//说话(空代表不说话)
required int32 curvePointCount = 7;//曲线的点的数量
required int32 isturn = 8;//是否转身 0 不转 1转身
}
message talkingInfo{//说话内容
required int32 fishIdx = 1;//哪条鱼
required int32 talkTime = 2;//说话时间
required string talkInfo = 3;//说话内容
}
//路线中的特效播放
message movEffectInfo{
required int32 effectId=1;//特效动画id
required float effectSpeed=2;//播放的动画速度
}
//路线中的鱼动画播放
message movFishInfo{
required int32 movieId=1;//播放的动画id
required float movieSpeed=2;//播放的动画速度
}
//路线中的位置信息
message movPositionInfo{
required vect3 position=1;//位置
required float timeSpan=2;//下一个点的时间(秒)
}
//路线中的鱼旋转信息
message movRotaInfo{
required vect3 rota=1;//旋转
required vect3 rotaTime=2;//旋转的时间
}
//路线中的鱼缩放信息
message movScaleInfo{
required vect3 scale=1;//缩放
required vect3 scaleTime=2;//缩放的时间
}
//位置信息
message vect3 {
required float x = 1; //x
required float y = 2; //y
required float z = 3; //z
}
// 加入房间接口命令码:117
message joinRoom{
required int64 roomId = 1;
}
message joinRoomResult{
required int32 result = 1; //1成功 0失败
required string message = 2;//失败原因
required int64 roomId = 3;//房间号
required int32 seatId = 4;//座位ID: 0-3
required int32 userId = 5;//用户ID
required int32 roomTime = 6;//房间时间,毫秒
repeated onRoomFishOut roomFishs = 7;//房间目前的鱼的情况
required int32 user_red_packet_progress = 8;//红包进度,跟打炮后得到的进度是一样的
}
// 客户端房间初始化好,服务端收到这个消息后修改game_init_ok:118
message initRoom{
}
message initRoomResult{
}
// 获取房间玩家信息接口命令码:119
message gameScenceInitOK{
required int64 roomId = 1;//房间号
}
message getRoomPlayersInfoResult{
required int64 roomId = 1;//房间号
repeated roomPlayerInfo player = 2;//玩家信息
}
message roomPlayerInfo{
required int32 userId = 1;
required string nickName = 2;//昵称
required string headerUrl = 3;// 头像
required int32 fire = 4;//炮管
required int32 fireSeat = 5;//炮座
required int32 fireLevelCurrent = 6;//炮倍等级
required int32 fireLevelMax = 7;//最炮倍等级
required int32 seatId = 8;//座位ID: 0-3
required string gold = 9;//玩家金币
required int32 expLevel = 10;//玩家经验
required int32 expVip = 11;//玩家经验
required int32 level = 12;//玩家等级
required string redPacket = 13;//玩家红包余额
required int32 sex = 14;//性别
required string lastLoginTime = 15;//最近上线时间
repeated skillStatusInfo skillStatusArr = 16;//玩家的道具的使用状态
required string user_code = 17;//客户端用于展示的用户id
optional int64 integralNum=18;//积分数量
optional int32 left_fish_num = 19;//剩余上榜打中鱼条数
}
message skillStatusInfo{
required string type = 1;//道具type
required int32 status = 2;//道具状态,0:未使用,1:使用中
}
//机器人注册:120
message mcRegister{
required string user_account = 1;
required string user_pass = 2;
required string nick_name = 3;
required string head_url = 4;
required int32 exp = 5;
required int32 exp_vip = 6;
required int32 gold = 7;
repeated skillItem skill = 8;
}
message skillItem{
required string type = 1;//道具type
required int32 num = 2;//数量
}
// 房间出鱼:121
message onRoomFishOut{
required float fishTime = 1;// 鱼线的出鱼时间(秒)
required string fishType = 2;//鱼类型
required int32 fishBlood = 3;//鱼血量---->换成分值
repeated fishIdInfo fishIdList = 4;//鱼的id列表 数组长度就是鱼的数量
required float delayTime = 5;//鱼之间的时间间隔(秒)
required fishRoad road = 6;//鱼行走的路线
required int32 is_call = 7;//1是召唤 2-boss 其他是普通路线
repeated fishLineItemInfo itemInfos = 8;//掉落道具信息(没有代表没掉道具)
}
message fishLineItemInfo
{
required int32 fishIdx = 1;//第N条鱼掉落道具
repeated rewardInfo rewards = 2;//奖励列表
}
message fishIdInfo{
required int32 fishId = 1;//鱼id
required int32 fishAlive = 2;//是否存活
}
// 房间玩家发炮:123
message playerFire{
required int32 fireType = 1;//炮塔类型
required int32 fireLevel = 2;//炮塔等级
required int32 fireGold = 3;//开炮消耗的金币
required float angle = 4;//开炮的角度
required int32 aimFishId = 5;//瞄准的鱼的id
required int32 fireStatus = 6;//开炮状态 0-普通开炮 1-多重分身 2-狂暴
required int32 fireIndex = 7;//开炮的id,如果是多重分身,每个id自增加,id是第一个的id
}
// 房间玩家发炮:123
message onPlayerFire{
required int32 fireType = 1;//炮塔类型
required int32 fireLevel = 2;//炮塔等级
required string userGold = 3;//用户剩余金币
required float angle = 4;//开炮的角度
required int32 userId = 5;//用户ID
required int32 fireGold = 6;//开炮消耗的金币
required int32 aimFishId = 7;//瞄准的鱼的id
required string progress = 8;//红包场不同炮倍对应的进度"0"
required int32 fire_index = 9;//开炮的id,如果是多重分身,每个id自增加id是第一个的id
}
// 鱼游出场外:124
message fishOutGame{
required int32 fishId=1;//鱼id
}
// 房间玩家打死鱼:125
message playerGetFish{
required int32 fire_index=1;////开炮的id
required int32 fishId=2;//鱼id
}
// 房间玩家打死鱼:125
message playerGetFishResult{
required playGetFist getFish = 1;//
}
// 获取活鱼:126
message getAliveFish{
required int32 fishId=1;//鱼id
}
//获取活鱼:126
message getAliveFishResult{
required int32 result = 1; //1成功 0失败
required string message = 2;//失败原因
required int32 status = 3;//状态 0:不存在,1,存在
}
message playGetFist{
required int32 fishId=1;//玩家打中鱼的ID
required int32 userId=2;//玩家ID
required int32 exp=3;//玩家经验
repeated rewardInfo list_reward=4;//获取得奖励
required string userGold=5;//玩家所有金币
required int32 FF=6;//鱼的分值
required fishEffect effect=7;//特效类型
required string lotteryFishCount = 8;//击杀奖金鱼的数量
required string lotteryGold = 9;//奖池金额
optional int64 integralNum=10;//积分数量
optional int32 left_fish_num = 11;//上榜剩余打中鱼条数
}
message fishEffect{
required int32 effectID=1;//玩家打中鱼的ID
required int32 shakeID=2;//震动id
required int32 dishID=3;//震动id
}
message playerFireInfo{
required int32 userId = 1;//玩家userId
required int32 fireType = 2;//炮塔类型
required int32 fireLevel = 3;//炮塔等级
required int32 fireGold= 4;//炮金币
}
// 退出房间:127
message leaveRoom{
required int64 roomId=2;//房间的ID
}
// 退出房间:127
message onLeaveRoom{
required int32 result = 1; //1成功 0失败
required string message = 2;//失败原因
required int64 roomId = 3;//房间号
required int32 userId = 4;//用户ID
}
// 红包进度:128
message RedProgress{
}
// 红包进度:128
message RedProgressResult{
required int32 result = 1; //1成功 0失败
required string message = 2;//失败原因
required int64 progress = 3;//红包进度
}
// 玩家换枪: 129
message changeWeapon{
required int32 gunType = 1;//炮塔类型
}
// 玩家换枪: 129
message changeWeaponResult{
required int32 userId = 1; //用户ID
required int32 seatId = 2;//座位ID: 0-3
required int32 gunType = 3;//炮塔类型
required int32 gunLevel = 4;//炮塔等级
}
// 帐号强制挤退: 131
message forceLogout{
required string msg = 1;//消息内容
}
// 帐号断线重连: 133
message logAgain{
required bool inRoom = 1;
}
// 返还金币: 134
message ReturnBackGoldIM{
}
message ReturnBackGoldOM{
required int32 result = 1; //1成功 0失败
required string message = 2;//失败原因
required int64 goldNum = 3;//金币数量
required int32 userId = 4;//玩家id
}
// 过滤被打死的鱼: 135
message GetKilledFishIdsIM{
repeated int32 fishIds = 1;//鱼id列表
}
// 过滤被打死的鱼:135
message GetKilledFishIdsOM{
required int32 result = 1; //1成功 0失败
required string message = 2; //失败原因
repeated int32 killFishIds = 3; //已被击杀鱼id列表
}
// 登录提示语: 151
message loginWords{
required string words = 1;
}
//礼包领取状态 161
message sevenGift{
}
message sevenGiftResult{
required int32 result = 1; //1成功 0失败
required string status = 2;//七日任务,每天签到状态
required string message = 3;
required int32 count = 4;//用户签到天数
required string statusReward = 5;//累计签到奖励 0-已领取 1-可领取 2-不可领取
required int32 todayReceive = 6; //今天是否领取奖励 0未领取成功 1已领取
}
//领取当日礼包 162
message getDaygift{
required string type = 1;
}
message getDaygiftResult{
required int32 result = 1; // 1成功 0失败
required string message = 2;//失败原因
required string type = 3;
}
//补签 163
message signPast{
required string type = 1; //补签日期
}
message signPastResult{
required int32 result = 1; // 1成功 0失败
required string message = 2;//失败原因
required string type = 3; //补签日期
}
//获取道具166
message getSkill{
required int32 removeRedDot = 1;//是否删除小红点,以及删除道具的“新”标识 1:删除,0:不删除
}
message getSkillResult{
required int32 result = 1; // 1成功 0失败
required string message = 2;//失败原因
repeated userSkillDetail skillDetail = 3;
}
message userSkillDetail{
required string type = 1;//道具类型
required int32 count = 2;//道具数量
required int32 isNew = 3;//是否新
required int32 isUse = 4;//是否已经使用
required int32 isCompound = 5;//是否是合成得到的道具
required int32 indate = 6;//有效期(单位:天)
}
//道具使用 167
message useSkill{
required string type = 1;
required int32 count = 2;
}
//167
message useSkillResult{
required int32 result = 1; // 1成功 0失败
required string message = 2;//失败原因
required string type = 3;//道具类型
required int32 count = 4;//道具库存
required int32 userId = 5;
required string skillType = 6;
required string userGold = 7;
required int32 userDiamon = 8;
}
//取消使用道具 168
message cancelSkill{
required string type = 1;
}
//168
message cancelSkillResult{
required int32 result = 1; // 1成功 0失败
required string message = 2;//失败原因
required string type = 3;//道具类型
required int32 userId = 4;
}
//狂暴
message skillEnergy{
required int32 userId = 1;
required string skillType = 2;
}
//核弹 172
message skillNuclear{
required string skillType = 1;
}
//核弹返回结果172
message skillNuclearResult{
required int32 result = 1; // 1成功 0失败
required int32 userId = 2;
required string skillType = 3;
// repeated fishInfo fishinfo = 4;//鱼的id和金币
}
//核弹打鱼情况 173
message skillNuclearFire{
repeated int32 killFishId = 1;//要销毁的鱼的id列表
required string skillType = 2;//核弹类型
}
message skillNuclearFireResult{
required int32 userId = 1;
repeated fishInfo infos = 2;//鱼的奖励和金币
required int32 lotteryFishCount = 3;//奖金鱼的数量
required int32 totalGold = 4;//总奖励金币
required int32 userCurrentGold = 5;//用户当前金币
}
//冰冻打鱼情况 175
message skillCoolFire{
repeated int32 killFishId = 1;//要销毁的鱼的id列表
}
message skillCollFireResult{
required int32 userId = 1;
repeated fishInfo infos = 2;//鱼的奖励和金币
}
message fishInfo{
required int32 fishId = 1;//鱼的id列表
required int32 gold = 2;//每条鱼的金币
}
//切换炮的倍数 179
message changeFireLevel{
required int32 level = 1;//等级
}
//切换炮的倍数 179
message changeFireLevelResult{
required int32 userId = 1;//用户id
required int32 level = 2;//等级
}
//获取炮塔升级所需金币 140
message getFireLevelConfig{
}
//获取炮塔升级所需金币 140
message fireLevelConfigResult{
repeated fireLevelConfig fireLevelConfigs= 1;//配置数据
}
message fireLevelConfig{
required int32 id = 1;//id
required int32 fireGold = 2;//打炮金币
required int32 giftGold = 3;//升级赠送金币
required int32 useDiamon = 4;//升级花费砖石数量
}
//获取炮塔升级141
message getFireLevelUpdate{
required int32 fireLevel= 1;//升到的等级
}
//获取炮塔升级结果 141
message getFireLevelUpdateResult{
required int32 result= 1;//升级结果 1 ok 0 失败
required int32 userId= 2;//升级的用户id
required int32 fireLevelCurrent= 3;//升级的等级
required int32 fireLevelMax= 4;//最高的等级
required string msg= 5;//消息
required int32 fireGold = 6;//当前炮倍
}
//================================================
//获取金币排行榜 142
message getRankingInfo{
required int32 type = 1;//小排行类型 0 - 金币 1 - 爆金 2 - 等级
optional int32 page = 2;//页码
optional int32 item_count = 3;//条数
}
//获取金币排行榜 142
message getRankingInfoResult{
required int32 type = 1;//小排行类型 0 - 金币 1 - 爆金 2 - 等级
repeated rankingInfo infos= 2;//rankingGold
required rankingInfo me = 3;//当前玩家的排行信息
}
message rankingInfo{
required int32 id= 1;//序号s
required int32 idx= 2;//排名
required int32 user_id= 3;//用户id
required string user_name= 4;//昵称
required int32 vip_level= 5;//vip等级
required string user_gold= 6;//金币
required string user_gold_e = 7;//爆金
required string user_red_packet = 8;//红包金额
required string user_bomb = 9;//黄金核弹数量
required int32 level= 10;//等级
required string head_url = 11;//头像
required string sign = 12;//个性签名
}
//================================================
//================================================800-900尽量配置成房间的参数列表
//获取玩家的概率浮动系数 143 进入房间获取一次 ,游戏中不定时会发送一次
message getUserRate{
}
//获取玩家的概率浮动系数 143 进入房间获取一次 ,游戏中不定时会发送一次
message getUserRateResult{
required int32 rate_P= 1;//百分之n,这个是用户 U 数值
}
//获取房间的浮动系数 144 进入房间获取一次 ,游戏中不定时会发送一次
message getRoomRate{
}
//获取房间的浮动系数 144
message getRoomRateResult{
required int32 rate_L= 1;//百分之n,这个是关卡 L数值
}
//================================================
//获取提示 145
message getTip{
}
//获取提示 145
message getTipResult{
required int32 bag_new = 1;//背包是否有更新提示(0 没有 1 有)
required int32 mission_new = 2;//任务是否有更新提示(0 没有 1 有)
required int32 email_new = 3;//邮件是否有更新
}
//获取mission配置表 146
message getMissionConfig{
}
//获取day——mission配置表 146
message getMissionDayConfigResult{
repeated missionConfig list = 1;//每日任务
}
message missionConfig{
required int32 mission_id = 1;//id
required int32 mission_type = 2;//任务类型 0 每日任务 1 每日任务中(礼包) 2 每周任务 3 成长任务
required string mission_icon = 3;//任务图标
required string mission_description = 4;//任务描述
required string mission_name = 5;//任务名称
repeated rewardInfo rewards = 6;//奖励数组
}
message rewardInfo{//奖励详情
required int32 item_type = 1;//奖励道具
required string item_num = 2;//奖励数量
}
//获取任务状态 147
message getMissionDetail{
// required int32 mission_type = 2;//任务类型 0 每日任务 1 每日任务中(礼包) 2 每周任务 3 成长任务
}
//获取任务状态 147
message getMissionDetailResult{
repeated missionDetail infos=2;//任务状态列表
}
message missionDetail{
required int32 mission_type = 1;//任务类型 0 每日任务 1 每周任务 2 成长任务
required int32 mission_id = 2;//
required int32 mission_num = 3;//任务完成数量,
required int32 reward_geted = 4;//任务是否被领取
}
//领取任务奖励 148
message getMissionReward{
required int32 mission_type = 2;//任务类型 0 每日任务 1 每周任务 2 成长任务
required int32 mission_id = 1;//
}
//领取任务奖励 148
message getMissionRewardResult{
required int32 mission_type = 1;//任务类型 0 每日任务 1 每周任务 2 成长任务
required int32 mission_id = 2;//
repeated rewardInfo rewards = 6;//奖励数组
}
//换波 149
message getChangeWaveResult{
required int32 wave_back = 1;//背景id
required int32 wave_water = 2;//水纹id
required int32 tip_id = 3;//提示 id
required int32 sound_id = 4;//声音id
}
//主动推 升级奖励----- 152=============
message getLevelUpdateRewardResult{
required int32 userId = 1;//玩家ID
required int32 level = 2;//等级
repeated rewardInfo list_rewars = 3;//奖励列表15
}
//主动推 当前波已经到了尾部 不要再出技能了----- 153=============
message waveCome2End{
required int32 next_wave_id = 1;//下一波id
}
//================================================
//使用背包道具---- 154=============
message useItem{
required int32 itemType = 1;//道具类型
required int32 isUse = 2;//道具1装备 卸下
}
//使用背包道具---- 154=============
message useItemResult{
required int32 result = 1; // 1成功 0失败
required string message = 2;//失败原因
required string itemType = 3;//道具类型
required string group = 4;//道具组,用来给前端把其他道具的使用状态去掉
required int32 isUse = 5;//道具1装备 0卸下
required int32 uid = 6;//玩家id
}
//================================================
//卖出道具---- 155=============
message saleItem{
required int32 itemType = 1;//道具类型
required int32 sale_num = 2;//卖出数量
}
//卖出道具---- 155=============
message saleItemResult{
required int32 result = 1; // 1成功 0失败
required string message = 2;//消息
repeated rewardInfo rewards = 3;//
required int32 itemType = 4;//道具类型
required int32 sale_num = 5;//卖出数量
}
//================================================
//切换头像---- 156=============
message changeHeadUrl{
required string headUrl = 1;//头像
}
//切换头像---- 156=============
message changeHeadUrlResult{
required int32 result = 1; // 1成功 0失败
required string message = 2;//消息
required string headUrl = 3;//头像
}
//================================================
//================================================
//游客登录---- 157=============
message guestRegister{
required string machineCode = 1;//机器码
}
//游客登录---- 157=============
message guestRegisterResult{
required int32 result = 1; // 1成功 0失败
required string message = 2;//消息
required string userName = 3; //账号
required string userPass = 4;//密码用以前端保存
required string machineCode = 5;//机器码
}
//================================================
//================================================
message friendInfo{
required roomPlayerInfo playerInfo = 1;
required int32 onLine = 2;//1-在线 0-不在线
required int32 friendliness = 3;//友好度
required int64 roomId = 4;//游戏房间
required string requestMsg = 5;//请求加为好友的消息
}
//好友列表----190===========
message getFriends{
}
//好友列表----190===========
message getFriendsResult{
required int32 result = 1; // 1成功 0失败
required string message = 2;//消息
repeated friendInfo friends = 3;//好友列表
}
//单个好友----191===========
message getFriendByUserID{
required int32 userId = 1;//玩家id
}
//单个好友----191===========
message getFriendByUserIDResult{
required int32 result = 1; // 1成功 0失败
required string message = 2;//消息
required friendInfo friend = 3;//好友信息
}
//添加好友请求----192===========
message requestFriend{
required int32 targetUserId = 1;//目标玩家id
required string message = 2;//请求描述
}
//添加好友请求----192===========
message requestFriendResult{
required int32 result = 1; // 1成功 0失败
required string message = 2;//消息
required int32 userId = 3;//发送请求的用户id
required int32 typeId = 4;//1-请求方已存在目标用户的好友列表中, 直接添加为好友
required string targetUserCode = 5;//目标用户的user_code等于1时启用
}
//添加或者删除好友----193===========
message setFriend{
required int32 typeId = 1;//1-添加好友 2-删除好友|拒绝好友 3-加入黑名单 4-从黑名单中移除 5-临时好友
required int32 userId = 2;//目标玩家id
}
//添加或者删除好友----193===========
message setFriendResult{
required int32 result = 1; // 1成功 0失败
required string message = 2;//消息
required int32 typeId = 3;//操作类型
required string userCode = 4;//目标玩家userCode
}
//推荐好友----194===========
message recommendFriend{
}
//推荐好友----194===========
message recommendFriendResult{
required int32 result = 1; // 1成功 0失败
required string message = 2;//消息
repeated friendInfo friends = 3;//搜索到的陌生好友列表\
}
//搜索好友----195===========
message searchFriend{
required int32 typeId = 1;//1-id 2-nickName
required string searchValue = 2;//搜索关键词
}
//搜索好友----195===========
message searchFriendResult{
required int32 result = 1; // 1成功 0失败
required string message = 2;//消息
repeated friendInfo friend = 3;//陌生人信息列表
}
//所有申请加我为好友列表----196===========
message getRequestFriends{
}
//所有申请加我为好友列表----196===========
message getRequestFriendsResult{
required int32 result = 1; // 1成功 0失败
required string message = 2;//消息
repeated friendInfo friend = 3;//申请列表
}
//附近好友----197===========
message getNearFriends{
}
//附近好友----197===========
message getNearFriendsResult{
required int32 result = 1; // 1成功 0失败
required string message = 2;//消息
repeated friendInfo friend = 3;//申请列表
}
//黑名单列表----198===========
message getBlackFriends{
}
//黑名单列表----198===========
message getBlackFriendsResult{
required int32 result = 1; // 1成功 0失败
required string message = 2;//消息
repeated friendInfo friend = 3;//申请列表
}
//邀请游戏----199===========
message getInviteFriends{
required int64 roomId = 1;//房间ID
required friendInfo friend = 2;//邀请的人
}
//邀请游戏----199===========
message getInviteFriendsResult{
required int32 result = 1; // 1成功 0失败
required string message = 2;//消息
required int64 roomId = 3;//房间ID
required int32 friendUserId = 4;//邀请的人
}
//好友消息----200===========
message friendMessage{
required int32 userId = 1;//接收消息的玩家id
required string msg = 2;//消息内容
//required friendInfo friend = 3;//好友数据
}
//好友消息----200===========
message friendMessageResult{
required int32 result = 1; // 1成功 0失败
required int32 userId = 2;//发送消息的玩家id
required string message = 3;//消息
}
//赠送----201===========
message sendGiftToFriend{
required int32 toUserId = 1;//发赠送的目标玩家id
required string content = 2;//消息内容
required rewardInfo rewards = 3;//赠送的道具
}
//赠送----201===========
message sendGiftToFriendResult{
required int32 result = 1; // 1成功 0失败
required string message = 2;//消息
required rewardInfo rewards = 3;//赠送的道具
}
//获取赠送记录----202===========
message getFriendGiftList{
}
//获取赠送记录----202===========
message getFriendGiftListResult{
required int32 result = 1; // 1成功 0失败
required string message = 2;//消息
repeated friendGift gifts=3;//礼物记录
}
message friendGift{
required int32 id = 1; // 礼物id
required int32 from_user_id = 2; // 赠送者id
required string from_user_name = 3; // 赠送者昵称
required string from_user_url = 4; // 赠送者头像
required int32 to_user_id = 5; // 接收者id
required string to_user_name = 6; // 接收者昵称
required string to_user_url = 7; // 接收者头像
required rewardInfo rewards = 8;//礼物内容
required string sendTime = 9;//赠送时间(时间戳)
}
//获取赠送内容----203===========
//message getFriendGiftRewards{
// required int32 giftId = 1; // 礼物id
//}
//获取赠送内容---203===========
//message getFriendGiftRewardsResult{
// required int32 result = 1; // 1成功 0失败
// required string message = 2;//消息
// required friendGift gift=3;//礼物内容
//}
//赠送**================================================
//================================================
//获取邮件----181===========
message getPost{
}
//获取邮件----181===========
message getPostResult{
required int32 result = 1; // 1成功 0失败
required string message = 2;//消息
repeated postInfo postInfo = 3;//消息列表
}
message postInfo{
required int32 id = 1;//邮件id
required int32 userId = 2;//用户id
required string headUrl = 3;//头像id
required string friendName = 4;// 系统消息 好友名称
required string content = 5;//邮件内容
required int32 canGet = 6;//是否能领取
required string sendTime = 7;//赠送时间(时间戳)
repeated rewardInfo rewards = 8;//赠送内容
required int32 isDelete = 9;//是否显示 0-显示 1-不显示
required int32 isRead = 10;//是否已读 0-未读 1-已读
}
//================================================
//获取Vip配置----182===========
message getVipConfig{
}
//获取Vip配置----182===========
message getVipConfigResult{
required int32 result = 1;//成功1失败0
required string message = 2;//信息
repeated vipConfig configs = 3;//配置列表
}
message vipConfig{
required int32 id = 1;
required int32 vip_grade = 2;//vip等级
required int32 vip_exp = 3;//vip经验
required int32 vip_skill = 4;//vip道具id
repeated string description = 5;//vip道具描述
required int32 is_sign = 6;//累计签到奖励的开关 0-关闭 1-开启
required int32 additional = 7;//充值金币额外赠送百分比
required int32 exchange_upper = 8;//单次兑换红包金额的上限
required int32 exchange_gold_discount = 9;//兑换金币折扣百分比
required int32 exchange_count = 10;//每日兑换红包次数
}
//================================================
//领取邮件道具---- 183==============
message getPostReward{
required int32 postType = 1;//邮件类型 0-系统邮件 1-好友邮件
repeated int32 postId = 2;//邮件id
}
//领取邮件道具---- 183==============
message getPostRewardResult{
required int32 result = 1;//成功1失败0
required string message = 2;//信息
required int32 userId = 3;//用户id
repeated int32 postId = 4;//邮件id
required int32 postType = 5;//邮件类型 0-系统邮件 1-好友邮件
}
//================================================
//修改个人资料---- 210==============
message modifyPersionInfo{
required int32 userId = 1;//用户id
required int32 age = 2;//年龄
required int32 constellation = 3;//星座
required int32 status = 4;//状态
required string sign = 5;//签名
required int32 sex = 6;//性别 0-保密 1-女 2-男
}
//修改个人资料---- 210==============
message modifyPersionInfoResult{
required int32 result = 1;//成功1失败0
required string message = 2;//信息
}
//================================================
//金币赠送记录命令码:220
message getUserDonate{}
//金币赠送记录
message getUserDonateResult{
required int32 result = 1; // 1成功 0失败
required string message = 2;//失败原因
required userDonateInfo donate = 3;//赠送记录
}
//赠送和接收金币的记录
message userDonateInfo{
required string donate_gold = 1;//赠送对象id "user_id1, user_id2" 不能超过10个
required int32 receive = 2;//不能超过10个
required string donate_skill = 3;//赠送道具的数量="0-冰冻,1-锁定,2-召唤,3-狂暴,4-分身,5-核弹,6-青铜,7-白银,8-黄金"
}
//================================================
//用户状态命令码:230
message getPlayerStatus{
required int32 userId = 1;//用户id
}
message getPlayerStatusResult{
required int32 result = 1; // 1成功 0失败
required string message = 2;//失败原因
required playerStatus status = 3;//用户状态
}
message playerStatus{
required int32 userId = 1;//用户id
required int32 bag_new = 2;//用户id
required int32 mission_new = 3;//用户id
required int32 friend_request_new = 4;//用户id
required int32 friend_message_new = 5;//用户id
required int32 email_new = 6;//用户id
required int32 create_time = 7;//用户id
required int32 update_time = 8;//用户id
required int32 share_new = 9;//分享
}
//================================================
//房间聊天命令码:240
message sendChat{
required int32 userId = 1;//用户id
required string msg = 2;//聊天内容
required string expression = 3;//表情
}
message sendChatResult{
required int32 result = 1; // 1成功 0失败
required string message = 2;//失败原因
required int32 userId = 3;//用户id
required string msg = 4;//聊天内容
required string expression = 5;//表情
}
//反馈:241
message FeedbackIM{
required int32 type = 1;//问题类型
required string content = 2;//反馈内容
required string contact = 3;//联系方式
}
message FeedbackOM{
required int32 result = 1; // 1成功 0失败
required string message = 2;//失败原因
}
//================================================
//================================================
//房间抽奖配置命令码:250
message getLotteryConfig{
}
message getLotteryConfigResult{
required int32 result = 1; // 1成功 0失败
required string message = 2;//失败原因
repeated lotteryConfig configs = 3;//配置数据
}
message lotteryConfig{
required int32 id = 1;//id
required string lotteryName = 2;//奖励名称
required string needGold = 3;//需要的奖池金额
repeated rewardInfo rewards = 4;//奖励礼包1-6
required int32 fishCount = 5;//击杀奖金鱼的数量
}
//房间抽奖命令码:251
message getLotteryReward{
required int32 lotteryType = 1;//抽奖等级 0-5
}
message getLotteryRewardResult{
required int32 result = 1; // 1成功 0失败
required string message = 2;//失败原因
required rewardInfo rewards = 3;//奖励
}
//================================================
//================================================
//房间打中boss命令码:252
message hurtBoss{
required int32 fireGold = 1;//炮塔金币等级
required int32 fishId = 2;//鱼的id
}
message hurtBossResult{
required int32 result = 1; // 1成功 0失败
required string message = 2;//失败原因
required int32 userId=3;//玩家ID
required string userGold=4;//玩家所有金币
required string rewardGold = 5;//奖励的金币
required int32 fishId = 6;//鱼的id
}
//================================================
//合成碎片:260
message compound{
required int32 skillId = 1;//合成道具id
required int32 skillNum = 2;//合成消耗的数量
}
message compoundResult{
required int32 result = 1; // 1成功 0失败
required string message = 2;//失败原因
required rewardInfo info = 3;//合成获得的道具
required int32 indate = 4;//有效期(单位:天)
}
//================================================
//删除用户的登录状态: 270
message deleteLoginStatus{
required string userName = 1;//登录账号
}
message deleteLoginStatusResult{
required int32 result = 1; // 1成功 0失败
required string message = 2;//失败原因
}
//================================================
//================================================
//获取红包配置: 280
message getRedPacketConfig{
}
message getRedPakcetConfigResult{
required int32 result = 1; // 1成功 0失败
required string message = 2;//失败原因
repeated redPacketConfig cons = 3;//配置数据
repeated fireConfig fireCons = 4;//开炮配置
}
message redPacketConfig{
required int32 id = 1;//1-3是奖金配置
required string index1 = 2;//奖励金额
required string index2 = 3;//奖励金额
required string index3 = 4;//奖励金额
required int32 consumeGold = 5;//需要消费的金币数
}
message fireConfig{
required int32 multiple = 1;//炮倍-10000是炮倍配置
required string index1 = 2;//青铜需要的炮数
required string index2 = 3;//白银需要的炮数
required string index3 = 4;//黄金需要的炮数
}
//领取红包: 281
message getRedPacket{
}
message getRedPacketResult{
required int32 result = 1; // 1成功 0失败
required string message = 2;//失败原因
required string reward = 3;//获得金额
required float total = 4;//用户的红包总金额
required int32 userId = 5;//用户的id
}
//红包抽奖配置:282
message getRedPacketLotterConfig{
}
message getRedPacketLotterConfigResult{
required int32 result = 1; // 1成功 0失败
required string message = 2;//失败原因
repeated redPacketLotteryConfig cons = 3;//配置数据
}
message redPacketLotteryConfig{
required int32 id = 1;//序号
required int32 skillId = 2;//道具id
required string rewardName = 3;//奖励名称
required int32 rewardNum = 4;//奖励数量
}
//红包抽奖:283
message getRedPacketLottery{
required int32 type = 1;//抽奖类型 0-金币抽奖 1-红包抽奖
}
message getRedPacketLotteryResult{
required int32 result = 1; // 1成功 0失败
required string message = 2;//失败原因
required int32 type = 3;//抽奖类型 0-金币抽奖 1-红包抽奖
required int32 needCound = 4;//抽奖消耗
required string rewardName = 5;//物品名称
required string rewardNum = 6;//物品数量
required int32 skillId = 7;//道具id(红包抽奖的配置)
required int32 id = 8;//奖励序号
required string userGold = 9;//金币余额
required string userRedPacket = 10;//红包余额
required int32 lotteryCount = 11;//抽奖次数
}
//我的奖励:284
message getRedPacketLotteryRecord{
}
message getRedPacketLotteryRecordResult{
required int32 result = 1; // 1成功 0失败
required string message = 2;//失败原因
repeated redPacketLotteryRecord recoreds = 3;//中奖纪录
}
//中奖的用户:285
message getRedPacketLotteryUsers{
}
message getRedPacketLotteryUsersResult{
required int32 result = 1; // 1成功 0失败
required string message = 2;//失败原因
repeated redPacketLotteryRecord recoreds = 3;//中奖纪录
}
message redPacketLotteryRecord{
required int32 id = 1;//序号ID
required string userName = 2;//用户昵称
required int32 rewardId = 3;//物品id
required string rewardName = 4;//物品名称
required int32 rewardNum = 5;//数量
required string createTime = 6;//抽奖时间(时间戳)
}
//================================================
//招财金鱼-用户数据:290
message getGoldFishReward{
}
message getGoldFishRewardResult{
required int32 result = 1; // 1成功 0失败
required string message = 2;//失败原因
required int32 rewardId = 3;//物品id
required string rewardName = 4;//物品名称
required int32 rewardNum = 5;//数量
required string userFishGoldTime = 6;//下次领取时间(时间戳)
required string userGold = 7;//玩家现有的金币数量
}
//================================================
//商城配置:300
message getShopConfig{}
message getShopConfigResult{
required int32 result = 1; // 1成功 0失败
required string message = 2;//失败原因
repeated shopInfo info = 3;//配置信息
}
message shopInfo{
required int32 shop_id = 1;//商品id
required string shop_name = 2;//商品名称
required int32 shop_type = 3;//商品类型 1-金币 2-钻石 3-vip卡
required float shop_price = 4;//商品价格(单位:人民币)
required string packet_icon = 5;//商品图片地址
required string des = 6;//商品描述
required int32 is_del = 7;//是否删除 1-删除 0-正常
required int32 status = 8;//商品状态 1-无效 0-有效
repeated rewardInfo reward = 9;//商品包含的道具信息(含赠送,买几送几的意思)
repeated rewardInfo base_reward = 10;//商品包含的道具信息(不含赠送)
}
//发放商品
message rechargeComplete{
required int32 result = 1; // 1成功 0失败
required string message = 2;//失败原因
repeated shopInfo info = 3;//配置信息
}
//================================================
//分享任务配置:310
message getShareConfig{}
message getShareConfigResult{
required int32 result = 1; // 1成功 0失败
required string message = 2;//失败原因
repeated shareInfo info = 3;//配置信息
}
message shareInfo{
required int32 id = 1;//奖励id
required string des = 2;//奖励描述
required int32 type = 3; //奖励类型
required int32 num = 4; //奖励数量
}
//分享任务详情:311
message getShareDetail{
optional int32 page = 1; // 页码
optional int32 item_count = 2; // 条数
}
message getShareDetailResult{
required int32 result = 1; // 1成功 0失败
required string message = 2;//失败原因
required int32 sum = 3;//累计红包
repeated shareDetial detail = 4;//用户数据
}
message shareDetial{
required int32 user_id = 1;//用户id
required string user_name = 2;//用户id
required string head_url = 3;//用户头像
required string create_time = 4;//注册时间
required string status = 5;//奖任务状态 0-已领取 1-可领取 2-未完成 "0,0,0"
required string user_code = 6;//用户的user_code,取代原来的id来展示
}
//一键领取:312
message getShareReward{
repeated int32 idList = 1; //打算领取的奖励id列表
}
message getShareRewardResult{
required int32 result = 1; // 1成功 0失败
required string message = 2;//失败原因
repeated rewardInfo reward = 3;//奖励信息
}
//================================================
//核弹拆解:320
message getDisassemble{
required int32 fromSkillId = 1; // 道具Id
required int32 toSkillId = 2; // 道具Id
required int32 num = 3; // 核弹数量
}
message getDisassembleResult{
required int32 result = 1; // 1成功 0失败
required string message = 2;//失败原因
required rewardInfo reward = 3;//奖励信息
}
//核弹拆解配置信息:321
message getBombInfo{
}
message getBombInfoResult{
required int32 result = 1; // 1成功 0失败
required string message = 2;//失败原因
repeated bombInfo infos = 3;//配置信息
}
message bombInfo{
required int32 skillId = 1; //核弹的id
required int32 price = 2; //客户端通过这个来计算分解的数量 ---高价值的price % 低价值的price
}
//================================================
message roomInfo{//房间详情
required int32 id = 1;//id
required string bossName = 2;//boss名称
required int32 limitGoldMin = 3;//金币下限
required int32 limitGoldMax = 4;//金币上限
required string fireLevels = 5; //炮倍等级,一个字符串,比如:1-5-10,客户端自己拆分
}
//获取房间配置:330
message getRoomConfig{
}
message getRoomConfigResult{
required int32 result = 1; // 1成功 0失败
required string message = 2;//失败原因
repeated roomInfo rooms = 3;//奖励信息
}
//确认收货:340
message confirmReceiveSkill{
}
message confirmReceiveSkillResult{
required int32 result = 1; // 1成功 0失败
required string message = 2;//失败原因
}
//红包券兑换红包:350
message exchangeRedPacket{
required int32 shopId = 1; // 商品id
}
message exchangeRedPacketResult{
required int32 result = 1; // 1成功 0失败
required string message = 2;//失败原因
required float currentRedPacket = 3;//兑换操作结束后的红包券余额
required float exchangedRedPacket = 4;//兑换的红包数量
required string shopName = 5;//兑换的商品名称
required int32 can_exchange_count_today = 6;//今天还可以兑换红包券的次数
}
//红包券兑换金币:351
message exchangeGold{
required int32 shopId = 1; // 商品id
}
message exchangeGoldResult{
required int32 result = 1; // 1成功 0失败
required string message = 2;//失败原因
required float currentRedPacket = 3;//兑换操作结束后的红包券余额
required int32 currentGold = 4;//兑换操作结束后的金币余额
required int32 exchangedGold = 5;//兑换的金币数量
required string shopName = 6;//兑换的商品名称
required int32 can_exchange_count_today = 7;//今天还可以兑换红包券的次数
}
//未绑定微信红包券兑换红包:352
message exchangeRedPacketWithoutWeixin{
required int32 shopId = 1; // 商品id
}
message exchangeRedPacketWithoutWeixinResult{
required int32 result = 1; // 1成功 0失败
required string message = 2;//失败原因
required float currentRedPacket = 3;//兑换操作结束后的红包券余额
required float exchangedRedPacket = 4;//兑换的红包数量
required string shopName = 5;//兑换的商品名称
required int32 can_exchange_count_today = 6;//今天还可以兑换红包券的次数
required string exchangeCode = 7;//兑换码
}
//红包兑换记录:353
message exchangeRedPacketList{
}
message exchangeRedPacketListResult{
required int32 result = 1; // 1成功 0失败
required string message = 2;//失败原因
repeated exchangeRedPacketItem items = 3;//兑换记录
}
message exchangeRedPacketItem{
required int32 id = 1; // 索引
required int32 shop_id = 2; // 商品id
required string shop_name = 3; // 商品名
optional string exchange_code = 4; // 兑换码
required int32 is_received = 5; // 是否领取 0:未领取,1:已领取
required string create_time = 6;//兑换时间
}
//红包券兑换话费券:355
message ExchangePhoneFeeIM{
required int32 shopId = 1; // 商品id
required string phone = 2; // 手机号
}
message ExchangePhoneFeeOM{
required int32 result = 1; // 1成功 0失败
required string message = 2;//失败原因
required float currentRedPacket = 3;//兑换操作结束后的红包券余额
required float exchangedRedPacket = 4;//兑换的红包数量
required string shopName = 5;//兑换的商品名称
required int32 can_exchange_count_today = 6;//今天还可以兑换红包券的次数
}
//红包券兑换话费券历史记录:356
message ExchangePhoneFeeListIM{
required int32 pageSize = 1; // 每页数据数量,如果pageSize == 0 && pageIndex == 0,表示获取全部数据
required int32 pageIndex = 2; // 第几页,从0开始,如果pageSize == 0 && pageIndex == 0,表示获取全部数据
}
message ExchangePhoneFeeListOM{
required int32 result = 1; // 1成功 0失败
required string message = 2;//失败原因
repeated ExchangePhoneFeeListOMItem items = 3; //兑换列表
}
message ExchangePhoneFeeListOMItem{
required int32 id = 1; // 索引
required int32 shop_id = 2; // 商品id
required string shop_name = 3; // 商品名
required int32 status = 4; // 状态,0:待处理,1:处理中,2:已完成
required string create_time = 5;//兑换时间,时间戳
}
//================================================
//活动配置:360
message getActivityConfig{
optional int32 activity_id = 1; // 活动id
}
message getActivityConfigResult{
required int32 result = 1; // 1成功 0失败
required string message = 2;//失败原因
repeated activityConfig configs = 3;//活动配置
}
message activityConfig{
required int32 id = 1; // 索引
required int32 activity_id = 2; // 活动id
required string activity_name = 3;//活动名称
required int32 on_off = 4;//活动开关
required string start_time = 5;//活动开启时间(时间戳)
required string end_time = 6;//活动结束时间(时间戳)
}
//活动配置:361
message ActivityListIM{}
message ActivityListOM{
required int32 result = 1; // 1成功 0失败
required string message = 2;//失败原因
repeated ActivityOM activityList = 3;//活动配置
}
message ActivityOM{
required int32 id = 1; // 索引
required string title = 2;//标题
required string description = 3;//活动内容
required int32 type = 4;//活动类型 1:游戏跳转 2:web跳转
required string img_url = 5;//活动图片地址
required string web_url = 6;//web链接
required int32 game_url = 7;//游戏链接
required int32 status = 8;//状态 1开 0关
required int32 weight = 9;//权重
}
//公告配置:362
message AnnouncementListIM{}
message AnnouncementListOM{
required int32 result = 1; // 1成功 0失败
required string message = 2;//失败原因
repeated AnnouncementOM announcementList = 3;//活动配置
}
message AnnouncementOM{
required int32 id = 1; // 索引
required string title = 2;//标题
required string content = 3;//公告内容
required int32 status = 4;//状态 1开 0关
required int32 weight = 5;//权重
}
//开关配置:363
message ChannelSwitchIM{}
message ChannelSwitchOM{
required int32 result = 1; // 1成功 0失败
required string message = 2;//失败原因
required string switchinfo = 3;//开关配置信息
required int32 channelId = 4;//渠道id
}
//================================================
//奖金鱼配置:370
message getFishConfig{}
message getFishConfigResult{
required int32 result = 1; // 1成功 0失败
required string message = 2;//失败原因
repeated fishConfigInfo configs = 3;//活动配置
}
message fishConfigInfo{
required string fish_type = 1; //a1
required string fish_name = 2; //鱼的名称
required int32 is_reward_fish = 3; //0-不是 1-是
required int32 multiple = 4; //奖金鱼倍数
}
// 改名:380
message rename{
required string newUserName = 1; //新的用户名
}
message renameResult{
required int32 result = 1; // 1成功 0失败
required string message = 2;// 失败原因
required string newUserName = 3; // 新的用户名
}
// 改名配置:381
message renameConfig{
}
message renameConfigResult{
required int32 totalNum = 1; // 总共可修改次数
required int32 needGold = 2; //需要的金币
}
//绑定手机号奖励 382
message BindMobileConfigIM{
}
message BindMobileConfigOM{
required int32 rewardGold = 1; // 绑定手机号奖励
}
//绑定手机号 383
message BindMobileIM{
required string mobile = 1; // 手机号
required string code = 2; // 验证码
}
message BindMobileOM{
required int32 result = 1; // 1成功 0失败
required string message = 2; // 失败原因
required int64 rewardGold = 3;//绑定成功奖励
}
// 体验场状态:390
message TestStatusIM{
}
message TestStatusOM{
required int32 result = 1; // 1成功 0失败
required string message = 2;// 失败原因
required int32 testedCount = 3; // 已体验的次数
required int32 totalCount = 4; // 总共可体验次数
required int32 testedTime = 5; // 本次已体验时间,单位秒
required int32 totalTime = 6; // 本次共可体验时间,单位秒
required int32 special_pack_bought = 7; // 今天是否已经购买过特惠礼包,1:已购买,0:未购买
required int32 fly_pack_bought = 8; // 是否已经购买过空降礼包,1:已购买,0:未购买
required int32 exp_to_show_fly = 9; // 炮倍得到的经验值达到此值将弹出空降礼包
required int32 second_to_show_fly = 10; // 在体验场玩够这么多秒将弹出空降礼包
required int32 fly_show_time_in_second = 11; // 空降礼包展示的时间
}
//从房间踢出玩家 391
message KickRoomOM{
required int32 result = 1; // 1成功 0失败
required string message = 2;// 失败原因
required int32 reasonType = 3;//踢出理由类型
required string reasonMessage = 4;//踢出理由字符串
}
//玩家是否领取过红包:400
message HasGotRedPacketIM{
}
message HasGotRedPacketOM{
required int32 result = 1; // 1成功 0失败
required string message = 2;// 失败原因
required int32 hasGot = 3;//是否领取过红包,1:领取过,0:没有领取过
}
//获取累计赢金任务状态 410
message GetWinGoldMissionConfigIM{
}
message GetWinGoldMissionConfigOM{
required int32 result = 1; // 1成功 0失败
required string message = 2;// 失败原因
required int64 isOn = 3;//是否开启,1:已开启,0:未开启
repeated GetWinGoldMissionConfigOMItem items = 4; // 每个任务的配置,如果isOn = 0,这个列表没有意义
}
message GetWinGoldMissionConfigOMItem{
required int32 id = 1; // 对应在t_win_gold_mission_config里面的id,客户端领取任务奖励的时候要传递这个id
required string info = 2;// 名称,比如:经典模式累计赢取N万金币
required int64 gold = 3; // 需要累计赢取的金币
required int32 reward_type = 4; // 奖品类型,比如:10201
required float reward_num = 5; // 奖品数量
}
//获取累计赢金任务状态 411
message GetWinGoldMissionStatusIM{
}
message GetWinGoldMissionStatusOM{
required int32 result = 1; // 1成功 0失败
required string message = 2;// 失败原因
required int64 winGoldToday = 3;//今天已经赢取的金币
repeated GetWinGoldMissionStatusOMItem items = 4; // 每个任务的状态,如果isOn = 0,这个列表没有意义
}
message GetWinGoldMissionStatusOMItem{
required int32 mission_id = 1; // 对应在t_win_gold_mission_config里面的id,客户端领取任务奖励的时候要传递这个id
required int32 status = 2; // 状态,0:未完成,1:已完成未领取,2:已领取
}
//获取累计赢金任务奖励 412
message GetWInGoldMissionRewardIM{
required int32 mission_id = 1;
}
message GetWInGoldMissionRewardOM{
required int32 result = 1; // 1成功 0失败
required string message = 2;// 失败原因
required int32 mission_id = 3;// 对应在t_win_gold_mission_config里面的id,客户端领取任务奖励的时候要传递这个id
required int32 reward_type = 4; // 奖品类型,比如:10201
required float reward_num = 5; // 奖品数量
}
//获取累计赢金任务进度 413
message GetWinGoldMissionProgressIM{
}
message GetWinGoldMissionProgressOM{
required int32 result = 1; // 1成功 0失败
required string message = 2;// 失败原因
required int64 winGoldToday = 3;//今天已经赢取的金币
}
//获取一本万利配置 414
message HighlyProfitableConfigListIM{
}
message HighlyProfitableConfigListOM{
required int32 result = 1; // 1成功 0失败
required string message = 2;// 失败原因
repeated HighlyProfitableConfigOM highlyProfitableConfigs = 3;//一本万利配置
required string ruleContent = 4; // 活动规则
}
message HighlyProfitableConfigOM{
required int32 id = 1; // 索引
required int32 mission_level = 2; // 任务等级
required int32 mission_id = 3; // 任务id
required string name = 4;//名称
required string description = 5;//描述
required string img_url = 6;//图片url
required int64 target_num = 7; // 目标
required int32 reward_type = 8; // 奖励类型
required float reward_num = 9; // 奖励数量
}
//获取一本万利详情 415
message HighlyProfitableDetailListIM{
}
message HighlyProfitableDetailListOM{
required int32 result = 1; // 1成功 0失败
required string message = 2;// 失败原因
required shopInfo info = 3;//购买礼包信息
required int32 isBuyed = 4; // 是否购买
required int64 winGold = 5; // 已赢取的金币
required int32 current_level = 6; // 当前等级
repeated HighlyProfitableDetailOM highlyProfitableDetails = 7;//一本万利配置
}
message HighlyProfitableDetailOM{
required int32 id = 1; // 索引
required int32 mission_id = 2; // 任务id
required int32 status = 3; // 状态,0:未完成,1:已完成未领取,2:已领取
}
//获取累计赢金任务奖励 416
message GetHighlyProfitableRewardIM{
required int32 mission_id = 1;
}
message GetHighlyProfitableRewardOM{
required int32 result = 1; // 1成功 0失败
required string message = 2;// 失败原因
required int32 mission_id = 3;// 对应在HighlyProfitableConfig里面的任务id,客户端领取任务奖励的时候要传递这个id
required int32 reward_type = 4; // 奖品类型,比如:10201
required float reward_num = 5; // 奖品数量
}
//获取获取h5活动数据 417
message H5BridgeIM{
required string param = 1; //参数(json格式)
}
message H5BridgeOM{
required int32 result = 1; // 1成功 0失败
required string message = 2; // 失败原因
required string data = 3; // 成功返回json数据
}
//签到转盘配置420
message SignLotteryConfigIM{
}
message SignLotteryConfigOM{
required int32 result = 1; // 1成功 0失败
required string message = 2; // 失败原因
repeated SignLotteryConfigOMItem items = 3; //奖励列表
}
message SignLotteryConfigOMItem{
required string reward_name = 1;// 奖励名称,比如:1枚铂金核弹
required int32 reward_type = 2;// 奖励类型,也就是道具id
required float reward_num = 3;// 奖励数量,对于红包券,单位是:元,其余的单位是:个
optional int32 indays = 4;// 有效期,为空表示永久有效
}
//获取我的签到状态421
message SignLotteryDetailIM{
}
message SignLotteryDetailOM{
required int32 result = 1; // 1成功 0失败
required string message = 2; // 失败原因
required int32 canSignToday = 3; //今天是否能签到,1:今天可以签到,2:今天不可以签到
}
//获取我的签到状态422
message GetSignLotteryRewardIM{
}
message GetSignLotteryRewardOM{
required int32 result = 1; // 1成功 0失败
required string message = 2; // 失败原因
required int32 idx = 3; // 奖励序号,从0开始,客户端用这个确定中哪个奖
}
//积分赛奖励信息 430
message IntegralRankRewardConfigListIM{
}
message IntegralRankRewardConfigListOM{
required int32 result = 1; // 1成功 0失败
required string message = 2; // 失败原因
repeated IntegralRankRewardConfigItemOM items = 3; //奖励列表
}
message IntegralRankRewardConfigItemOM{
required int32 id = 1;// 奖励id,客户端用这个确定中哪个奖
required int32 start_rank = 2;// 开始排名
required int32 end_rank = 3;// 结束排名
required int32 reward_type = 4;// 奖励类型,也就是道具id
required int64 reward_num = 5;// 奖励数量
}
//积分赛排名信息 431
message IntegralRankListIM{
}
message IntegralRankListOM{
required int32 result = 1; // 1成功 0失败
required string message = 2; // 失败原因
repeated IntegralRankItemOM rankItems = 3; //排名列表
}
message IntegralRankItemOM{
required int32 id = 1;// 排名id
required int32 user_id = 2;// 用户id
required string user_name = 3;// 用户名
required int32 rank = 4;// 排名
required int64 num = 5;//积分
optional string head_url = 6;//头像
optional int32 hit_fish_num = 7;//打中鱼条数
}
//积分赛获奖记录 432
message IntegralRankRewardLogListIM{
}
message IntegralRankRewardLogListOM{
required int32 result = 1; // 1成功 0失败
required string message = 2; // 失败原因
repeated IntegralRankRewardLogOM items = 3; //获得的奖励列表
}
message IntegralRankRewardLogOM{
required int32 id = 1;// 邮件id
required int32 is_receive = 2;// 是否领取 1:已领取,0:未领取
required string createTime = 3;//发奖时间
required int32 reward_type = 4;// 奖励类型,也就是道具id
required int64 reward_num = 5;// 奖励数量
}
//我的积分排名情况 433
message MyIntegerRankInfoIM{
}
message MyIntegerRankInfoOM{
required int32 result = 1; // 1成功 0失败
required string message = 2; // 失败原因
required IntegralRankItemOM myItem = 3; //我的积分排名情况
optional int32 min_integral_rank_fish = 4;//最少上榜鱼条数
required int32 period = 5;// 期数
}
//登录时的图片小贴士 440
message LoginTipsIM{
}
message LoginTipsOM{
required int32 result = 1; // 1成功 0失败
required string message = 2; // 失败原因
repeated string tips = 3;//url列表,是一个字符串数组,为空数组的话,表示没有任何tips
}
//================================================
//系统通知:1000
message systemNotice{