上传协议更新
This commit is contained in:
parent
8184c90396
commit
bc53964894
@ -412,6 +412,10 @@ var $root = ($protobuf.roots["default"] || ($protobuf.roots["default"] = new $pr
|
|||||||
StateInvalid: 20,
|
StateInvalid: 20,
|
||||||
DBError: 21,
|
DBError: 21,
|
||||||
SystemError: 22,
|
SystemError: 22,
|
||||||
|
DecodeError: 23,
|
||||||
|
TimestampTimeout: 24,
|
||||||
|
PbError: 25,
|
||||||
|
AgentUidEmpty: 26,
|
||||||
Exception: 100,
|
Exception: 100,
|
||||||
Unknown: 101,
|
Unknown: 101,
|
||||||
ResNoEnough: 102,
|
ResNoEnough: 102,
|
||||||
@ -423,12 +427,12 @@ var $root = ($protobuf.roots["default"] || ($protobuf.roots["default"] = new $pr
|
|||||||
GoldNoEnough: 1003,
|
GoldNoEnough: 1003,
|
||||||
DiamondNoEnough: 1004,
|
DiamondNoEnough: 1004,
|
||||||
RoleCreated: 1005,
|
RoleCreated: 1005,
|
||||||
NameExist: 1006,
|
UserNickNameExist: 1006,
|
||||||
VeriCodeNoValid: 1007,
|
VeriCodeNoValid: 1007,
|
||||||
VeriCodeExpired: 1008,
|
VeriCodeExpired: 1008,
|
||||||
UserResetData: 1009,
|
UserResetData: 1009,
|
||||||
ModifynameCount: 1010,
|
UserModiNameCount: 1010,
|
||||||
MailErr: 1011,
|
UserNickNameEmpty: 1011,
|
||||||
FriendNotSelf: 1100,
|
FriendNotSelf: 1100,
|
||||||
FriendSelfMax: 1101,
|
FriendSelfMax: 1101,
|
||||||
FriendTargetMax: 1102,
|
FriendTargetMax: 1102,
|
||||||
@ -471,6 +475,7 @@ var $root = ($protobuf.roots["default"] || ($protobuf.roots["default"] = new $pr
|
|||||||
DrawCardTypeNotFound: 1322,
|
DrawCardTypeNotFound: 1322,
|
||||||
EquipmentOnFoundEquipment: 1400,
|
EquipmentOnFoundEquipment: 1400,
|
||||||
EquipmentLvlimitReached: 1401,
|
EquipmentLvlimitReached: 1401,
|
||||||
|
EquipmentIsWorn: 1402,
|
||||||
MainlineNotFindChapter: 1500,
|
MainlineNotFindChapter: 1500,
|
||||||
MainlineIDFailed: 1501,
|
MainlineIDFailed: 1501,
|
||||||
MainlineNotFound: 1502,
|
MainlineNotFound: 1502,
|
||||||
@ -486,8 +491,11 @@ var $root = ($protobuf.roots["default"] || ($protobuf.roots["default"] = new $pr
|
|||||||
TaskActiveNoenough: 1606,
|
TaskActiveNoenough: 1606,
|
||||||
TaskNoFinished: 1607,
|
TaskNoFinished: 1607,
|
||||||
TaskFinished: 1608,
|
TaskFinished: 1608,
|
||||||
|
TaskTagEmpty: 1609,
|
||||||
|
TaskIdEmpty: 1610,
|
||||||
ShopGoodsIsSoldOut: 1700,
|
ShopGoodsIsSoldOut: 1700,
|
||||||
ShopNoSurplusRefreshNum: 1701
|
ShopNoSurplusRefreshNum: 1701,
|
||||||
|
MailErr: 1800
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
google: {
|
google: {
|
||||||
@ -924,6 +932,22 @@ var $root = ($protobuf.roots["default"] || ($protobuf.roots["default"] = new $pr
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
GMCmdReq: {
|
||||||
|
fields: {
|
||||||
|
Cmod: {
|
||||||
|
type: "string",
|
||||||
|
id: 1
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
GMCmdResp: {
|
||||||
|
fields: {
|
||||||
|
IsSucc: {
|
||||||
|
type: "bool",
|
||||||
|
id: 1
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
SkillData: {
|
SkillData: {
|
||||||
fields: {
|
fields: {
|
||||||
skillID: {
|
skillID: {
|
||||||
@ -1435,6 +1459,10 @@ var $root = ($protobuf.roots["default"] || ($protobuf.roots["default"] = new $pr
|
|||||||
Amount: {
|
Amount: {
|
||||||
type: "uint32",
|
type: "uint32",
|
||||||
id: 2
|
id: 2
|
||||||
|
},
|
||||||
|
Select: {
|
||||||
|
type: "int32",
|
||||||
|
id: 3
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
@ -2523,6 +2551,22 @@ var $root = ($protobuf.roots["default"] || ($protobuf.roots["default"] = new $pr
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
UserModifysignReq: {
|
||||||
|
fields: {
|
||||||
|
sign: {
|
||||||
|
type: "string",
|
||||||
|
id: 1
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
UserModifysignResp: {
|
||||||
|
fields: {
|
||||||
|
uid: {
|
||||||
|
type: "string",
|
||||||
|
id: 1
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
Hair: {
|
Hair: {
|
||||||
fields: {
|
fields: {
|
||||||
resId: {
|
resId: {
|
||||||
@ -2642,6 +2686,18 @@ var $root = ($protobuf.roots["default"] || ($protobuf.roots["default"] = new $pr
|
|||||||
keyType: "int32",
|
keyType: "int32",
|
||||||
type: "Figure",
|
type: "Figure",
|
||||||
id: 10
|
id: 10
|
||||||
|
},
|
||||||
|
activeday: {
|
||||||
|
type: "int32",
|
||||||
|
id: 11
|
||||||
|
},
|
||||||
|
activeweek: {
|
||||||
|
type: "int32",
|
||||||
|
id: 12
|
||||||
|
},
|
||||||
|
sign: {
|
||||||
|
type: "string",
|
||||||
|
id: 13
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
@ -3,68 +3,49 @@ option go_package = ".;pb";
|
|||||||
import "chat_db.proto";
|
import "chat_db.proto";
|
||||||
|
|
||||||
//聊天消息推送
|
//聊天消息推送
|
||||||
message ChatMessagePush{
|
message ChatMessagePush { DBChat chat = 1; }
|
||||||
DBChat chat = 1;
|
|
||||||
}
|
|
||||||
|
|
||||||
//申请跨服频道号
|
//申请跨服频道号
|
||||||
message ChatCrossChannelReq {
|
message ChatCrossChannelReq {}
|
||||||
|
|
||||||
}
|
|
||||||
//申请跨服频道号 回应
|
//申请跨服频道号 回应
|
||||||
message ChatCrossChannelResp {
|
message ChatCrossChannelResp { int32 channelId = 1; }
|
||||||
int32 channelId = 1;
|
|
||||||
}
|
|
||||||
|
|
||||||
//申请切换频道
|
//申请切换频道
|
||||||
message ChatChanageChannelReq {
|
message ChatChanageChannelReq { int32 channelId = 1; }
|
||||||
int32 channelId = 1;
|
|
||||||
}
|
|
||||||
//申请切换频道 回应
|
//申请切换频道 回应
|
||||||
message ChatChanageChannelResp {
|
message ChatChanageChannelResp {
|
||||||
int32 channelId = 1;
|
int32 channelId = 1;
|
||||||
bool isSucc = 2;
|
bool isSucc = 2;
|
||||||
}
|
}
|
||||||
|
|
||||||
//请求聊天消息
|
//请求聊天消息
|
||||||
message ChatGetListReq {
|
message ChatGetListReq {
|
||||||
ChatChannel channel = 1; //频道
|
ChatChannel channel = 1; //频道
|
||||||
}
|
}
|
||||||
//请求聊天消息 回应
|
//请求聊天消息 回应
|
||||||
message ChatGetListResp {
|
message ChatGetListResp { repeated DBChat chats = 1; }
|
||||||
repeated DBChat chats = 1;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
//请求跨服聊天消息
|
//请求跨服聊天消息
|
||||||
message ChatSpanGetListReq {
|
message ChatSpanGetListReq {
|
||||||
ChatChannel channel = 1; //频道
|
ChatChannel channel = 1; //频道
|
||||||
int32 channelId = 2; //跨服频道id
|
int32 channelId = 2; //跨服频道id
|
||||||
}
|
}
|
||||||
//请求跨服聊天消息 回应
|
//请求跨服聊天消息 回应
|
||||||
message ChatSpanGetListResp {
|
message ChatSpanGetListResp { repeated DBChat chats = 1; }
|
||||||
repeated DBChat chats = 1;
|
|
||||||
}
|
|
||||||
|
|
||||||
//消息发送请求
|
//消息发送请求
|
||||||
message ChatSendReq {
|
message ChatSendReq {
|
||||||
ChatChannel channel = 1; //频道
|
ChatChannel channel = 1; //频道
|
||||||
string targetId = 2; //目标用户id
|
string targetId = 2; //目标用户id
|
||||||
string content = 3; //内容
|
string content = 3; //内容
|
||||||
}
|
}
|
||||||
//消息发送请求 回应
|
//消息发送请求 回应
|
||||||
message ChatSendResp {
|
message ChatSendResp {}
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
//跨服消息发送请求
|
//跨服消息发送请求
|
||||||
message ChatSpanSendReq {
|
message ChatSpanSendReq {
|
||||||
ChatChannel channel = 1; //频道
|
ChatChannel channel = 1; //频道
|
||||||
string content = 2; //内容
|
string content = 2; //内容
|
||||||
}
|
}
|
||||||
//跨服消息发送请求 回应
|
//跨服消息发送请求 回应
|
||||||
message ChatSpanSendResp {
|
message ChatSpanSendResp {}
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
|
@ -3,37 +3,36 @@ option go_package = ".;pb";
|
|||||||
import "equipment_db.proto";
|
import "equipment_db.proto";
|
||||||
|
|
||||||
//获取装备列表请求
|
//获取装备列表请求
|
||||||
message EquipmentGetListReq {
|
message EquipmentGetListReq {}
|
||||||
|
|
||||||
}
|
|
||||||
//获取装备列表请求 回应
|
//获取装备列表请求 回应
|
||||||
message EquipmentGetListResp {
|
message EquipmentGetListResp {
|
||||||
repeated DB_Equipment Equipments = 1; //装备列表
|
repeated DB_Equipment Equipments = 1; //装备列表
|
||||||
}
|
}
|
||||||
|
|
||||||
//推送装备背包变化
|
//推送装备背包变化
|
||||||
message EquipmentChangePush {
|
message EquipmentChangePush {
|
||||||
repeated DB_Equipment Equipments = 1; //装备列表
|
repeated DB_Equipment Equipments = 1; //装备列表
|
||||||
}
|
}
|
||||||
|
|
||||||
//装备挂在到英雄上
|
//装备挂在到英雄上
|
||||||
message EquipmentEquipReq{
|
message EquipmentEquipReq {
|
||||||
string HeroCardId = 1; //英雄卡Id
|
string HeroCardId = 1; //英雄卡Id
|
||||||
repeated string EquipmentId = 2; //装备Id 固定长度的数组 0-5 对应的装备栏
|
repeated string EquipmentId = 2; //装备Id 固定长度的数组 0-5 对应的装备栏
|
||||||
}
|
}
|
||||||
|
|
||||||
//装备挂在到英雄上 回应
|
//装备挂在到英雄上 回应
|
||||||
message EquipmentEquipResp{
|
message EquipmentEquipResp {
|
||||||
repeated DB_Equipment Equipments = 1; //挂在装备列表
|
repeated DB_Equipment Equipments = 1; //挂在装备列表
|
||||||
}
|
}
|
||||||
|
|
||||||
//装备升级
|
//装备升级
|
||||||
message EquipmentUpgradeReq{
|
message EquipmentUpgradeReq {
|
||||||
string EquipmentId = 1; //装备Id
|
string EquipmentId = 1; //装备Id
|
||||||
}
|
}
|
||||||
|
|
||||||
//装备升级 回应
|
//装备升级 回应
|
||||||
message EquipmentUpgradeResp{
|
message EquipmentUpgradeResp {
|
||||||
bool IsSucc = 1;
|
bool IsSucc = 1;
|
||||||
repeated DB_Equipment Equipment = 2; //由于装备可以叠加 升级后会创建一个新的装备出来 所以可能影响两个装备
|
repeated DB_Equipment Equipment =
|
||||||
|
2; //由于装备可以叠加 升级后会创建一个新的装备出来 所以可能影响两个装备
|
||||||
}
|
}
|
@ -9,13 +9,17 @@ enum ErrorCode {
|
|||||||
CacheReadError = 13; //缓存读取失败
|
CacheReadError = 13; //缓存读取失败
|
||||||
SqlExecutionError = 14; //数据库执行错误
|
SqlExecutionError = 14; //数据库执行错误
|
||||||
ReqParameterError = 15; //请求参数错误
|
ReqParameterError = 15; //请求参数错误
|
||||||
SignError = 16; //签名错误
|
SignError = 16; //签名串错误
|
||||||
InsufficientPermissions = 17; //权限不足
|
InsufficientPermissions = 17; //权限不足
|
||||||
NoLogin = 18; //未登录
|
NoLogin = 18; //未登录
|
||||||
UserSessionNobeing = 19; //用户不存在
|
UserSessionNobeing = 19; //用户不存在
|
||||||
StateInvalid = 20; //无效状态
|
StateInvalid = 20; //无效状态
|
||||||
DBError = 21; //数据库操作失败
|
DBError = 21; //数据库操作失败
|
||||||
SystemError = 22; //通用错误
|
SystemError = 22; //通用错误
|
||||||
|
DecodeError = 23; //加密串解码错误
|
||||||
|
TimestampTimeout = 24; //加密串时间戳超时
|
||||||
|
PbError = 25; // pb错误
|
||||||
|
AgentUidEmpty = 26; // AgentUid空
|
||||||
Exception = 100; //程序执行异常
|
Exception = 100; //程序执行异常
|
||||||
Unknown = 101; //未知错误
|
Unknown = 101; //未知错误
|
||||||
ResNoEnough = 102; //资源不足
|
ResNoEnough = 102; //资源不足
|
||||||
@ -23,18 +27,18 @@ enum ErrorCode {
|
|||||||
ConfigNoFound = 104; //配置未找到
|
ConfigNoFound = 104; //配置未找到
|
||||||
|
|
||||||
// user
|
// user
|
||||||
SecKeyInvalid = 1000; //秘钥无效
|
SecKeyInvalid = 1000; //秘钥无效
|
||||||
SecKey = 1001; //秘钥格式错误
|
SecKey = 1001; //秘钥格式错误
|
||||||
BindUser = 1002; //用户绑定错误
|
BindUser = 1002; //用户绑定错误
|
||||||
GoldNoEnough = 1003; // 金币不足
|
GoldNoEnough = 1003; // 金币不足
|
||||||
DiamondNoEnough = 1004; // 钻石不足
|
DiamondNoEnough = 1004; // 钻石不足
|
||||||
RoleCreated = 1005; //已创角
|
RoleCreated = 1005; //已创角
|
||||||
NameExist = 1006; //昵称已存在
|
UserNickNameExist = 1006; //昵称已存在
|
||||||
VeriCodeNoValid = 1007; //验证码无效
|
VeriCodeNoValid = 1007; //验证码无效
|
||||||
VeriCodeExpired = 1008; //验证码过期
|
VeriCodeExpired = 1008; //验证码过期
|
||||||
UserResetData = 1009; //初始化用户失败
|
UserResetData = 1009; //初始化用户失败
|
||||||
ModifynameCount = 1010; //名称修改次数不足
|
UserModiNameCount = 1010; //名称修改次数不足
|
||||||
MailErr = 1011; // 邮件不存在
|
UserNickNameEmpty = 1011; //昵称空
|
||||||
|
|
||||||
// friend
|
// friend
|
||||||
FriendNotSelf = 1100; //不能是自己
|
FriendNotSelf = 1100; //不能是自己
|
||||||
@ -58,39 +62,41 @@ enum ErrorCode {
|
|||||||
ItemsUseNotSupported = 1204; //暂不支持使用
|
ItemsUseNotSupported = 1204; //暂不支持使用
|
||||||
|
|
||||||
// hero
|
// hero
|
||||||
HeroNoExist = 1300; //英雄不存在
|
HeroNoExist = 1300; //英雄不存在
|
||||||
HeroNoEnough = 1301; //英雄数量不足
|
HeroNoEnough = 1301; //英雄数量不足
|
||||||
HeroMaxLv = 1302; //英雄达到最大等级
|
HeroMaxLv = 1302; //英雄达到最大等级
|
||||||
HeroInitCreat = 1303; //初始化英雄
|
HeroInitCreat = 1303; //初始化英雄
|
||||||
HeroColorErr = 1304; // 品质不匹配
|
HeroColorErr = 1304; // 品质不匹配
|
||||||
HeroSkillUpErr = 1305; // 技能升级失败
|
HeroSkillUpErr = 1305; // 技能升级失败
|
||||||
HeroMaxResonate = 1306; // 达到最大共鸣次数
|
HeroMaxResonate = 1306; // 达到最大共鸣次数
|
||||||
HeroNoResonate = 1307; // 没有共鸣
|
HeroNoResonate = 1307; // 没有共鸣
|
||||||
HeroNotNeedResonate = 1308; // 不需要重置共鸣
|
HeroNotNeedResonate = 1308; // 不需要重置共鸣
|
||||||
HeroNoEnergy = 1309; // 没有能量点数
|
HeroNoEnergy = 1309; // 没有能量点数
|
||||||
HeroCreate = 1310; // 创建卡失败
|
HeroCreate = 1310; // 创建卡失败
|
||||||
HeroEquipUpdate = 1311; // 更新装备失败
|
HeroEquipUpdate = 1311; // 更新装备失败
|
||||||
HeroMaxAwaken = 1312; // 达到最大觉醒等级
|
HeroMaxAwaken = 1312; // 达到最大觉醒等级
|
||||||
HeroIsLock = 1313; // 英雄被锁定不能被消耗
|
HeroIsLock = 1313; // 英雄被锁定不能被消耗
|
||||||
HeroMaxCount = 1314; // 英雄达到最大数量
|
HeroMaxCount = 1314; // 英雄达到最大数量
|
||||||
HeroCostTypeErr = 1315; // 消耗英雄参数不匹配
|
HeroCostTypeErr = 1315; // 消耗英雄参数不匹配
|
||||||
HeroStarErr = 1316; // 不满足升星条件
|
HeroStarErr = 1316; // 不满足升星条件
|
||||||
HeroTypeErr = 1317; // 升级英雄类型不对
|
HeroTypeErr = 1317; // 升级英雄类型不对
|
||||||
HeroExpTypeErr = 1318; // 技能升级卡类型不对
|
HeroExpTypeErr = 1318; // 技能升级卡类型不对
|
||||||
HeroAddMaxExp = 1319; // 升级经验卡溢出 检查传入的数量
|
HeroAddMaxExp = 1319; // 升级经验卡溢出 检查传入的数量
|
||||||
HeroStarLvErr = 1320; // 升星等级不够
|
HeroStarLvErr = 1320; // 升星等级不够
|
||||||
HeroMaxStarLv = 1321; // 达到最大升星等级
|
HeroMaxStarLv = 1321; // 达到最大升星等级
|
||||||
DrawCardTypeNotFound = 1322; // 抽卡类型不匹配
|
DrawCardTypeNotFound = 1322; // 抽卡类型不匹配
|
||||||
|
|
||||||
// equipment
|
// equipment
|
||||||
EquipmentOnFoundEquipment = 1400; // 未找到武器
|
EquipmentOnFoundEquipment = 1400; // 未找到武器
|
||||||
EquipmentLvlimitReached = 1401; // 武器等级已达上限
|
EquipmentLvlimitReached = 1401; // 武器等级已达上限
|
||||||
|
EquipmentIsWorn = 1402; // 武器已经穿戴
|
||||||
|
|
||||||
// mainMainline
|
// mainMainline
|
||||||
MainlineNotFindChapter = 1500; // 没有找到主线关卡信息
|
MainlineNotFindChapter = 1500; // 没有找到主线关卡信息
|
||||||
MainlineIDFailed = 1501; // 关卡ID 错误
|
MainlineIDFailed = 1501; // 关卡ID 错误
|
||||||
MainlineNotFound = 1502; // 主线关卡不存在
|
MainlineNotFound = 1502; // 主线关卡不存在
|
||||||
MainlinePreNotFound = 1503; // 前置关卡不匹配
|
MainlinePreNotFound = 1503; // 前置关卡不匹配
|
||||||
MainlineRepeatReward = 1504; // 重复领奖
|
MainlineRepeatReward = 1504; // 重复领奖
|
||||||
MainlineCompleteReward = 1505; // 通关才能领奖
|
MainlineCompleteReward = 1505; // 通关才能领奖
|
||||||
|
|
||||||
// task
|
// task
|
||||||
@ -103,8 +109,12 @@ enum ErrorCode {
|
|||||||
TaskActiveNoenough = 1606; //活跃值未达标
|
TaskActiveNoenough = 1606; //活跃值未达标
|
||||||
TaskNoFinished = 1607; //任务未完成
|
TaskNoFinished = 1607; //任务未完成
|
||||||
TaskFinished = 1608; //已完成
|
TaskFinished = 1608; //已完成
|
||||||
|
TaskTagEmpty = 1609; //任务类型空
|
||||||
|
TaskIdEmpty = 1610; //任务ID空
|
||||||
|
|
||||||
// shop
|
// shop
|
||||||
ShopGoodsIsSoldOut = 1700; //商品已售罄
|
ShopGoodsIsSoldOut = 1700; //商品已售罄
|
||||||
ShopNoSurplusRefreshNum = 1701; //剩余刷新次数已用完
|
ShopNoSurplusRefreshNum = 1701; //剩余刷新次数已用完
|
||||||
|
// mail
|
||||||
|
MailErr = 1800; // 邮件不存在
|
||||||
}
|
}
|
11
src/pb/proto/gm_msg.proto
Normal file
11
src/pb/proto/gm_msg.proto
Normal file
@ -0,0 +1,11 @@
|
|||||||
|
syntax = "proto3";
|
||||||
|
option go_package = ".;pb";
|
||||||
|
|
||||||
|
///gm 命令请求
|
||||||
|
message GMCmdReq {
|
||||||
|
string Cmod = 1;
|
||||||
|
}
|
||||||
|
///gm 命令请求 回应
|
||||||
|
message GMCmdResp {
|
||||||
|
bool IsSucc = 1;
|
||||||
|
}
|
@ -30,4 +30,5 @@ message DBHero {
|
|||||||
int32 suiteId = 21; //@go_tags(`bson:"suiteId"`) 套装Id
|
int32 suiteId = 21; //@go_tags(`bson:"suiteId"`) 套装Id
|
||||||
int32 suiteExtId = 22; // go_tags(`bson:"suiteExtId"`) 扩展套装Id
|
int32 suiteExtId = 22; // go_tags(`bson:"suiteExtId"`) 扩展套装Id
|
||||||
bool isOverlying = 23; // go_tags(`bson:"isOverlying"`) 是否允许叠加 默认true
|
bool isOverlying = 23; // go_tags(`bson:"isOverlying"`) 是否允许叠加 默认true
|
||||||
|
//map<string, int32> energyProperty = 24; //@go_tags(`bson:"energyProperty"`)
|
||||||
}
|
}
|
@ -131,9 +131,9 @@ message HeroLockResp {
|
|||||||
// 测试用(获取指定星级等级的英雄)
|
// 测试用(获取指定星级等级的英雄)
|
||||||
message HeroGetSpecifiedReq {
|
message HeroGetSpecifiedReq {
|
||||||
string heroCoinfigID = 1; // 英雄配置ID
|
string heroCoinfigID = 1; // 英雄配置ID
|
||||||
int32 Amount = 2; // 数量
|
int32 Amount = 2; // 数量
|
||||||
int32 star = 3; // 星级
|
int32 star = 3; // 星级
|
||||||
int32 lv = 4; // 等级
|
int32 lv = 4; // 等级
|
||||||
}
|
}
|
||||||
|
|
||||||
message HeroGetSpecifiedResp {
|
message HeroGetSpecifiedResp {
|
||||||
@ -146,10 +146,8 @@ message HeroDrawCardReq {
|
|||||||
}
|
}
|
||||||
|
|
||||||
message HeroDrawCardResp {
|
message HeroDrawCardResp {
|
||||||
repeated string heroes = 1; // 返回英雄的configID
|
repeated string heroes = 1; // 返回英雄的configID
|
||||||
}
|
}
|
||||||
|
|
||||||
// 英雄变化推送
|
// 英雄变化推送
|
||||||
message HeroChangePush{
|
message HeroChangePush { repeated DBHero list = 1; }
|
||||||
repeated DBHero list = 1;
|
|
||||||
}
|
|
@ -4,42 +4,43 @@ import "items_db.proto";
|
|||||||
|
|
||||||
//查询用户背包请求
|
//查询用户背包请求
|
||||||
message ItemsGetlistReq {
|
message ItemsGetlistReq {
|
||||||
int32 IType = 1; //道具类型
|
int32 IType = 1; //道具类型
|
||||||
}
|
}
|
||||||
|
|
||||||
//查询用户背包请求 回应
|
//查询用户背包请求 回应
|
||||||
message ItemsGetlistResp {
|
message ItemsGetlistResp {
|
||||||
repeated DB_UserItemData Grids = 1; //用户背包列表
|
repeated DB_UserItemData Grids = 1; //用户背包列表
|
||||||
}
|
}
|
||||||
|
|
||||||
//背包变化推送
|
//背包变化推送
|
||||||
message ItemsChangePush {
|
message ItemsChangePush {
|
||||||
repeated DB_UserItemData Grids = 1; //变化数据
|
repeated DB_UserItemData Grids = 1; //变化数据
|
||||||
}
|
}
|
||||||
|
|
||||||
//使用物品请求
|
//使用物品请求
|
||||||
message ItemsUseItemReq {
|
message ItemsUseItemReq {
|
||||||
string GridId = 1; //格子Id
|
string GridId = 1; //格子Id
|
||||||
uint32 Amount = 2; //使用数量
|
uint32 Amount = 2; //使用数量
|
||||||
|
int32 Select = 3; //选择下标
|
||||||
}
|
}
|
||||||
|
|
||||||
//使用物品请求 回应
|
//使用物品请求 回应
|
||||||
message ItemsUseItemResp {
|
message ItemsUseItemResp {
|
||||||
string GridId = 1; //格子Id
|
string GridId = 1; //格子Id
|
||||||
uint32 Amount = 2; //使用数量
|
uint32 Amount = 2; //使用数量
|
||||||
bool issucc = 3; //是否成功
|
bool issucc = 3; //是否成功
|
||||||
}
|
}
|
||||||
|
|
||||||
//出售道具请求sailitem
|
//出售道具请求sailitem
|
||||||
message ItemsSellItemReq {
|
message ItemsSellItemReq {
|
||||||
string GridId = 1; //格子Id
|
string GridId = 1; //格子Id
|
||||||
string ItemId = 2; //物品Id
|
string ItemId = 2; //物品Id
|
||||||
uint32 Amount = 3; //使用数量
|
uint32 Amount = 3; //使用数量
|
||||||
}
|
}
|
||||||
|
|
||||||
//出售道具请求 回应
|
//出售道具请求 回应
|
||||||
message ItemsSellItemResp {
|
message ItemsSellItemResp {
|
||||||
string GridId = 1; //格子Id
|
string GridId = 1; //格子Id
|
||||||
uint32 Amount = 2; //使用数量
|
uint32 Amount = 2; //使用数量
|
||||||
bool issucc = 3; //是否成功
|
bool issucc = 3; //是否成功
|
||||||
}
|
}
|
@ -2,43 +2,29 @@ syntax = "proto3";
|
|||||||
option go_package = ".;pb";
|
option go_package = ".;pb";
|
||||||
import "mail_db.proto";
|
import "mail_db.proto";
|
||||||
|
|
||||||
message MailGetListReq {
|
message MailGetListReq {}
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
// 查询邮件信息
|
// 查询邮件信息
|
||||||
message MailGetListResp {
|
message MailGetListResp { repeated DBMailData Mails = 1; }
|
||||||
repeated DBMailData Mails = 1;
|
|
||||||
}
|
|
||||||
|
|
||||||
// 查看邮件
|
// 查看邮件
|
||||||
message MailReadMailReq {
|
message MailReadMailReq { string ObjID = 1; }
|
||||||
string ObjID = 1;
|
|
||||||
}
|
|
||||||
|
|
||||||
message MailReadMailResp {
|
message MailReadMailResp { DBMailData Mail = 1; }
|
||||||
DBMailData Mail = 1;
|
|
||||||
}
|
|
||||||
|
|
||||||
// 领取附件
|
// 领取附件
|
||||||
message MailGetUserMailAttachmentReq {
|
message MailGetUserMailAttachmentReq { string ObjID = 1; }
|
||||||
string ObjID = 1;
|
|
||||||
}
|
|
||||||
|
|
||||||
message MailGetUserMailAttachmentResp {
|
message MailGetUserMailAttachmentResp { DBMailData Mail = 1; }
|
||||||
DBMailData Mail = 1;
|
|
||||||
}
|
|
||||||
|
|
||||||
// 删除某个邮件
|
// 删除某个邮件
|
||||||
message MailDelMailReq {
|
message MailDelMailReq { string ObjID = 1; }
|
||||||
string ObjID = 1;
|
|
||||||
}
|
|
||||||
|
|
||||||
message MailDelMailResp {
|
message MailDelMailResp {
|
||||||
string ObjID = 1; // 返回删除邮件id
|
string ObjID = 1; // 返回删除邮件id
|
||||||
}
|
}
|
||||||
|
|
||||||
// 推送邮件
|
// 推送邮件
|
||||||
message MailGetNewMailPush{
|
message MailGetNewMailPush {
|
||||||
DBMailData Mail = 1; // 推送新的邮件信息
|
DBMailData Mail = 1; // 推送新的邮件信息
|
||||||
}
|
}
|
@ -3,34 +3,28 @@ option go_package = ".;pb";
|
|||||||
import "mainline_db.proto";
|
import "mainline_db.proto";
|
||||||
|
|
||||||
// 查询关卡进度
|
// 查询关卡进度
|
||||||
message MainlineGetListReq {
|
message MainlineGetListReq {}
|
||||||
|
|
||||||
}
|
|
||||||
// 返回进度信息
|
// 返回进度信息
|
||||||
message MainlineGetListResp {
|
message MainlineGetListResp { repeated DBMainline data = 1; }
|
||||||
repeated DBMainline data = 1;
|
|
||||||
}
|
|
||||||
|
|
||||||
// 领取关卡宝箱
|
// 领取关卡宝箱
|
||||||
message MainlineGetRewardReq {
|
message MainlineGetRewardReq {
|
||||||
string chapterObj = 1; // 章节唯一对象id
|
string chapterObj = 1; // 章节唯一对象id
|
||||||
}
|
}
|
||||||
|
|
||||||
message MainlineGetRewardResp {
|
message MainlineGetRewardResp {
|
||||||
DBMainline data = 1; //当前章节信息
|
DBMainline data = 1; //当前章节信息
|
||||||
}
|
}
|
||||||
|
|
||||||
// 挑战关卡
|
// 挑战关卡
|
||||||
message MainlineChallengeReq {
|
message MainlineChallengeReq {
|
||||||
string chapterObj = 1; // 章节唯一对象id
|
string chapterObj = 1; // 章节唯一对象id
|
||||||
uint32 mainlineId = 2; // 小关ID
|
uint32 mainlineId = 2; // 小关ID
|
||||||
}
|
}
|
||||||
|
|
||||||
message MainlineChallengeResp {
|
message MainlineChallengeResp {
|
||||||
DBMainline data = 1; //当前章节信息
|
DBMainline data = 1; //当前章节信息
|
||||||
}
|
}
|
||||||
|
|
||||||
// 推送新章节
|
// 推送新章节
|
||||||
message MainlineNewChapterPush{
|
message MainlineNewChapterPush { DBMainline data = 1; }
|
||||||
DBMainline data = 1;
|
|
||||||
}
|
|
@ -19,17 +19,17 @@ message UserShopData {
|
|||||||
message DBShop {
|
message DBShop {
|
||||||
string id = 1; //@go_tags(`bson:"_id"`) 装备id
|
string id = 1; //@go_tags(`bson:"_id"`) 装备id
|
||||||
string uid = 2; //@go_tags(`bson:"uid"`) 装备id
|
string uid = 2; //@go_tags(`bson:"uid"`) 装备id
|
||||||
UserShopData goldShop = 3; //@go_tags(`bson:"goldShop"`)金币商店数据
|
UserShopData goldShop = 3; //@go_tags(`bson:"goldShop"`) 金币商店数据
|
||||||
UserShopData diamondShop = 4; //@go_tags(`bson:"diamondShop"`)金币商店数据
|
UserShopData diamondShop = 4; //@go_tags(`bson:"diamondShop"`) 金币商店数据
|
||||||
UserShopData pvpShop = 5; //@go_tags(`bson:"pvpShop"`)金币商店数据
|
UserShopData pvpShop = 5; //@go_tags(`bson:"pvpShop"`) 金币商店数据
|
||||||
UserShopData pveShop = 6; //@go_tags(`bson:"pveShop"`)金币商店数据
|
UserShopData pveShop = 6; //@go_tags(`bson:"pveShop"`) 金币商店数据
|
||||||
UserShopData allianceShop = 7; //@go_tags(`bson:"allianceShop"`)金币商店数据
|
UserShopData allianceShop = 7; //@go_tags(`bson:"allianceShop"`) 金币商店数据
|
||||||
}
|
}
|
||||||
|
|
||||||
message DBShopItem {
|
message DBShopItem {
|
||||||
string id = 1; //@go_tags(`bson:"_id"`) 装备id
|
string id = 1; //@go_tags(`bson:"_id"`) 装备id
|
||||||
string uid = 2; //@go_tags(`bson:"uid"`) 装备id
|
string uid = 2; //@go_tags(`bson:"uid"`) 装备id
|
||||||
int32 goodsId = 3; //@go_tags(`bson:"goodsId"`)商品Id
|
int32 goodsId = 3; //@go_tags(`bson:"goodsId"`) 商品Id
|
||||||
map<int32,int32> buyNum = 4; //@go_tags(`bson:"buyNum"`)购买数量
|
map<int32,int32> buyNum = 4; //@go_tags(`bson:"buyNum"`) 购买数量
|
||||||
map<int32,int64> lastBuyTime = 5; //@go_tags(`bson:"lastBuyTime"`)最后一次购买的时间
|
map<int32,int64> lastBuyTime = 5; //@go_tags(`bson:"lastBuyTime"`) 最后一次购买的时间
|
||||||
}
|
}
|
@ -46,6 +46,4 @@ message TaskDoStrategyResp {
|
|||||||
}
|
}
|
||||||
|
|
||||||
//任务完成推送
|
//任务完成推送
|
||||||
message TaskFinishedPush {
|
message TaskFinishedPush { int32 taskId = 1; }
|
||||||
int32 taskId = 1;
|
|
||||||
}
|
|
@ -39,9 +39,7 @@ message UserCreateReq {
|
|||||||
string NickName = 1; //昵称
|
string NickName = 1; //昵称
|
||||||
}
|
}
|
||||||
|
|
||||||
message UserCreateResp {
|
message UserCreateResp { bool IsSucc = 1; }
|
||||||
bool IsSucc = 1;
|
|
||||||
}
|
|
||||||
|
|
||||||
//添加用户资源
|
//添加用户资源
|
||||||
message UserAddResReq {
|
message UserAddResReq {
|
||||||
@ -120,3 +118,8 @@ message UserFigureResp {
|
|||||||
int32 action = 2; //部位
|
int32 action = 2; //部位
|
||||||
Figure figure = 3;
|
Figure figure = 3;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// 用户签名
|
||||||
|
message UserModifysignReq { string sign = 1; }
|
||||||
|
|
||||||
|
message UserModifysignResp { string uid = 1; }
|
@ -50,4 +50,7 @@ message DBUserExpand {
|
|||||||
map<string, bool> tujian = 8; // 图鉴
|
map<string, bool> tujian = 8; // 图鉴
|
||||||
int32 curFigure = 9; //当前形象
|
int32 curFigure = 9; //当前形象
|
||||||
map<int32, Figure> preinstall = 10; //形象预设
|
map<int32, Figure> preinstall = 10; //形象预设
|
||||||
|
int32 activeday = 11; //日活跃度
|
||||||
|
int32 activeweek = 12; //周活跃度
|
||||||
|
string sign = 13; //用户签名
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user