上传协议工具代码
This commit is contained in:
parent
9815572c16
commit
67a97720ef
142
src/pb/proto.js
142
src/pb/proto.js
@ -468,6 +468,7 @@ var $root = ($protobuf.roots["default"] || ($protobuf.roots["default"] = new $pr
|
|||||||
HeroMaxStarLv: 1321,
|
HeroMaxStarLv: 1321,
|
||||||
DrawCardTypeNotFound: 1322,
|
DrawCardTypeNotFound: 1322,
|
||||||
HeroMaxSkillLv: 1323,
|
HeroMaxSkillLv: 1323,
|
||||||
|
HeroAlreadyKongFuStatus: 1324,
|
||||||
EquipmentOnFoundEquipment: 1400,
|
EquipmentOnFoundEquipment: 1400,
|
||||||
EquipmentLvlimitReached: 1401,
|
EquipmentLvlimitReached: 1401,
|
||||||
EquipmentIsWorn: 1402,
|
EquipmentIsWorn: 1402,
|
||||||
@ -500,7 +501,12 @@ var $root = ($protobuf.roots["default"] || ($protobuf.roots["default"] = new $pr
|
|||||||
MartialhallInUse: 2001,
|
MartialhallInUse: 2001,
|
||||||
MartialhallUnlocked: 2002,
|
MartialhallUnlocked: 2002,
|
||||||
GourmetMoreOrderTime: 2101,
|
GourmetMoreOrderTime: 2101,
|
||||||
GourmetSkillMaxLv: 2102
|
GourmetSkillMaxLv: 2102,
|
||||||
|
RtaskFinished: 2201,
|
||||||
|
RtaskUnFinished: 2202,
|
||||||
|
RtaskNoRtask: 2203,
|
||||||
|
RtaskRewarded: 2204,
|
||||||
|
RtaskPreNoFinish: 2205
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
google: {
|
google: {
|
||||||
@ -2588,6 +2594,140 @@ var $root = ($protobuf.roots["default"] || ($protobuf.roots["default"] = new $pr
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
Clang: {
|
||||||
|
fields: {
|
||||||
|
deskType: {
|
||||||
|
type: "int32",
|
||||||
|
id: 1
|
||||||
|
},
|
||||||
|
eTime: {
|
||||||
|
type: "int64",
|
||||||
|
id: 2
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
OrderClang: {
|
||||||
|
fields: {
|
||||||
|
deskType: {
|
||||||
|
type: "int32",
|
||||||
|
id: 1
|
||||||
|
},
|
||||||
|
count: {
|
||||||
|
type: "int32",
|
||||||
|
id: 2
|
||||||
|
},
|
||||||
|
needTime: {
|
||||||
|
type: "int32",
|
||||||
|
id: 3
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
DBSmithy: {
|
||||||
|
fields: {
|
||||||
|
id: {
|
||||||
|
type: "string",
|
||||||
|
id: 1
|
||||||
|
},
|
||||||
|
uid: {
|
||||||
|
type: "string",
|
||||||
|
id: 2
|
||||||
|
},
|
||||||
|
clang: {
|
||||||
|
type: "Clang",
|
||||||
|
id: 3
|
||||||
|
},
|
||||||
|
orders: {
|
||||||
|
rule: "repeated",
|
||||||
|
type: "OrderClang",
|
||||||
|
id: 4
|
||||||
|
},
|
||||||
|
items: {
|
||||||
|
rule: "repeated",
|
||||||
|
type: "UserAssets",
|
||||||
|
id: 5
|
||||||
|
},
|
||||||
|
skill: {
|
||||||
|
keyType: "int32",
|
||||||
|
type: "int32",
|
||||||
|
id: 6
|
||||||
|
},
|
||||||
|
stoveLv: {
|
||||||
|
type: "int32",
|
||||||
|
id: 7
|
||||||
|
},
|
||||||
|
orderCostTime: {
|
||||||
|
type: "int32",
|
||||||
|
id: 8
|
||||||
|
},
|
||||||
|
ctime: {
|
||||||
|
type: "int64",
|
||||||
|
id: 9
|
||||||
|
},
|
||||||
|
deskFloor: {
|
||||||
|
type: "int32",
|
||||||
|
id: 10
|
||||||
|
},
|
||||||
|
stoveFloor: {
|
||||||
|
type: "int32",
|
||||||
|
id: 11
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
SmithyGetListReq: {
|
||||||
|
fields: {}
|
||||||
|
},
|
||||||
|
SmithyGetListResp: {
|
||||||
|
fields: {
|
||||||
|
data: {
|
||||||
|
type: "DBSmithy",
|
||||||
|
id: 1
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
SmithyCreateOrderReq: {
|
||||||
|
fields: {
|
||||||
|
order: {
|
||||||
|
rule: "repeated",
|
||||||
|
type: "OrderClang",
|
||||||
|
id: 1
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
SmithyCreateOrderResp: {
|
||||||
|
fields: {
|
||||||
|
data: {
|
||||||
|
type: "DBSmithy",
|
||||||
|
id: 1
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
SmithyGetRewardReq: {
|
||||||
|
fields: {}
|
||||||
|
},
|
||||||
|
SmithyGetRewardResp: {
|
||||||
|
fields: {
|
||||||
|
data: {
|
||||||
|
type: "DBSmithy",
|
||||||
|
id: 1
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
SmithySkillLvReq: {
|
||||||
|
fields: {
|
||||||
|
skillType: {
|
||||||
|
type: "int32",
|
||||||
|
id: 1
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
SmithySkillLvResp: {
|
||||||
|
fields: {
|
||||||
|
data: {
|
||||||
|
type: "DBSmithy",
|
||||||
|
id: 1
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
DBTask: {
|
DBTask: {
|
||||||
fields: {
|
fields: {
|
||||||
id: {
|
id: {
|
||||||
|
@ -91,6 +91,7 @@ enum ErrorCode {
|
|||||||
HeroMaxStarLv = 1321; // 达到最大升星等级
|
HeroMaxStarLv = 1321; // 达到最大升星等级
|
||||||
DrawCardTypeNotFound = 1322; // 抽卡类型不匹配
|
DrawCardTypeNotFound = 1322; // 抽卡类型不匹配
|
||||||
HeroMaxSkillLv = 1323; // 达到最大技能等级
|
HeroMaxSkillLv = 1323; // 达到最大技能等级
|
||||||
|
HeroAlreadyKongFuStatus = 1324; // 已经是练功状态
|
||||||
|
|
||||||
// equipment
|
// equipment
|
||||||
EquipmentOnFoundEquipment = 1400; // 未找到武器
|
EquipmentOnFoundEquipment = 1400; // 未找到武器
|
||||||
@ -136,4 +137,11 @@ enum ErrorCode {
|
|||||||
// 美食馆
|
// 美食馆
|
||||||
GourmetMoreOrderTime = 2101; // 超过订单时长
|
GourmetMoreOrderTime = 2101; // 超过订单时长
|
||||||
GourmetSkillMaxLv = 2102; // 技能已经达到满级
|
GourmetSkillMaxLv = 2102; // 技能已经达到满级
|
||||||
|
|
||||||
|
// rtask
|
||||||
|
RtaskFinished = 2201; //任务已完成
|
||||||
|
RtaskUnFinished = 2202; //任务未完成
|
||||||
|
RtaskNoRtask = 2203; //任务未开启
|
||||||
|
RtaskRewarded = 2204; //已获取奖励
|
||||||
|
RtaskPreNoFinish = 2205; //前置未完成
|
||||||
}
|
}
|
29
src/pb/proto/smithy_db.proto
Normal file
29
src/pb/proto/smithy_db.proto
Normal file
@ -0,0 +1,29 @@
|
|||||||
|
syntax = "proto3";
|
||||||
|
option go_package = ".;pb";
|
||||||
|
import "comm.proto";
|
||||||
|
|
||||||
|
|
||||||
|
message Clang{
|
||||||
|
int32 deskType = 1; // 台子类型
|
||||||
|
int64 eTime = 2;
|
||||||
|
}
|
||||||
|
|
||||||
|
// 队列里的烹饪食品
|
||||||
|
message OrderClang{
|
||||||
|
int32 deskType = 1; // 台子类型
|
||||||
|
int32 count = 2; // 料理数量
|
||||||
|
int32 needTime = 3; // 需要的时间
|
||||||
|
}
|
||||||
|
message DBSmithy {
|
||||||
|
string id = 1; //@go_tags(`bson:"_id"`) ID
|
||||||
|
string uid = 2; //@go_tags(`bson:"uid"`) 用户ID
|
||||||
|
Clang clang = 3;// 正在制作中的数据
|
||||||
|
repeated OrderClang orders = 4; //@go_tags(`bson:"orders"`) 订单数据
|
||||||
|
repeated UserAssets items = 5; //@go_tags(`bson:"items"`) 已经做好装备
|
||||||
|
map<int32,int32> skill = 6;//@go_tags(`bson:"skill"`) 锻造台等级
|
||||||
|
int32 stoveLv = 7; //@go_tags(`bson:"stoveLv"`) 炉子等级
|
||||||
|
int32 orderCostTime = 8; //@go_tags(`bson:"orderCostTime"`) 订单消耗的时常
|
||||||
|
int64 ctime = 9; // 订单创建时间
|
||||||
|
int32 deskFloor = 10;//@go_tags(`bson:"deskFloor"`)台子保底
|
||||||
|
int32 stoveFloor = 11;//@go_tags(`bson:"stoveFloor"`) 炉子保底
|
||||||
|
}
|
38
src/pb/proto/smithy_msg.proto
Normal file
38
src/pb/proto/smithy_msg.proto
Normal file
@ -0,0 +1,38 @@
|
|||||||
|
syntax = "proto3";
|
||||||
|
option go_package = ".;pb";
|
||||||
|
import "smithy_db.proto";
|
||||||
|
|
||||||
|
// 查询塔进度
|
||||||
|
message SmithyGetListReq {
|
||||||
|
|
||||||
|
}
|
||||||
|
// 返回进度信息
|
||||||
|
message SmithyGetListResp {
|
||||||
|
DBSmithy data = 1;
|
||||||
|
}
|
||||||
|
|
||||||
|
// 创建订单
|
||||||
|
message SmithyCreateOrderReq {
|
||||||
|
repeated OrderClang order = 1;// 烹饪时间不用传 后端会重新计算
|
||||||
|
}
|
||||||
|
|
||||||
|
message SmithyCreateOrderResp {
|
||||||
|
DBSmithy data = 1;
|
||||||
|
}
|
||||||
|
|
||||||
|
// 领取奖励
|
||||||
|
message SmithyGetRewardReq{
|
||||||
|
}
|
||||||
|
|
||||||
|
message SmithyGetRewardResp{
|
||||||
|
DBSmithy data = 1;
|
||||||
|
}
|
||||||
|
|
||||||
|
// 技能升级
|
||||||
|
message SmithySkillLvReq{
|
||||||
|
int32 skillType = 1; // 技能id
|
||||||
|
}
|
||||||
|
|
||||||
|
message SmithySkillLvResp{
|
||||||
|
DBSmithy data = 1;
|
||||||
|
}
|
@ -219,6 +219,7 @@ export default defineComponent({
|
|||||||
{ mainType: 'pagoda', subs: [] },
|
{ mainType: 'pagoda', subs: [] },
|
||||||
{ mainType: 'martialhall', subs: [] },
|
{ mainType: 'martialhall', subs: [] },
|
||||||
{ mainType: 'gourmet', subs: [] },
|
{ mainType: 'gourmet', subs: [] },
|
||||||
|
{ mainType: 'smithy', subs: [] },
|
||||||
])
|
])
|
||||||
for (const v of Object.keys(proto)) {
|
for (const v of Object.keys(proto)) {
|
||||||
for (const v1 of proto_models) {
|
for (const v1 of proto_models) {
|
||||||
|
Loading…
Reference in New Issue
Block a user