上传代码

This commit is contained in:
liwei1dao 2023-06-04 12:16:44 +08:00
parent c64cd72754
commit 14ec1db85d
59 changed files with 1504 additions and 583 deletions

View File

@ -23,6 +23,7 @@ if os.path.exists(source_path):
src_file = os.path.join(root, file)
out_file = os.path.join(target_path, file)
file_data = ""
print(src_file)
with io.open(src_file, "r", encoding='utf-8') as f:
for line in f:
if 'import' in line:

File diff suppressed because it is too large Load Diff

View File

@ -1,6 +1,8 @@
syntax = "proto3";
option go_package = ".;pb";
import "hero/hero_db.proto";
import "comm.proto";
//
message DBPlayerBattleFormt {
int32 leadpos = 1; //
@ -38,6 +40,13 @@ message DBHeroBase {
string cid = 2; //id
int32 star = 3; //
int32 lv = 4; //
map<string, int32> property = 5; //
map<string, int32> addProperty = 6; //@go_tags(`bson:"addProperty"`)
map<string, int32> juexProperty = 7; //@go_tags(`bson:"juexProperty"`) //
map<string, int32> talentProperty = 8; //@go_tags(`bson:"talentProperty"`) //
map<string, int32> horoscopeProperty = 9; //@go_tags(`bson:"horoscopeProperty"`) //
map<string, int32> fetters = 10; //@go_tags(`bson:"fetters"`) //
repeated SkillData normalSkill = 11; //@go_tags(`bson:"normalSkill"`)
}
//
message DBArenaBattleRecord {

View File

@ -54,7 +54,7 @@ message ArenaChallengeRewardReq {
BattleReport report = 5; //
string revengeid = 6; //id
}
message ArenaChallengeRewardResp { bool issucc = 1; }
message ArenaChallengeRewardResp { bool issucc = 1;int32 integral = 2;int32 dan = 3;}
//
message ArenaRankReq {}

View File

@ -57,7 +57,7 @@ message BattleRole {
repeated SkillData normalSkill = 10; //@go_tags(`bson:"normalSkill"`)
repeated SkillData equipSkill = 11; //@go_tags(`bson:"equipSkill"`)
int32 PandaBuff = 12; //buff技能id
map<string, int32> property = 13; //
map<int32, int32> property = 13; //
bool ishelp = 14; //
int32 isboos = 15; //boos
int32 monsterid = 16; //id

View File

@ -154,4 +154,9 @@ enum EffectTipsType {
Not_Gain = 4; //
Not_Control = 5; //
Not_Action = 6; //
}
//
message ComChainEffect
{
repeated int32 roles = 1;
}

View File

@ -0,0 +1,38 @@
syntax = "proto3";
option go_package = ".;pb";
message Goods{
int32 period = 1; //
int32 curPeriod = 2; //
int32 price = 3; //
int64 time = 4; //
}
message CityInfo{
repeated int32 like = 1; // ID
repeated int32 unlike = 2; // ID
map<int32,int32> count = 3; //
int64 rtime = 4; //
}
message BagInfo{//
int32 count = 1; //
int32 price = 2; //
}
message DBCaravan {
string id = 1; //@go_tags(`bson:"_id"`) ID
string uid = 2; //@go_tags(`bson:"uid"`) ID
int32 useCount = 3; //@go_tags(`bson:"usecount"`) 使
map<int32,BagInfo> items = 4; //
map<int32,Goods> goods = 5; // key ID
map<int32,CityInfo> city = 6; //
int32 lv = 7;//
int64 profit= 8;//
int64 resettime = 9;//
int32 curcity = 10;//
int32 taskid = 11; // worldtask
int32 eventid = 12; // ID(id)
int64 tasktime = 13; //
int32 baglimit = 14; //
}

View File

@ -0,0 +1,52 @@
syntax = "proto3";
option go_package = ".;pb";
import "caravan/caravan_db.proto";
import "comm.proto";
//
message CaravanGetListReq {
}
//
message CaravanGetListResp {
DBCaravan data = 1;
}
message CaravanBuyOrSellReq {
int32 city = 1; // id
map<int32,int32> items = 2;
bool isBuy = 3; // true false
}
message CaravanBuyOrSellResp {
DBCaravan data = 1;
}
// city
message CaravanGotoCityReq {
int32 city = 1; // id
int32 ticket = 2; //
}
message CaravanGotoCityResp {
DBCaravan data = 1;
bool newtask = 2; //
}
//
message CaravanGetStoryReq {
int32 cid = 1;
int32 citystory = 2; //
}
message CaravanGetStoryResp {
DBCaravan data = 1;
bool bSuccess = 2; //
}
//
message CaravanTaskCompletePush {
DBCaravan data = 1;
bool bSuccess = 2; //
repeated UserAssets reward = 3; //
}

View File

@ -17,6 +17,7 @@ enum ChatType {
HeroShare = 3; //
EquipmentShare = 4; //
ItemShare = 5; //
Parkour = 6; //
}
message DBChat {

View File

@ -60,6 +60,7 @@ enum ErrorCode {
UserTalent2NoEnough = 1026; //2
UserTalent3NoEnough = 1027; //3
UserTalent4NoEnough = 1028; //4
UserMerchantNoEnough = 1029; //
// friend
FriendNotSelf = 1100; //
@ -229,6 +230,7 @@ enum ErrorCode {
LibraryLvReward = 2805; //
LibraryFetterTaskNoFound = 2806; //
LibraryPreTaskNoFinished = 2807; //
LibraryGiveMaxCount = 2808; //
// Battle
BattleValidationFailed = 2901; //
@ -282,6 +284,7 @@ enum ErrorCode {
SociatyTaskNoFound = 3040; //boss任务
SociatyTaskNoFinished = 3041; //
SociatyTaskReceived = 3042; //
SociatyApplyLvLimit = 3043; //
// arena
ArenaTicketBuyUp = 3101; //
@ -298,6 +301,8 @@ enum ErrorCode {
TrollMaxSellCount = 3303; //
TrollMaxItemCount = 3304; //
TrollRepeatedReward = 3305; //
TrollCity = 3306; //
TrollTask = 3307; //
// horoscope
HoroscopeNotTurnedOn = 3401; //
HoroscopeRestCDNoEnd = 3402; //cd未结束
@ -378,4 +383,12 @@ enum ErrorCode {
//reputation
ReputationTalentFull = 4501; //
ReputationNoPreNodeLv= 4502; //
// oldtimes
OldtimesReceived = 4601; //
OldtimesFinished = 4602; //
OldtimesLevelOver = 4603;//
OldtimesPreLevelNoFinished = 4604; //
OldtimesNoAllFinished = 4605; //
}

View File

@ -38,6 +38,7 @@ message DBHero {
map<string, int32> horoscopeProperty = 28; //@go_tags(`bson:"horoscopeProperty"`) //
int32 fulllvenr = 29; //@go_tags(`bson:"fulllvenr"`) // 使
string kongfuUid = 30; //@go_tags(`bson:"kongfuUid"`)//
map<string, int32> fetters = 31; //@go_tags(`bson:"fetters"`) //
}

View File

@ -5,11 +5,10 @@ message DBLibrary {
string id = 1; //@go_tags(`bson:"_id"`) ID
string uid = 2; //@go_tags(`bson:"uid"`) ID
int32 fid = 3; // id id
map<string, int32> hero = 4; // key: hid value: id
map<string, string> herofetter = 4; // key: hid value: DBHeroFetter ObjID
map<int32, int32> prize = 5; // key
int32 fetterlv = 6; //
int32 storyid = 7; // id
bool activation = 8; //
int32 storyid = 6; // id
int32 fidlv = 7; //
}
@ -21,8 +20,10 @@ message DBHeroFetter {
repeated int32 history = 4; // ID
int32 favorlv = 5; //
int32 favorexp = 6; //
repeated int32 stroyprize = 7; //
repeated int32 lvprize = 8; //
map<int32, int32> lvprize = 8; //
int32 givecount = 9; //
int64 ctime = 10; //
}
//

View File

@ -11,18 +11,11 @@ message LibraryGetFetterListReq {}
message LibraryGetFetterListResp { repeated DBHeroFetter data = 1; }
//
message LibraryGetRewardReq {
string objId = 1;
int32 fetterlv = 2; //
}
message LibraryGetRewardResp { DBLibrary data = 1; }
//
message LibraryGetStoryRewardReq {
string hid = 1; // ID
string oid = 1; // DBHeroFetter oid
int32 history = 2; // id
int32 rightend = 3; // rightend
}
message LibraryGetStoryRewardResp { DBHeroFetter data = 1; }
@ -30,7 +23,8 @@ message LibraryGetStoryRewardResp { DBHeroFetter data = 1; }
//
message LibraryUseGiftReq {
string heroid = 1; // id
map<string, int32> items = 2; // key ID value
string items = 2; // ID
int32 counts = 3; //
}
message LibraryUseGiftResp { DBHeroFetter data = 1; }
@ -61,3 +55,12 @@ message LibraryFetterstoryTaskReq {
int32 fetterId = 1; //ID
}
message LibraryFetterstoryTaskResp { repeated FetterTask list = 1; }
//
message LibraryFetterLvUpReq {
string libOid = 1; // id
}
message LibraryFetterLvUpResp {
DBLibrary data = 1;
}

View File

@ -1,18 +0,0 @@
syntax = "proto3";
option go_package = ".;pb";
enum AwaredType {
TypeNil = 0;
TypeAvailable = 1; //
TypeReceived = 2; //
}
message DBMainline {
string id = 1; //@go_tags(`bson:"_id"`) ID
string uid = 2; //@go_tags(`bson:"uid"`) ID
int32 chapterId = 3; //@go_tags(`bson:"chapterId"`) ID
int32 mainlineId = 4; //@go_tags(`bson:"mainlineId"`) 线ID
AwaredType awaredID = 5; //@go_tags(`bson:"awaredID"`) (int是考虑后续扩展有多个宝箱情况)
repeated int32 branchID = 6; // @go_tags(`bson:"branchID"`)
int32 intensity = 7; //
int32 ps = 8;//
}

View File

@ -1,53 +0,0 @@
syntax = "proto3";
option go_package = ".;pb";
import "mainline/mainline_db.proto";
import "battle/battle_msg.proto";
//
message MainlineGetListReq {
}
//
message MainlineGetListResp {
repeated DBMainline data = 1;
}
//
message MainlineGetRewardReq {
string chapterObj = 1; // id
}
message MainlineGetRewardResp {
DBMainline data = 1; //
}
//
message MainlineChallengeReq {
string chapterObj = 1; // id
uint32 mainlineId = 2; // ID
int32 leadpos = 3; //
repeated string teamids = 4; //
}
message MainlineChallengeResp {
BattleInfo info = 1;
string chapterObj = 2; // id
uint32 mainlineId = 3; // ID
}
//
message MainlineChallengeOverReq {
string chapterObj = 1; // id
uint32 mainlineId = 2; // ID
BattleReport report = 3; //
}
message MainlineChallengeOverResp {
DBMainline data = 1; //
repeated string newheros = 2; //
int32 olv = 3; //
}
//
message MainlineNewChapterPush{
DBMainline data = 1;
}

View File

@ -0,0 +1,19 @@
syntax = "proto3";
option go_package = ".;pb";
message DBOldtimes{
string uid = 1;//@go_tags(`bson:"uid"`) ID
repeated Chapter chapters = 2; //@go_tags(`bson:"chapters"`)
}
message Chapter{
int32 cid=1; //@go_tags(`bson:"cid"`) ID
int32 status = 2; //@go_tags(`bson:"status"`) 0 1 2 3
int32 received = 3; //@go_tags(`bson:"received"`) 0 1
repeated Level levels = 4; //@go_tags(`bson:"levels"`)
}
message Level{
int32 lid = 1; //@go_tags(`bson:"lid"`) ID
int32 status = 2; //@go_tags(`bson:"status"`) 0 1 2 3
}

View File

@ -0,0 +1,42 @@
syntax = "proto3";
option go_package = ".;pb";
import "oldtimes/oldtimes_db.proto";
//
message OldtimesGetallReq{}
message OldtimesGetallResp{
DBOldtimes data = 1;
}
//
message OldtimesEnterReq{
int32 chapterId = 1;
int32 levelId = 2;
}
message OldtimesEnterResp{
int32 code = 1;
}
//
message OldtimesFinishReq{
int32 chapterId = 1; //ID
int32 levelId = 2; //ID
}
message OldtimesFinishResp{
int32 code = 1;
}
//
message OldtimesReceiveReq{
int32 chapterId = 1; //ID
}
message OldtimesReceiveResp{
int32 code = 1;
}

View File

@ -27,4 +27,5 @@ message DBPagodaRecord {
int32 leadpos = 8; //
repeated LineUp line = 9; //
int32 costTime = 10; //@go_tags(`bson:"costTime"`) s
int32 tab = 11; //
}

View File

@ -19,19 +19,22 @@ message DBRaceMember {
string uid = 1; //id
string name = 2; //
string avatar = 3; //
string mount = 4; //
int32 hp = 5; //
int32 innermost = 6; //
bool ready = 7; //
bool isai = 8; //ai
bool isoff = 9; //线
int32 lv = 4; //
string mount = 5; //
int32 maxhp = 6; //
int32 currhp = 7; //
int32 innermost = 8; //
bool ready = 9; //
bool isai = 10; //ai
bool isoff = 11; //线
}
message DBRaceInvite {
string uid = 1; //id
string name = 2; //
string avatar = 3; //
int64 expired = 4; //
int32 lv = 4; //
int64 expired = 5; //
}
//
@ -45,7 +48,8 @@ message DBParkour {
int32 integral = 7; //
string captainid = 8; //id
repeated DBRaceInvite invite = 9; //
repeated DBRaceMember member = 10; //
repeated DBRaceMember member = 10; //
int32 reward = 11;//
}
//

View File

@ -9,8 +9,26 @@ message ParkourInfoReq {
//
message ParkourInfoResp {
DBParkour info = 1;
repeated DBParkour recommend = 2;
bool isopen = 1; //
DBParkour info = 2;
repeated DBRaceMember recommend = 3;
}
//
message ParkourViewPlayerReq{
repeated string uid = 1;
}
message ParkourData {
string uid = 1;
string name = 2; //
string avatar = 3; //
int32 lv = 4; //
int64 offlineTime = 5; //线 -1线
}
message ParkourViewPlayerResp{
repeated ParkourData player = 1;
}
//
@ -23,10 +41,10 @@ message ParkourChangeMtsResp {
string mtsid = 2;
}
//
message ParkourInfoChangePush {
DBParkour info = 1;
}
// //
// message ParkourInfoChangePush {
// DBParkour info = 1;
// }
//
message ParkourInviteReq {
@ -78,9 +96,9 @@ message ParkourTeamDisbandNoticePush {
}
//
//
message ParkourRaceMatchReq {
string captainid = 1; //id
}
//
@ -88,6 +106,34 @@ message ParkourRaceMatchResp {
}
//
message ParkourRaceMatchCancelReq {
string captainid = 1; //id
}
//
message ParkourJoinTeamReq{
string uid = 1;
}
message ParkourJoinTeamResp{
DBParkour team = 1;
}
//
message ParkourRaceMatchCancelResp {
}
//
message ParkourRaceMatchStartPush {
DBParkour team = 1;
}
//
message ParkourRaceMatchCancelPush {
DBParkour team = 1;
}
//
message ParkourRaceMatchSuccPush {
DBRace race = 1;
@ -95,7 +141,7 @@ message ParkourRaceMatchSuccPush {
//
message ParkourReadyReq {
string id = 1;
string battleid = 1;
}
//
message ParkourReadyResp {
@ -109,7 +155,7 @@ message ParkourRaceStartPush {
//
message ParkourShotReq {
string id = 1;
string battleid = 1;
}
//
@ -117,10 +163,19 @@ message ParkourShotResp {
}
//
message ParkourGetRewardReq {
int32 rid = 1; //id
}
message ParkourGetRewardResp {
DBParkour info =1;
}
//
message ParkourAvoidReq {
string id = 1;
int32 distance = 2;
string battleid = 1;
float distance = 2;
}
//
@ -128,20 +183,36 @@ message ParkourAvoidResp {
}
//Hp请求
message ParkourRecoverHpReq {
string battleid = 1;
}
//Hp请求
message ParkourRecoverHpResp {
bool issucc = 1; //
}
//
message ParkourAllSprintsPush {
int32 left = 1; //
}
message ParkourInfoChangePush {
DBParkour Info =1 ;
}
//hp变化通知
message ParkourPlayerHPChanagePush {
string uid = 1;
int32 hp = 2;
map<string,int32> change = 1; //key是uid,value是hp
// string uid = 1;
// int32 hp = 2;
}
//
message ParkourScoreChanagePush {
int32 red = 1;
int32 blue = 2;
int32 redscore = 1;
int32 redenergy = 2;
int32 bluescore = 3;
int32 blueenergy = 4;
}
//

View File

@ -35,4 +35,8 @@ message PrivilegeVipListReq {
message PrivilegeVipListResp {
DBVip data = 1;
}
message PrivilegeChangePush {
map<int32,PrivilegeList> privilege = 1;
}

View File

@ -106,12 +106,11 @@ message PvpFinishPush {
string battleid = 1;
}
message RPC_PVPTrusteeshipReq {
repeated string battleid = 1;
string uid = 2;
}
message RPC_PVPTrusteeshipResp {
}

View File

@ -15,6 +15,7 @@ message reputationTalenttestResp{
//
message reputationUpgradeReq{
int32 nodeId = 1; //ID
int32 raceType =2; //ID
}
message reputationUpgradeResp{}
@ -29,3 +30,9 @@ message reputationTalentResp{
Camp camp = 2;
}
//
message reputationTalentresetReq{
int32 raceType =1;
}
message reputationTalentresetResp{}

View File

@ -21,6 +21,7 @@ message SmithyForgeEquipReq{
int32 suiteId = 4;// ID (0 )
int32 position = 5; // ( -1)
map<int32,int32> hit = 6;// key cid value
int32 count = 7;//
}
message SmithyForgeEquipResp{

View File

@ -26,9 +26,15 @@ enum SociatyListFilter {
NOAPPLY = 2; //
APPLYING = 3; //
}
message SociatyInfo {
DBSociaty dbSociaty = 1;
SociatyMemberInfo master = 2;
}
//
message SociatyListReq { SociatyListFilter filter = 1; }
message SociatyListResp { repeated DBSociaty list = 1; }
message SociatyListResp { repeated SociatyInfo list = 1; }
//
message SociatySearchReq {

View File

@ -1,13 +1,7 @@
syntax = "proto3";
option go_package = ".;pb";
message SysFuncListReq {
repeated string keys = 1; //ID
}
message SysFuncListResp {
repeated string funcIds = 1; //ID
}
message SysFuncGetListReq {
repeated string keys = 1; //ID
@ -24,3 +18,7 @@ message SysFuncActivateReq {
message SysFuncActivateResp {
string cid = 1;
}
message SysFuncOpnePush {
repeated string cid = 1;
}

View File

@ -50,4 +50,9 @@ message TaskActiveReceiveResp {
//
message TaskFinishedPush { int32 taskId = 1; }
message TaskFinishedPush { int32 taskId = 1; }
message TaskActiveReceivePush {
int32 taskTag = 1;
int32 id = 2;
}

View File

@ -35,20 +35,3 @@ message DBTrollRecord{
int64 time = 5; //
}
message DBGoods{
string id = 1; //@go_tags(`bson:"_id"`) ID
int32 period = 2; //
int32 curPeriod = 3; //
int32 weight = 4; //
int32 price = 5; //
int32 time = 6; //
}
message DBTroll {
string id = 1; //@go_tags(`bson:"_id"`) ID
string uid = 2; //@go_tags(`bson:"uid"`) ID
int32 useCount = 3; // 使
map<int32,int32> items = 4; //
map<int32,DBGoods> goods = 5; // key ID
int32 lv = 6;//
}

View File

@ -43,6 +43,11 @@ message DBUser {
int32 talent2 = 29; //@go_tags(`bson:"talent2"`) 2
int32 talent3 = 30; //@go_tags(`bson:"talent3"`) 3
int32 talent4 = 31; //@go_tags(`bson:"talent4"`) 4
int32 merchantmoney=32; //@go_tags(`bson:"merchantmoney"`) )
repeated string perlist = 33; //@go_tags(`bson:"perlist"`) ,,
string defper1 = 34; //@go_tags(`bson:"defper1"`)
string defper2 = 35; //@go_tags(`bson:"defper2"`)
string defper3 = 36; //@go_tags(`bson:"defper3"`)
}
message DBUserSetting {
@ -70,6 +75,6 @@ message DBSign {
int32 signCount = 4; //@go_tags(`bson:"signCount"`)
int32 group = 5; //
int32 day = 6; //
repeated int32 puzzle= 7; //@go_tags(`bson:"puzzle"`) // 0 1 2
repeated int32 puzzle= 7; //@go_tags(`bson:"puzzle"`) // 0 1
int32 tips = 8; //
}

View File

@ -7,6 +7,7 @@ import "pagoda/pagoda_db.proto";
import "viking/viking_db.proto";
import "hunting/hunting_db.proto";
import "serverdata.proto";
import "comm.proto";
//
message UserLoginReq {
string account = 1; //
@ -70,6 +71,8 @@ message UserResChangedPush {
int32 talent2 = 12; //@go_tags(`bson:"talent2"`) 2
int32 talent3 = 13; //@go_tags(`bson:"talent3"`) 3
int32 talent4 = 14; //@go_tags(`bson:"talent4"`) 4
int32 merchantmoney = 15;//@go_tags(`bson:"merchantmoney"`)
repeated string perlist = 16;//@go_tags(`bson:"perlist"`)
}
//
message UserOtherTermLoginPush { string uid = 1; }
@ -218,4 +221,29 @@ message UserChangeTipsReq {
message UserChangeTipsResp {
DBSign data = 1;
}
//
message UserSellResReq { repeated UserAtno atno = 1; }
//
message UserSellResResp {
repeated UserAssets atn = 1;
bool IsSucc = 2;
}
//
message UserSwitchDefPerReq{
string defper1 = 1;
string defper2 = 2;
string defper3 = 3;
}
//
message UserSwitchDefPerResp{
bool issucc = 1;
string defper1 =2;
string defper2 = 3;
string defper3 = 4;
}

View File

@ -1,6 +1,8 @@
syntax = "proto3";
option go_package = ".;pb";
import "hero_db.proto";
import "comm.proto";
//
message DBPlayerBattleFormt {
int32 leadpos = 1; //
@ -38,6 +40,13 @@ message DBHeroBase {
string cid = 2; //id
int32 star = 3; //
int32 lv = 4; //
map<string, int32> property = 5; //
map<string, int32> addProperty = 6; //@go_tags(`bson:"addProperty"`)
map<string, int32> juexProperty = 7; //@go_tags(`bson:"juexProperty"`) //
map<string, int32> talentProperty = 8; //@go_tags(`bson:"talentProperty"`) //
map<string, int32> horoscopeProperty = 9; //@go_tags(`bson:"horoscopeProperty"`) //
map<string, int32> fetters = 10; //@go_tags(`bson:"fetters"`) //
repeated SkillData normalSkill = 11; //@go_tags(`bson:"normalSkill"`)
}
//
message DBArenaBattleRecord {

View File

@ -54,7 +54,7 @@ message ArenaChallengeRewardReq {
BattleReport report = 5; //
string revengeid = 6; //id
}
message ArenaChallengeRewardResp { bool issucc = 1; }
message ArenaChallengeRewardResp { bool issucc = 1;int32 integral = 2;int32 dan = 3;}
//
message ArenaRankReq {}

View File

@ -57,7 +57,7 @@ message BattleRole {
repeated SkillData normalSkill = 10; //@go_tags(`bson:"normalSkill"`)
repeated SkillData equipSkill = 11; //@go_tags(`bson:"equipSkill"`)
int32 PandaBuff = 12; //buff技能id
map<string, int32> property = 13; //
map<int32, int32> property = 13; //
bool ishelp = 14; //
int32 isboos = 15; //boos
int32 monsterid = 16; //id

View File

@ -154,4 +154,9 @@ enum EffectTipsType {
Not_Gain = 4; //
Not_Control = 5; //
Not_Action = 6; //
}
//
message ComChainEffect
{
repeated int32 roles = 1;
}

View File

@ -0,0 +1,38 @@
syntax = "proto3";
option go_package = ".;pb";
message Goods{
int32 period = 1; //
int32 curPeriod = 2; //
int32 price = 3; //
int64 time = 4; //
}
message CityInfo{
repeated int32 like = 1; // ID
repeated int32 unlike = 2; // ID
map<int32,int32> count = 3; //
int64 rtime = 4; //
}
message BagInfo{//
int32 count = 1; //
int32 price = 2; //
}
message DBCaravan {
string id = 1; //@go_tags(`bson:"_id"`) ID
string uid = 2; //@go_tags(`bson:"uid"`) ID
int32 useCount = 3; //@go_tags(`bson:"usecount"`) 使
map<int32,BagInfo> items = 4; //
map<int32,Goods> goods = 5; // key ID
map<int32,CityInfo> city = 6; //
int32 lv = 7;//
int64 profit= 8;//
int64 resettime = 9;//
int32 curcity = 10;//
int32 taskid = 11; // worldtask
int32 eventid = 12; // ID(id)
int64 tasktime = 13; //
int32 baglimit = 14; //
}

View File

@ -0,0 +1,52 @@
syntax = "proto3";
option go_package = ".;pb";
import "caravan_db.proto";
import "comm.proto";
//
message CaravanGetListReq {
}
//
message CaravanGetListResp {
DBCaravan data = 1;
}
message CaravanBuyOrSellReq {
int32 city = 1; // id
map<int32,int32> items = 2;
bool isBuy = 3; // true false
}
message CaravanBuyOrSellResp {
DBCaravan data = 1;
}
// city
message CaravanGotoCityReq {
int32 city = 1; // id
int32 ticket = 2; //
}
message CaravanGotoCityResp {
DBCaravan data = 1;
bool newtask = 2; //
}
//
message CaravanGetStoryReq {
int32 cid = 1;
int32 citystory = 2; //
}
message CaravanGetStoryResp {
DBCaravan data = 1;
bool bSuccess = 2; //
}
//
message CaravanTaskCompletePush {
DBCaravan data = 1;
bool bSuccess = 2; //
repeated UserAssets reward = 3; //
}

View File

@ -17,6 +17,7 @@ enum ChatType {
HeroShare = 3; //
EquipmentShare = 4; //
ItemShare = 5; //
Parkour = 6; //
}
message DBChat {

View File

@ -60,6 +60,7 @@ enum ErrorCode {
UserTalent2NoEnough = 1026; //2
UserTalent3NoEnough = 1027; //3
UserTalent4NoEnough = 1028; //4
UserMerchantNoEnough = 1029; //
// friend
FriendNotSelf = 1100; //
@ -229,6 +230,7 @@ enum ErrorCode {
LibraryLvReward = 2805; //
LibraryFetterTaskNoFound = 2806; //
LibraryPreTaskNoFinished = 2807; //
LibraryGiveMaxCount = 2808; //
// Battle
BattleValidationFailed = 2901; //
@ -282,6 +284,7 @@ enum ErrorCode {
SociatyTaskNoFound = 3040; //boss任务
SociatyTaskNoFinished = 3041; //
SociatyTaskReceived = 3042; //
SociatyApplyLvLimit = 3043; //
// arena
ArenaTicketBuyUp = 3101; //
@ -298,6 +301,8 @@ enum ErrorCode {
TrollMaxSellCount = 3303; //
TrollMaxItemCount = 3304; //
TrollRepeatedReward = 3305; //
TrollCity = 3306; //
TrollTask = 3307; //
// horoscope
HoroscopeNotTurnedOn = 3401; //
HoroscopeRestCDNoEnd = 3402; //cd未结束
@ -378,4 +383,12 @@ enum ErrorCode {
//reputation
ReputationTalentFull = 4501; //
ReputationNoPreNodeLv= 4502; //
// oldtimes
OldtimesReceived = 4601; //
OldtimesFinished = 4602; //
OldtimesLevelOver = 4603;//
OldtimesPreLevelNoFinished = 4604; //
OldtimesNoAllFinished = 4605; //
}

View File

@ -38,6 +38,7 @@ message DBHero {
map<string, int32> horoscopeProperty = 28; //@go_tags(`bson:"horoscopeProperty"`) //
int32 fulllvenr = 29; //@go_tags(`bson:"fulllvenr"`) // 使
string kongfuUid = 30; //@go_tags(`bson:"kongfuUid"`)//
map<string, int32> fetters = 31; //@go_tags(`bson:"fetters"`) //
}

View File

@ -5,11 +5,10 @@ message DBLibrary {
string id = 1; //@go_tags(`bson:"_id"`) ID
string uid = 2; //@go_tags(`bson:"uid"`) ID
int32 fid = 3; // id id
map<string, int32> hero = 4; // key: hid value: id
map<string, string> herofetter = 4; // key: hid value: DBHeroFetter ObjID
map<int32, int32> prize = 5; // key
int32 fetterlv = 6; //
int32 storyid = 7; // id
bool activation = 8; //
int32 storyid = 6; // id
int32 fidlv = 7; //
}
@ -21,8 +20,10 @@ message DBHeroFetter {
repeated int32 history = 4; // ID
int32 favorlv = 5; //
int32 favorexp = 6; //
repeated int32 stroyprize = 7; //
repeated int32 lvprize = 8; //
map<int32, int32> lvprize = 8; //
int32 givecount = 9; //
int64 ctime = 10; //
}
//

View File

@ -11,18 +11,11 @@ message LibraryGetFetterListReq {}
message LibraryGetFetterListResp { repeated DBHeroFetter data = 1; }
//
message LibraryGetRewardReq {
string objId = 1;
int32 fetterlv = 2; //
}
message LibraryGetRewardResp { DBLibrary data = 1; }
//
message LibraryGetStoryRewardReq {
string hid = 1; // ID
string oid = 1; // DBHeroFetter oid
int32 history = 2; // id
int32 rightend = 3; // rightend
}
message LibraryGetStoryRewardResp { DBHeroFetter data = 1; }
@ -30,7 +23,8 @@ message LibraryGetStoryRewardResp { DBHeroFetter data = 1; }
//
message LibraryUseGiftReq {
string heroid = 1; // id
map<string, int32> items = 2; // key ID value
string items = 2; // ID
int32 counts = 3; //
}
message LibraryUseGiftResp { DBHeroFetter data = 1; }
@ -61,3 +55,12 @@ message LibraryFetterstoryTaskReq {
int32 fetterId = 1; //ID
}
message LibraryFetterstoryTaskResp { repeated FetterTask list = 1; }
//
message LibraryFetterLvUpReq {
string libOid = 1; // id
}
message LibraryFetterLvUpResp {
DBLibrary data = 1;
}

View File

@ -1,18 +0,0 @@
syntax = "proto3";
option go_package = ".;pb";
enum AwaredType {
TypeNil = 0;
TypeAvailable = 1; //
TypeReceived = 2; //
}
message DBMainline {
string id = 1; //@go_tags(`bson:"_id"`) ID
string uid = 2; //@go_tags(`bson:"uid"`) ID
int32 chapterId = 3; //@go_tags(`bson:"chapterId"`) ID
int32 mainlineId = 4; //@go_tags(`bson:"mainlineId"`) 线ID
AwaredType awaredID = 5; //@go_tags(`bson:"awaredID"`) (int是考虑后续扩展有多个宝箱情况)
repeated int32 branchID = 6; // @go_tags(`bson:"branchID"`)
int32 intensity = 7; //
int32 ps = 8;//
}

View File

@ -1,53 +0,0 @@
syntax = "proto3";
option go_package = ".;pb";
import "mainline_db.proto";
import "battle_msg.proto";
//
message MainlineGetListReq {
}
//
message MainlineGetListResp {
repeated DBMainline data = 1;
}
//
message MainlineGetRewardReq {
string chapterObj = 1; // id
}
message MainlineGetRewardResp {
DBMainline data = 1; //
}
//
message MainlineChallengeReq {
string chapterObj = 1; // id
uint32 mainlineId = 2; // ID
int32 leadpos = 3; //
repeated string teamids = 4; //
}
message MainlineChallengeResp {
BattleInfo info = 1;
string chapterObj = 2; // id
uint32 mainlineId = 3; // ID
}
//
message MainlineChallengeOverReq {
string chapterObj = 1; // id
uint32 mainlineId = 2; // ID
BattleReport report = 3; //
}
message MainlineChallengeOverResp {
DBMainline data = 1; //
repeated string newheros = 2; //
int32 olv = 3; //
}
//
message MainlineNewChapterPush{
DBMainline data = 1;
}

View File

@ -0,0 +1,19 @@
syntax = "proto3";
option go_package = ".;pb";
message DBOldtimes{
string uid = 1;//@go_tags(`bson:"uid"`) ID
repeated Chapter chapters = 2; //@go_tags(`bson:"chapters"`)
}
message Chapter{
int32 cid=1; //@go_tags(`bson:"cid"`) ID
int32 status = 2; //@go_tags(`bson:"status"`) 0 1 2 3
int32 received = 3; //@go_tags(`bson:"received"`) 0 1
repeated Level levels = 4; //@go_tags(`bson:"levels"`)
}
message Level{
int32 lid = 1; //@go_tags(`bson:"lid"`) ID
int32 status = 2; //@go_tags(`bson:"status"`) 0 1 2 3
}

View File

@ -0,0 +1,42 @@
syntax = "proto3";
option go_package = ".;pb";
import "oldtimes_db.proto";
//
message OldtimesGetallReq{}
message OldtimesGetallResp{
DBOldtimes data = 1;
}
//
message OldtimesEnterReq{
int32 chapterId = 1;
int32 levelId = 2;
}
message OldtimesEnterResp{
int32 code = 1;
}
//
message OldtimesFinishReq{
int32 chapterId = 1; //ID
int32 levelId = 2; //ID
}
message OldtimesFinishResp{
int32 code = 1;
}
//
message OldtimesReceiveReq{
int32 chapterId = 1; //ID
}
message OldtimesReceiveResp{
int32 code = 1;
}

View File

@ -27,4 +27,5 @@ message DBPagodaRecord {
int32 leadpos = 8; //
repeated LineUp line = 9; //
int32 costTime = 10; //@go_tags(`bson:"costTime"`) s
int32 tab = 11; //
}

View File

@ -19,19 +19,22 @@ message DBRaceMember {
string uid = 1; //id
string name = 2; //
string avatar = 3; //
string mount = 4; //
int32 hp = 5; //
int32 innermost = 6; //
bool ready = 7; //
bool isai = 8; //ai
bool isoff = 9; //线
int32 lv = 4; //
string mount = 5; //
int32 maxhp = 6; //
int32 currhp = 7; //
int32 innermost = 8; //
bool ready = 9; //
bool isai = 10; //ai
bool isoff = 11; //线
}
message DBRaceInvite {
string uid = 1; //id
string name = 2; //
string avatar = 3; //
int64 expired = 4; //
int32 lv = 4; //
int64 expired = 5; //
}
//
@ -45,7 +48,8 @@ message DBParkour {
int32 integral = 7; //
string captainid = 8; //id
repeated DBRaceInvite invite = 9; //
repeated DBRaceMember member = 10; //
repeated DBRaceMember member = 10; //
int32 reward = 11;//
}
//

View File

@ -9,8 +9,26 @@ message ParkourInfoReq {
//
message ParkourInfoResp {
DBParkour info = 1;
repeated DBParkour recommend = 2;
bool isopen = 1; //
DBParkour info = 2;
repeated DBRaceMember recommend = 3;
}
//
message ParkourViewPlayerReq{
repeated string uid = 1;
}
message ParkourData {
string uid = 1;
string name = 2; //
string avatar = 3; //
int32 lv = 4; //
int64 offlineTime = 5; //线 -1线
}
message ParkourViewPlayerResp{
repeated ParkourData player = 1;
}
//
@ -23,10 +41,10 @@ message ParkourChangeMtsResp {
string mtsid = 2;
}
//
message ParkourInfoChangePush {
DBParkour info = 1;
}
// //
// message ParkourInfoChangePush {
// DBParkour info = 1;
// }
//
message ParkourInviteReq {
@ -78,9 +96,9 @@ message ParkourTeamDisbandNoticePush {
}
//
//
message ParkourRaceMatchReq {
string captainid = 1; //id
}
//
@ -88,6 +106,34 @@ message ParkourRaceMatchResp {
}
//
message ParkourRaceMatchCancelReq {
string captainid = 1; //id
}
//
message ParkourJoinTeamReq{
string uid = 1;
}
message ParkourJoinTeamResp{
DBParkour team = 1;
}
//
message ParkourRaceMatchCancelResp {
}
//
message ParkourRaceMatchStartPush {
DBParkour team = 1;
}
//
message ParkourRaceMatchCancelPush {
DBParkour team = 1;
}
//
message ParkourRaceMatchSuccPush {
DBRace race = 1;
@ -95,7 +141,7 @@ message ParkourRaceMatchSuccPush {
//
message ParkourReadyReq {
string id = 1;
string battleid = 1;
}
//
message ParkourReadyResp {
@ -109,7 +155,7 @@ message ParkourRaceStartPush {
//
message ParkourShotReq {
string id = 1;
string battleid = 1;
}
//
@ -117,10 +163,19 @@ message ParkourShotResp {
}
//
message ParkourGetRewardReq {
int32 rid = 1; //id
}
message ParkourGetRewardResp {
DBParkour info =1;
}
//
message ParkourAvoidReq {
string id = 1;
int32 distance = 2;
string battleid = 1;
float distance = 2;
}
//
@ -128,20 +183,36 @@ message ParkourAvoidResp {
}
//Hp请求
message ParkourRecoverHpReq {
string battleid = 1;
}
//Hp请求
message ParkourRecoverHpResp {
bool issucc = 1; //
}
//
message ParkourAllSprintsPush {
int32 left = 1; //
}
message ParkourInfoChangePush {
DBParkour Info =1 ;
}
//hp变化通知
message ParkourPlayerHPChanagePush {
string uid = 1;
int32 hp = 2;
map<string,int32> change = 1; //key是uid,value是hp
// string uid = 1;
// int32 hp = 2;
}
//
message ParkourScoreChanagePush {
int32 red = 1;
int32 blue = 2;
int32 redscore = 1;
int32 redenergy = 2;
int32 bluescore = 3;
int32 blueenergy = 4;
}
//

View File

@ -35,4 +35,8 @@ message PrivilegeVipListReq {
message PrivilegeVipListResp {
DBVip data = 1;
}
message PrivilegeChangePush {
map<int32,PrivilegeList> privilege = 1;
}

View File

@ -106,12 +106,11 @@ message PvpFinishPush {
string battleid = 1;
}
message RPC_PVPTrusteeshipReq {
repeated string battleid = 1;
string uid = 2;
}
message RPC_PVPTrusteeshipResp {
}

View File

@ -15,6 +15,7 @@ message reputationTalenttestResp{
//
message reputationUpgradeReq{
int32 nodeId = 1; //ID
int32 raceType =2; //ID
}
message reputationUpgradeResp{}
@ -29,3 +30,9 @@ message reputationTalentResp{
Camp camp = 2;
}
//
message reputationTalentresetReq{
int32 raceType =1;
}
message reputationTalentresetResp{}

View File

@ -21,6 +21,7 @@ message SmithyForgeEquipReq{
int32 suiteId = 4;// ID (0 )
int32 position = 5; // ( -1)
map<int32,int32> hit = 6;// key cid value
int32 count = 7;//
}
message SmithyForgeEquipResp{

View File

@ -26,9 +26,15 @@ enum SociatyListFilter {
NOAPPLY = 2; //
APPLYING = 3; //
}
message SociatyInfo {
DBSociaty dbSociaty = 1;
SociatyMemberInfo master = 2;
}
//
message SociatyListReq { SociatyListFilter filter = 1; }
message SociatyListResp { repeated DBSociaty list = 1; }
message SociatyListResp { repeated SociatyInfo list = 1; }
//
message SociatySearchReq {

View File

@ -1,13 +1,7 @@
syntax = "proto3";
option go_package = ".;pb";
message SysFuncListReq {
repeated string keys = 1; //ID
}
message SysFuncListResp {
repeated string funcIds = 1; //ID
}
message SysFuncGetListReq {
repeated string keys = 1; //ID
@ -24,3 +18,7 @@ message SysFuncActivateReq {
message SysFuncActivateResp {
string cid = 1;
}
message SysFuncOpnePush {
repeated string cid = 1;
}

View File

@ -50,4 +50,9 @@ message TaskActiveReceiveResp {
//
message TaskFinishedPush { int32 taskId = 1; }
message TaskFinishedPush { int32 taskId = 1; }
message TaskActiveReceivePush {
int32 taskTag = 1;
int32 id = 2;
}

View File

@ -35,20 +35,3 @@ message DBTrollRecord{
int64 time = 5; //
}
message DBGoods{
string id = 1; //@go_tags(`bson:"_id"`) ID
int32 period = 2; //
int32 curPeriod = 3; //
int32 weight = 4; //
int32 price = 5; //
int32 time = 6; //
}
message DBTroll {
string id = 1; //@go_tags(`bson:"_id"`) ID
string uid = 2; //@go_tags(`bson:"uid"`) ID
int32 useCount = 3; // 使
map<int32,int32> items = 4; //
map<int32,DBGoods> goods = 5; // key ID
int32 lv = 6;//
}

View File

@ -43,6 +43,11 @@ message DBUser {
int32 talent2 = 29; //@go_tags(`bson:"talent2"`) 2
int32 talent3 = 30; //@go_tags(`bson:"talent3"`) 3
int32 talent4 = 31; //@go_tags(`bson:"talent4"`) 4
int32 merchantmoney=32; //@go_tags(`bson:"merchantmoney"`) )
repeated string perlist = 33; //@go_tags(`bson:"perlist"`) ,,
string defper1 = 34; //@go_tags(`bson:"defper1"`)
string defper2 = 35; //@go_tags(`bson:"defper2"`)
string defper3 = 36; //@go_tags(`bson:"defper3"`)
}
message DBUserSetting {
@ -70,6 +75,6 @@ message DBSign {
int32 signCount = 4; //@go_tags(`bson:"signCount"`)
int32 group = 5; //
int32 day = 6; //
repeated int32 puzzle= 7; //@go_tags(`bson:"puzzle"`) // 0 1 2
repeated int32 puzzle= 7; //@go_tags(`bson:"puzzle"`) // 0 1
int32 tips = 8; //
}

View File

@ -7,6 +7,7 @@ import "pagoda_db.proto";
import "viking_db.proto";
import "hunting_db.proto";
import "serverdata.proto";
import "comm.proto";
//
message UserLoginReq {
string account = 1; //
@ -70,6 +71,8 @@ message UserResChangedPush {
int32 talent2 = 12; //@go_tags(`bson:"talent2"`) 2
int32 talent3 = 13; //@go_tags(`bson:"talent3"`) 3
int32 talent4 = 14; //@go_tags(`bson:"talent4"`) 4
int32 merchantmoney = 15;//@go_tags(`bson:"merchantmoney"`)
repeated string perlist = 16;//@go_tags(`bson:"perlist"`)
}
//
message UserOtherTermLoginPush { string uid = 1; }
@ -218,4 +221,29 @@ message UserChangeTipsReq {
message UserChangeTipsResp {
DBSign data = 1;
}
//
message UserSellResReq { repeated UserAtno atno = 1; }
//
message UserSellResResp {
repeated UserAssets atn = 1;
bool IsSucc = 2;
}
//
message UserSwitchDefPerReq{
string defper1 = 1;
string defper2 = 2;
string defper3 = 3;
}
//
message UserSwitchDefPerResp{
bool issucc = 1;
string defper1 =2;
string defper2 = 3;
string defper3 = 4;
}

View File

@ -226,6 +226,7 @@ export default defineComponent({
{ mainType: 'hunting', subs: [] },
{ mainType: 'horoscope', subs: [] },
{ mainType: 'pay', subs: [] },
{ mainType: 'arena', subs: [] },
{ mainType: 'reddot', subs: [] },
{ mainType: 'combat', subs: [] },
{ mainType: 'library', subs: [] },