上传协议编译代码

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

View File

@ -9,6 +9,7 @@ enum ChatChannel {
System = 4; // System = 4; //
} }
message DBChat { message DBChat {
string id =1; //id string id =1; //id
ChatChannel channel = 2; // ChatChannel channel = 2; //

View File

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

View File

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

View File

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

View File

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

View File

@ -22,10 +22,15 @@ message ItemData {
int32 amount = 3; // int32 amount = 3; //
} }
message MapStringInt32 {
string Key = 1;
int32 Value = 2;
}
// //
message HeroStrengthenUplvReq { message HeroStrengthenUplvReq {
string heroObjID = 1; // ID 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; } message HeroChoukaResp { repeated DBHero heroes = 1; }
@ -125,7 +130,7 @@ message HeroLockResp {
// //
message HeroGetSpecifiedReq { message HeroGetSpecifiedReq {
int32 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; //
@ -141,7 +146,7 @@ message HeroDrawCardReq {
} }
message HeroDrawCardResp { 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 { message DB_UserItemData {
string gridId = 1; //@go_tags(`bson:"_id"`) Id string gridId = 1; //@go_tags(`bson:"_id"`) Id
string uId = 2; //@go_tags(`bson:"uid"`) 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"`) uint32 amount = 4; //@go_tags(`bson:"amount"`)
int64 cTime = 5; //@go_tags(`bson:"cTime"`) int64 cTime = 5; //@go_tags(`bson:"cTime"`)
int64 eTime = 6; //@go_tags(`bson:"eTime"`) int64 eTime = 6; //@go_tags(`bson:"eTime"`)

View File

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

View File

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

View File

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

View File

@ -8,21 +8,23 @@ message MainlineGetListReq {}
message MainlineGetListResp { repeated DBMainline data = 1; } message MainlineGetListResp { repeated DBMainline data = 1; }
// //
message MainlineGetRewrdReq { message MainlineGetRewardReq {
uint32 chapterId = 1; // ID string chapterObj = 1; // id
uint32 boxId = 2; // ID
} }
message MainlineGetRewrdResp { message MainlineGetRewardResp {
DBMainline data = 1; // DBMainline data = 1; //
} }
// //
message MainlineChallengeReq { message MainlineChallengeReq {
uint32 chapterId = 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 { DBMainline data = 1; }

View File

@ -30,6 +30,6 @@ 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
int32 buyNum = 4; //@go_tags(`bson:"buyNum"`) map<int32,int32> buyNum = 4; //@go_tags(`bson:"buyNum"`)
int64 lastBuyTime = 5; //@go_tags(`bson:"lastBuyTime"`) map<int32,int64> lastBuyTime = 5; //@go_tags(`bson:"lastBuyTime"`)
} }

View File

@ -25,7 +25,8 @@ message ShopGetListResp {
// //
message ShopBuyReq { 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 id = 1; //@go_tags(`bson:"_id"`) ID
string uid = 2; //@go_tags(`bson:"uid"`) ID string uid = 2; //@go_tags(`bson:"uid"`) ID
int32 taskId = 3; //@go_tags(`bson:"taskId"`) Id int32 taskId = 3; //@go_tags(`bson:"taskId"`) Id
int32 progress = 4; //@go_tags(`bson:"progress"`) / int32 tag = 4; //@go_tags(`bson:"tag"`)
int32 active = 5; //@go_tags(`bson:"active"`) int32 progress = 5; //@go_tags(`bson:"progress"`) /
int32 status = 6; //@go_tags(`bson:"status"`) 0 1 int32 active = 6; //@go_tags(`bson:"active"`)
int32 received = 7; //@go_tags(`bson:"received"`) 0 1 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 { message DBTaskActive {
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 rId = 3; //@go_tags(`bson:"taskId"`) rewardId 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

@ -44,3 +44,6 @@ message TaskDoStrategyReq {
message TaskDoStrategyResp { message TaskDoStrategyResp {
repeated int32 taskIds = 1; //ID repeated int32 taskIds = 1; //ID
} }
//
message TaskFinishedPush { int32 taskId = 1; }

View File

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

View File

@ -3,6 +3,7 @@ option go_package = ".;pb";
import "errorcode.proto"; import "errorcode.proto";
import "user_db.proto"; import "user_db.proto";
import "comm.proto"; import "comm.proto";
import "userexpand.proto";
// //
message UserLoginReq { message UserLoginReq {
@ -10,7 +11,10 @@ message UserLoginReq {
int32 sid = 2; // int32 sid = 2; //
} }
message UserLoginResp { DBUser data = 1; } message UserLoginResp {
DBUser data = 1;
DBUserExpand ex = 2; //
}
// //
message UserLogoutReq {} message UserLogoutReq {}
@ -35,7 +39,7 @@ message UserCreateReq {
string NickName = 1; // string NickName = 1; //
} }
message UserCreateResp {} message UserCreateResp { bool IsSucc = 1; }
// //
message UserAddResReq { message UserAddResReq {
@ -72,7 +76,21 @@ message UserVeriCodeResp {
int32 code = 1; // int32 code = 1; //
} }
//
message UserInitdataReq { message UserInitdataReq {
int32 code = 1; // 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"; syntax = "proto3";
option go_package = ".;pb"; option go_package = ".;pb";
// //
message DBUserExpand { message DBUserExpand {
string id = 1; //id string id = 1; //id
string uid = 2; //id string uid = 2; //id
int64 lastreadnotiftime = 3; // int64 lastreadnotiftime = 3; //
int32 chatchannel = 4; // 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"; syntax = "proto3";
option go_package = ".;pb"; option go_package = ".;pb";
message Floor{ //
int32 h4 = 1; // 4
int32 h5 = 2; // 5
}
// //
message DBUserRecord { message DBUserRecord {
string id = 1; // id string id = 1; //@go_tags(`bson:"_id"`) ID id
string uid = 2; // id string uid = 2; //@go_tags(`bson:"uid"`) ID
int32 type = 3; // Floor race0 = 3; //
int32 parame = 4; // Floor race1 = 4; // 1
int32 value = 5; // Floor race2 = 5; // 2
int64 ctime = 6; // Floor race3 = 6; // 3
Floor race4 = 7; // 4
int32 triggernum = 8; //
int32 activityid = 9; // id
int64 mtime = 10; //
} }