上传协议编译代码

This commit is contained in:
liwei1dao 2022-07-25 19:08:45 +08:00
parent 6313a46159
commit 72a0d957eb
21 changed files with 313 additions and 123 deletions

BIN
dist.rar

Binary file not shown.

View File

@ -389,6 +389,10 @@ var $root = ($protobuf.roots["default"] || ($protobuf.roots["default"] = new $pr
first: {
type: "int32",
id: 1
},
second: {
type: "int32",
id: 2
}
}
},
@ -422,6 +426,9 @@ var $root = ($protobuf.roots["default"] || ($protobuf.roots["default"] = new $pr
NameExist: 1006,
VeriCodeNoValid: 1007,
VeriCodeExpired: 1008,
UserResetData: 1009,
ModifynameCount: 1010,
MailErr: 1011,
FriendNotSelf: 1100,
FriendSelfMax: 1101,
FriendTargetMax: 1102,
@ -438,6 +445,7 @@ var $root = ($protobuf.roots["default"] || ($protobuf.roots["default"] = new $pr
ItemsNoFoundGird: 1201,
ItemsGridNumUpper: 1202,
ItemsGirdAmountUpper: 1203,
ItemsUseNotSupported: 1204,
HeroNoExist: 1300,
HeroNoEnough: 1301,
HeroMaxLv: 1302,
@ -460,10 +468,15 @@ var $root = ($protobuf.roots["default"] || ($protobuf.roots["default"] = new $pr
HeroAddMaxExp: 1319,
HeroStarLvErr: 1320,
HeroMaxStarLv: 1321,
DrawCardTypeNotFound: 1322,
EquipmentOnFoundEquipment: 1400,
EquipmentLvlimitReached: 1401,
MainlineNotFindChapter: 1500,
MainlineIDFailed: 1501,
MainlineNotFound: 1502,
MainlinePreNotFound: 1503,
MainlineRepeatReward: 1504,
MainlineCompleteReward: 1505,
TaskInit: 1600,
TaskReset: 1601,
TaskHandle: 1602,
@ -472,7 +485,8 @@ var $root = ($protobuf.roots["default"] || ($protobuf.roots["default"] = new $pr
TaskActiveNofound: 1605,
TaskActiveNoenough: 1606,
TaskNoFinished: 1607,
TaskFinished: 1608
TaskFinished: 1608,
ShopGoodsIsSoldOut: 1700
}
},
google: {
@ -526,7 +540,7 @@ var $root = ($protobuf.roots["default"] || ($protobuf.roots["default"] = new $pr
id: 1
},
cId: {
type: "sint32",
type: "string",
id: 2
},
uId: {
@ -932,7 +946,7 @@ var $root = ($protobuf.roots["default"] || ($protobuf.roots["default"] = new $pr
id: 2
},
heroID: {
type: "int32",
type: "string",
id: 3
},
star: {
@ -1063,6 +1077,18 @@ var $root = ($protobuf.roots["default"] || ($protobuf.roots["default"] = new $pr
}
}
},
MapStringInt32: {
fields: {
Key: {
type: "string",
id: 1
},
Value: {
type: "int32",
id: 2
}
}
},
HeroStrengthenUplvReq: {
fields: {
heroObjID: {
@ -1070,8 +1096,8 @@ var $root = ($protobuf.roots["default"] || ($protobuf.roots["default"] = new $pr
id: 1
},
expCards: {
keyType: "string",
type: "int32",
rule: "repeated",
type: "MapStringInt32",
id: 2
}
}
@ -1235,7 +1261,7 @@ var $root = ($protobuf.roots["default"] || ($protobuf.roots["default"] = new $pr
fields: {
heroIds: {
rule: "repeated",
type: "int32",
type: "string",
id: 1
}
}
@ -1286,7 +1312,7 @@ var $root = ($protobuf.roots["default"] || ($protobuf.roots["default"] = new $pr
HeroGetSpecifiedReq: {
fields: {
heroCoinfigID: {
type: "int32",
type: "string",
id: 1
},
Amount: {
@ -1323,7 +1349,7 @@ var $root = ($protobuf.roots["default"] || ($protobuf.roots["default"] = new $pr
fields: {
heroes: {
rule: "repeated",
type: "int32",
type: "string",
id: 1
}
}
@ -1348,7 +1374,7 @@ var $root = ($protobuf.roots["default"] || ($protobuf.roots["default"] = new $pr
id: 2
},
itemId: {
type: "int32",
type: "string",
id: 3
},
amount: {
@ -1434,7 +1460,7 @@ var $root = ($protobuf.roots["default"] || ($protobuf.roots["default"] = new $pr
id: 1
},
ItemId: {
type: "int32",
type: "string",
id: 2
},
Amount: {
@ -1554,9 +1580,8 @@ var $root = ($protobuf.roots["default"] || ($protobuf.roots["default"] = new $pr
},
MailDelMailResp: {
fields: {
Mail: {
rule: "repeated",
type: "DBMailData",
ObjID: {
type: "string",
id: 1
}
}
@ -1587,26 +1612,14 @@ var $root = ($protobuf.roots["default"] || ($protobuf.roots["default"] = new $pr
type: "int32",
id: 4
},
intensity: {
type: "int32",
id: 5
},
awaredID: {
type: "int32",
id: 6
},
progress: {
type: "int32",
id: 7
},
totalBox: {
type: "int32",
id: 8
id: 5
},
branchID: {
rule: "repeated",
type: "int32",
id: 9
id: 6
}
}
},
@ -1622,19 +1635,15 @@ var $root = ($protobuf.roots["default"] || ($protobuf.roots["default"] = new $pr
}
}
},
MainlineGetRewrdReq: {
MainlineGetRewardReq: {
fields: {
chapterId: {
type: "uint32",
chapterObj: {
type: "string",
id: 1
},
boxId: {
type: "uint32",
id: 2
}
}
},
MainlineGetRewrdResp: {
MainlineGetRewardResp: {
fields: {
data: {
type: "DBMainline",
@ -1644,8 +1653,8 @@ var $root = ($protobuf.roots["default"] || ($protobuf.roots["default"] = new $pr
},
MainlineChallengeReq: {
fields: {
chapterId: {
type: "uint32",
chapterObj: {
type: "string",
id: 1
},
mainlineId: {
@ -1662,6 +1671,14 @@ var $root = ($protobuf.roots["default"] || ($protobuf.roots["default"] = new $pr
}
}
},
MainlineNewChapterPush: {
fields: {
data: {
type: "DBMainline",
id: 1
}
}
},
DBSystemNotify: {
fields: {
id: {
@ -1808,10 +1825,12 @@ var $root = ($protobuf.roots["default"] || ($protobuf.roots["default"] = new $pr
id: 3
},
buyNum: {
keyType: "int32",
type: "int32",
id: 4
},
lastBuyTime: {
keyType: "int32",
type: "int64",
id: 5
}
@ -1866,9 +1885,13 @@ var $root = ($protobuf.roots["default"] || ($protobuf.roots["default"] = new $pr
},
ShopBuyReq: {
fields: {
ShopType: {
type: "ShopType",
id: 1
},
GoodsId: {
type: "int32",
id: 1
id: 2
}
}
},
@ -1894,21 +1917,29 @@ var $root = ($protobuf.roots["default"] || ($protobuf.roots["default"] = new $pr
type: "int32",
id: 3
},
progress: {
tag: {
type: "int32",
id: 4
},
active: {
progress: {
type: "int32",
id: 5
},
status: {
active: {
type: "int32",
id: 6
},
received: {
status: {
type: "int32",
id: 7
},
received: {
type: "int32",
id: 8
},
typeId: {
type: "int32",
id: 9
}
}
},
@ -1926,9 +1957,13 @@ var $root = ($protobuf.roots["default"] || ($protobuf.roots["default"] = new $pr
type: "int32",
id: 3
},
received: {
tag: {
type: "int32",
id: 4
},
received: {
type: "int32",
id: 5
}
}
},
@ -2031,6 +2066,14 @@ var $root = ($protobuf.roots["default"] || ($protobuf.roots["default"] = new $pr
}
}
},
TaskFinishedPush: {
fields: {
taskId: {
type: "int32",
id: 1
}
}
},
CacheUser: {
fields: {
uid: {
@ -2128,6 +2171,10 @@ var $root = ($protobuf.roots["default"] || ($protobuf.roots["default"] = new $pr
diamond: {
type: "int32",
id: 18
},
title: {
type: "int32",
id: 19
}
}
},
@ -2204,6 +2251,10 @@ var $root = ($protobuf.roots["default"] || ($protobuf.roots["default"] = new $pr
data: {
type: "DBUser",
id: 1
},
ex: {
type: "DBUserExpand",
id: 2
}
}
},
@ -2254,7 +2305,12 @@ var $root = ($protobuf.roots["default"] || ($protobuf.roots["default"] = new $pr
}
},
UserCreateResp: {
fields: {}
fields: {
IsSucc: {
type: "bool",
id: 1
}
}
},
UserAddResReq: {
fields: {
@ -2340,6 +2396,38 @@ var $root = ($protobuf.roots["default"] || ($protobuf.roots["default"] = new $pr
UserInitdataResp: {
fields: {}
},
UserModifynameReq: {
fields: {
name: {
type: "string",
id: 1
}
}
},
UserModifynameResp: {
fields: {
uid: {
type: "string",
id: 1
},
count: {
type: "uint32",
id: 2
}
}
},
UserGetTujianReq: {
fields: {}
},
UserGetTujianResp: {
fields: {
heroids: {
rule: "repeated",
type: "string",
id: 1
}
}
},
DBUserExpand: {
fields: {
id: {
@ -2354,9 +2442,38 @@ var $root = ($protobuf.roots["default"] || ($protobuf.roots["default"] = new $pr
type: "int64",
id: 3
},
lastInitdataTime: {
type: "int64",
id: 4
},
initdataCount: {
type: "uint32",
id: 5
},
chatchannel: {
type: "int32",
id: 4
id: 6
},
modifynameCount: {
type: "int32",
id: 7
},
tujian: {
keyType: "string",
type: "bool",
id: 8
}
}
},
Floor: {
fields: {
h4: {
type: "int32",
id: 1
},
h5: {
type: "int32",
id: 2
}
}
},
@ -2370,21 +2487,37 @@ var $root = ($protobuf.roots["default"] || ($protobuf.roots["default"] = new $pr
type: "string",
id: 2
},
type: {
type: "int32",
race0: {
type: "Floor",
id: 3
},
parame: {
type: "int32",
race1: {
type: "Floor",
id: 4
},
value: {
type: "int32",
race2: {
type: "Floor",
id: 5
},
ctime: {
type: "int64",
race3: {
type: "Floor",
id: 6
},
race4: {
type: "Floor",
id: 7
},
triggernum: {
type: "int32",
id: 8
},
activityid: {
type: "int32",
id: 9
},
mtime: {
type: "int64",
id: 10
}
}
}

View File

@ -2,23 +2,24 @@ syntax = "proto3";
option go_package = ".;pb";
enum ChatChannel {
World = 0; //
Union = 1; //
Private = 2; //
CrossServer = 3; //
System = 4; //
World = 0; //
Union = 1; //
Private = 2; //
CrossServer = 3; //
System = 4; //
}
message DBChat {
string id = 1; //id
ChatChannel channel = 2; //
string suid = 3; //id
string ruid = 4; //id channel == Private
int32 groud = 5; // id
int32 areaId = 6; // Id
string unionId = 7; //id
int32 headid = 8; //
string uname = 9; //
string content = 10; //
int64 ctime = 11; //
string id =1; //id
ChatChannel channel = 2; //
string suid =3; //id
string ruid = 4; //id channel == Private
int32 groud = 5; // id
int32 areaId = 6; // Id
string unionId = 7; //id
int32 headid = 8; //
string uname = 9; //
string content = 10; //
int64 ctime = 11; //
}

View File

@ -92,4 +92,5 @@ message UserAssets {
message TaskParam {
int32 first = 1; //
int32 second = 2; //
}

View File

@ -13,7 +13,7 @@ message EquipmentAttributeEntry {
//
message DB_Equipment {
string Id = 1; //@go_tags(`bson:"_id"`) id
sint32 cId = 2; //@go_tags(`bson:"cId"`) Id
string cId = 2; //@go_tags(`bson:"cId"`) Id
string uId = 3; //@go_tags(`bson:"uid"`) Id
string heroId = 5; //@go_tags(`bson:"heroId"`) id ''
sint32 lv = 6; //@go_tags(`bson:"lv"`)

View File

@ -32,6 +32,9 @@ enum ErrorCode {
NameExist = 1006; //
VeriCodeNoValid = 1007; //
VeriCodeExpired = 1008; //
UserResetData = 1009; //
ModifynameCount = 1010; //
MailErr = 1011; //
// friend
FriendNotSelf = 1100; //
@ -52,6 +55,7 @@ enum ErrorCode {
ItemsNoFoundGird = 1201; //
ItemsGridNumUpper = 1202; //
ItemsGirdAmountUpper = 1203; //
ItemsUseNotSupported = 1204; //使
// hero
HeroNoExist = 1300; //
@ -76,6 +80,7 @@ enum ErrorCode {
HeroAddMaxExp = 1319; //
HeroStarLvErr = 1320; //
HeroMaxStarLv = 1321; //
DrawCardTypeNotFound = 1322; //
// equipment
EquipmentOnFoundEquipment = 1400; //
@ -83,6 +88,10 @@ enum ErrorCode {
// mainMainline
MainlineNotFindChapter = 1500; // 线
MainlineIDFailed = 1501; // ID
MainlineNotFound = 1502; // 线
MainlinePreNotFound = 1503; //
MainlineRepeatReward = 1504; //
MainlineCompleteReward = 1505; //
// task
TaskInit = 1600; //
@ -94,4 +103,7 @@ enum ErrorCode {
TaskActiveNoenough = 1606; //
TaskNoFinished = 1607; //
TaskFinished = 1608; //
// shop
ShopGoodsIsSoldOut = 1700; //
}

View File

@ -9,7 +9,7 @@ message SkillData {
message DBHero {
string id = 1; //@go_tags(`bson:"_id"`) ID
string uid = 2;
int32 heroID = 3; //@go_tags(`bson:"heroID"`) ID
string heroID = 3; //@go_tags(`bson:"heroID"`) ID
int32 star = 4; //
int32 lv = 5; //
int32 exp = 6; //

View File

@ -22,10 +22,15 @@ message ItemData {
int32 amount = 3; //
}
message MapStringInt32 {
string Key = 1;
int32 Value = 2;
}
//
message HeroStrengthenUplvReq {
string heroObjID = 1; // ID
map<string, int32> expCards = 2;
repeated MapStringInt32 expCards = 2;
}
//
@ -104,7 +109,7 @@ message HeroAwakenResp {
}
//
message HeroChoukaReq { repeated int32 heroIds = 1; }
message HeroChoukaReq { repeated string heroIds = 1; }
message HeroChoukaResp { repeated DBHero heroes = 1; }
@ -125,10 +130,10 @@ message HeroLockResp {
//
message HeroGetSpecifiedReq {
int32 heroCoinfigID = 1; // ID
int32 Amount = 2; //
int32 star = 3; //
int32 lv = 4; //
string heroCoinfigID = 1; // ID
int32 Amount = 2; //
int32 star = 3; //
int32 lv = 4; //
}
message HeroGetSpecifiedResp {
@ -141,7 +146,7 @@ message HeroDrawCardReq {
}
message HeroDrawCardResp {
repeated int32 heroes = 1; // configID
repeated string heroes = 1; // configID
}
//

View File

@ -6,7 +6,7 @@ option go_package = ".;pb";
message DB_UserItemData {
string gridId = 1; //@go_tags(`bson:"_id"`) Id
string uId = 2; //@go_tags(`bson:"uid"`) id
int32 itemId = 3; //@go_tags(`bson:"itemId"`) Id
string itemId = 3; //@go_tags(`bson:"itemId"`) Id
uint32 amount = 4; //@go_tags(`bson:"amount"`)
int64 cTime = 5; //@go_tags(`bson:"cTime"`)
int64 eTime = 6; //@go_tags(`bson:"eTime"`)

View File

@ -33,7 +33,7 @@ message ItemsUseItemResp {
//sailitem
message ItemsSellItemReq {
string GridId = 1; //Id
int32 ItemId = 2; //Id
string ItemId = 2; //Id
uint32 Amount = 3; //使
}

View File

@ -20,7 +20,9 @@ message MailGetUserMailAttachmentResp { DBMailData Mail = 1; }
//
message MailDelMailReq { string ObjID = 1; }
message MailDelMailResp { repeated DBMailData Mail = 1; }
message MailDelMailResp {
string ObjID = 1; // id
}
//
message MailGetNewMailPush {

View File

@ -6,9 +6,6 @@ message DBMainline {
string uid = 2; //@go_tags(`bson:"uid"`) ID
int32 chapterId = 3; //@go_tags(`bson:"chapterId"`) ID
int32 mainlineId = 4; //@go_tags(`bson:"mainlineId"`) 线ID
int32 intensity = 5; //@go_tags(`bson:"intensity"`)
int32 awaredID = 6; //@go_tags(`bson:"awaredID"`) ID
int32 progress = 7; // @go_tags(`bson:"progress"`) ()
int32 totalBox = 8; // @go_tags(`bson:"totalBox"`)
repeated int32 branchID = 9; // @go_tags(`bson:"branchID"`)
int32 awaredID = 5; //@go_tags(`bson:"awaredID"`) (int是考虑后续扩展有多个宝箱情况)
repeated int32 branchID = 6; // @go_tags(`bson:"branchID"`)
}

View File

@ -8,21 +8,23 @@ message MainlineGetListReq {}
message MainlineGetListResp { repeated DBMainline data = 1; }
//
message MainlineGetRewrdReq {
uint32 chapterId = 1; // ID
uint32 boxId = 2; // ID
message MainlineGetRewardReq {
string chapterObj = 1; // id
}
message MainlineGetRewrdResp {
message MainlineGetRewardResp {
DBMainline data = 1; //
}
//
message MainlineChallengeReq {
uint32 chapterId = 1; // ID
string chapterObj = 1; // id
uint32 mainlineId = 2; // ID
}
message MainlineChallengeResp {
DBMainline data = 1; //
}
}
//
message MainlineNewChapterPush { DBMainline data = 1; }

View File

@ -30,6 +30,6 @@ message DBShopItem {
string id = 1; //@go_tags(`bson:"_id"`) id
string uid = 2; //@go_tags(`bson:"uid"`) id
int32 goodsId = 3; //@go_tags(`bson:"goodsId"`)Id
int32 buyNum = 4; //@go_tags(`bson:"buyNum"`)
int64 lastBuyTime = 5; //@go_tags(`bson:"lastBuyTime"`)
map<int32,int32> buyNum = 4; //@go_tags(`bson:"buyNum"`)
map<int32,int64> lastBuyTime = 5; //@go_tags(`bson:"lastBuyTime"`)
}

View File

@ -25,7 +25,8 @@ message ShopGetListResp {
//
message ShopBuyReq {
int32 GoodsId = 1; //Id
ShopType ShopType = 1; //
int32 GoodsId = 2; //Id
}
//

View File

@ -5,15 +5,18 @@ message DBTask {
string id = 1; //@go_tags(`bson:"_id"`) ID
string uid = 2; //@go_tags(`bson:"uid"`) ID
int32 taskId = 3; //@go_tags(`bson:"taskId"`) Id
int32 progress = 4; //@go_tags(`bson:"progress"`) /
int32 active = 5; //@go_tags(`bson:"active"`)
int32 status = 6; //@go_tags(`bson:"status"`) 0 1
int32 received = 7; //@go_tags(`bson:"received"`) 0 1
int32 tag = 4; //@go_tags(`bson:"tag"`)
int32 progress = 5; //@go_tags(`bson:"progress"`) /
int32 active = 6; //@go_tags(`bson:"active"`)
int32 status = 7; //@go_tags(`bson:"status"`) 0 1
int32 received = 8; //@go_tags(`bson:"received"`) 0 1
int32 typeId = 9; //@go_tags(`bson:"typeId"`)
}
message DBTaskActive {
string id = 1; //@go_tags(`bson:"_id"`) ID
string uid = 2; //@go_tags(`bson:"uid"`) ID
int32 rId = 3; //@go_tags(`bson:"taskId"`) rewardId
int32 received = 4; //@go_tags(`bson:"received"`) 0 1
int32 tag = 4; //@go_tags(`bson:"tag"`)
int32 received = 5; //@go_tags(`bson:"received"`) 0 1
}

View File

@ -43,4 +43,7 @@ message TaskDoStrategyReq {
message TaskDoStrategyResp {
repeated int32 taskIds = 1; //ID
}
}
//
message TaskFinishedPush { int32 taskId = 1; }

View File

@ -2,12 +2,12 @@ syntax = "proto3";
option go_package = ".;pb";
message CacheUser {
string uid = 1; //id
string SessionId = 2; //id
string ServiceTag = 3; // id
string GatewayServiceId = 4; //id
string ip = 5; //ip
// DB_UserData UserData = 4; //@go_tags(`json:",inline"`)
string uid = 1; //@go_tags(`json:"uid"`) id
string SessionId = 2; //@go_tags(`json:"sessionId"`) id
string ServiceTag = 3; //@go_tags(`json:"serviceTag"`) id
string GatewayServiceId =
4; //@go_tags(`json:"gatewayServiceId"`) id
string ip = 5; //@go_tags(`json:"ip"`) ip
}
message DBUser {
@ -29,6 +29,7 @@ message DBUser {
int32 lv = 16; //@go_tags(`bson:"lv"`)
int32 vip = 17; //@go_tags(`bson:"vip"`) vip
int32 diamond = 18; //@go_tags(`bson:"diamond"`)
int32 title = 19; //@go_tags(`bson:"title"`)
}
message DBUserSetting {
@ -46,4 +47,4 @@ message DBUserSetting {
bool huodong = 12; //@go_tags(`bson:"huodong"`)
bool xuanshang = 13; //@go_tags(`bson:"wanfa"`)
bool saiji = 14; //@go_tags(`bson:"wanfa"`)
}
}

View File

@ -3,6 +3,7 @@ option go_package = ".;pb";
import "errorcode.proto";
import "user_db.proto";
import "comm.proto";
import "userexpand.proto";
//
message UserLoginReq {
@ -10,7 +11,10 @@ message UserLoginReq {
int32 sid = 2; //
}
message UserLoginResp { DBUser data = 1; }
message UserLoginResp {
DBUser data = 1;
DBUserExpand ex = 2; //
}
//
message UserLogoutReq {}
@ -35,7 +39,7 @@ message UserCreateReq {
string NickName = 1; //
}
message UserCreateResp {}
message UserCreateResp { bool IsSucc = 1; }
//
message UserAddResReq {
@ -72,7 +76,21 @@ message UserVeriCodeResp {
int32 code = 1; //
}
//
message UserInitdataReq {
int32 code = 1; //
}
message UserInitdataResp {}
message UserInitdataResp {}
//
message UserModifynameReq {
string name = 1; //
}
message UserModifynameResp {
string uid = 1;
uint32 count = 2; //
}
message UserGetTujianReq {}
message UserGetTujianResp { repeated string heroids = 1; }

View File

@ -1,11 +1,14 @@
syntax = "proto3";
option go_package = ".;pb";
//
message DBUserExpand {
string id = 1; //id
string uid = 2; //id
int64 lastreadnotiftime = 3; //
int32 chatchannel = 4; //
}
string id = 1; //id
string uid = 2; //id
int64 lastreadnotiftime = 3; //
int64 lastInitdataTime = 4; //
uint32 initdataCount = 5; //
int32 chatchannel = 6; //
int32 modifynameCount = 7; //
map<string,bool> tujian = 8; //
}

View File

@ -1,13 +1,21 @@
syntax = "proto3";
option go_package = ".;pb";
message Floor{ //
int32 h4 = 1; // 4
int32 h5 = 2; // 5
}
//
message DBUserRecord {
string id = 1; // id
string uid = 2; // id
int32 type = 3; //
int32 parame = 4; //
int32 value = 5; //
int64 ctime = 6; //
string id = 1; //@go_tags(`bson:"_id"`) ID id
string uid = 2; //@go_tags(`bson:"uid"`) ID
Floor race0 = 3; //
Floor race1 = 4; // 1
Floor race2 = 5; // 2
Floor race3 = 6; // 3
Floor race4 = 7; // 4
int32 triggernum = 8; //
int32 activityid = 9; // id
int64 mtime = 10; //
}