上传 pb编译工具

This commit is contained in:
liwei1dao 2023-02-20 19:11:30 +08:00
parent 97d1a8f46f
commit eec9ff068d
108 changed files with 9490 additions and 2054 deletions

2
pb.bat
View File

@ -4,7 +4,7 @@ set PROJECT_ROOT=.\
set PROJECT_ROOT=.
set SRC=%PROJECT_ROOT%\src\pb\proto
set SRC=%PROJECT_ROOT%\src\pb\temop
set TAR=%PROJECT_ROOT%\src\pb\js
@REM protoc --proto_path=%SRC% --js_out=import_style=commonjs,binary:%TAR%\. %SRC%\*.proto

File diff suppressed because it is too large Load Diff

View File

@ -0,0 +1,9 @@
syntax = "proto3";
option go_package = ".;pb";
//
message DBAcademy {
string uid = 1;
map<int32, bool> level = 2;
map<string,bool> hero = 3;
}

View File

@ -0,0 +1,44 @@
syntax = "proto3";
option go_package = ".;pb";
import "academy/academy_db.proto";
import "battle/battle_msg.proto";
import "errorcode.proto";
///
message AcademyInfoReq {}
message AcademyInfoResp { DBAcademy info = 1; }
//
message AcademyChallengeReq { int32 level = 1; }
message AcademyChallengeResp {
ErrorCode code = 1; //
int32 level = 2;
BattleInfo info = 3;
}
//
message AcademyReceiveReq {
int32 level = 1;
int32 group = 2;
BattleReport report = 3; //
}
message AcademyReceiveResp { bool issucc = 1; }
//
message AcademyTeachingReq {
string heroId = 1;
}
message AcademyTeachingResp {
ErrorCode code = 1; //
string heroId = 2;
BattleInfo info = 3;
}
//
message AcademyTeachingReceiveReq {
string heroId = 1;
BattleReport report = 2; //
}
message AcademyTeachingReceiveResp { bool issucc = 1; }

View File

@ -0,0 +1,96 @@
syntax = "proto3";
option go_package = ".;pb";
import "hero/hero_db.proto";
//
message DBPlayerBattleFormt {
int32 leadpos = 1; //
repeated DBHero formt = 2;
}
//
message ArenaPlayer {
string uid = 1;
string name = 2;
string avatar = 3; //@go_tags(`bson:"avatar"`)
int32 lv = 4; //@go_tags(`bson:"lv"`)
int32 dan = 5; //
int32 integral = 6;
int32 rank = 7; //
DBPlayerBattleFormt defend = 8; //
bool isai = 9; //ai
int32 mformatid = 10; // AIId
int32 changeintegral = 11; //
}
enum BattleRecordState {
AttackWin = 0;
AttackLost = 1;
DefendkWin = 2;
DefendLost = 3;
WaitingRevenge = 4;
RevengeFailed = 5;
RevengeSucceeded = 6;
RevengeEnd = 7;
}
message DBHeroBase {
string oid = 1; //id
string cid = 2; //id
int32 star = 3; //
int32 lv = 4; //
}
//
message DBArenaBattleRecord {
string bid = 1; //id
int64 time = 2; //
bool iswin = 3; //
bool isdefend = 4; //
string rivalid = 5; //id
string rivalname = 6; //
int32 leadpos = 7; //
repeated DBHeroBase formt = 8; //
int32 addintegral = 9; //
BattleRecordState State = 10; //
}
//
message DBArenaUser {
string uid = 1; //id
string name = 2; //
string avatar = 3; //@go_tags(`bson:"avatar"`)
int32 lv = 4; //@go_tags(`bson:"lv"`)
int32 integral = 5; //
// int32 ticket = 6; //
int32 dan = 7; //
DBPlayerBattleFormt attack = 8; //
DBPlayerBattleFormt defend = 9; //
int32 streak = 10; //
int32 attackrate = 11; //
int32 defendrate = 12; //
int32 rank = 13; //
int32 buynum = 14; //
repeated DBArenaBattleRecord record = 15; //
int64 lastrtickettime = 16; //
int32 attackwinuum = 17; //
int32 attacktotaluum = 18; //
int32 defendwinuum = 19; //
int32 defendtotaluum = 20; //
repeated double loc = 21; // 使
bool isdef = 22; //
map<int32, DBNpc> npc = 23; // npc Cd
int32 prededuction = 24; //
}
// npc数据
message DBNpc {
int32 id = 1;
int64 cd = 2;
int32 index = 3;
}
//
message RPCModifyIntegralReq {
string uid = 1;
int32 integral = 2;
}

View File

@ -0,0 +1,100 @@
syntax = "proto3";
option go_package = ".;pb";
import "arena/arena_db.proto";
import "battle/battle_msg.proto";
import "errorcode.proto";
//
message ArenaInfoReq {}
//
message ArenaInfoResp { DBArenaUser info = 1; }
//
message ArenaOtherInfoReq { string otherId = 1; }
//
message ArenaOtherInfoResp { DBArenaUser info = 1; }
//
message ArenaSetAttFormtReq {
int32 leadpos = 1; //
repeated string formt = 2; //
}
//
message ArenaSetAttFormtResp { bool issucc = 1; }
//
message ArenaSetDefFormtReq {
int32 leadpos = 1; //
repeated string formt = 2; //
}
//
message ArenaSetDefFormtResp { bool issucc = 1; }
//
message ArenaMatcheReq {}
//
message ArenaMatcheResp { repeated ArenaPlayer players = 1; }
//
message ArenaChallengeReq {
string playerid = 1;
bool isai = 2; //ai
int32 mformatId = 3; // AIId
BattleFormation battle = 4; //
}
//
message ArenaChallengeResp {
ErrorCode code = 1; //
BattleInfo info = 2;
}
//
message ArenaChallengeRewardReq {
bool iswin = 1; //
bool isai = 2; //ai
int32 aiintegral = 3; // ai
string ainame = 4; // ai名称
BattleReport report = 5; //
string revengeid = 6; //id
}
message ArenaChallengeRewardResp { bool issucc = 1; }
//
message ArenaRankReq {}
//
message ArenaRankResp { repeated ArenaPlayer players = 1;DBArenaUser info = 2; }
//
message ArenaBuyReq { int32 buyNum = 1; }
message ArenaBuyResp {
bool issucc = 1; //
int32 ticket = 2; //
}
//
message ArenaDelRewardReq {
string bid = 1; //id
}
message ArenaDelRewardResp {
bool issucc = 1; //
string bid = 2; //id
}
//
message ArenaPlotReq {
int32 pid = 1; //id
BattleFormation battle = 2; //
}
message ArenaPlotResp {
ErrorCode code = 1; //
int32 pid = 2; //id
BattleInfo info = 3;
}
//
message ArenaPlotRewardReq {
int32 pid = 1; //id
BattleReport report = 2; //
}
message ArenaPlotRewardResp {
bool issucc = 1;
map<int32, DBNpc> npc = 2; // npc Cd
}

View File

@ -0,0 +1,18 @@
syntax = "proto3";
option go_package = ".;pb";
import "battle/battle_db.proto";
import "battle/battle_msg.proto";
//
message DBAutoBattle {
string id = 1; //@go_tags(`bson:"_id"`) ID
string uid = 2; //@go_tags(`bson:"uid"`) ID
bool autoWin = 3 ; //@go_tags(`bson:"autoWin"`)
bool maxExp = 4 ; //@go_tags(`bson:"maxExp"`)
bool autoBuy = 5 ; //@go_tags(`bson:"autoBuy"`)
int32 autoSell = 6; //@go_tags(`bson:"autoSell"`)
PlayType ptype = 7; //
int32 bossId = 8; //@go_tags(`bson:"bossId"`)
int32 difficulty = 9;
BattleFormation battle = 10; //
}

View File

@ -0,0 +1,46 @@
syntax = "proto3";
option go_package = ".;pb";
import "battle/battle_db.proto";
import "battle/battle_msg.proto";
import "comm.proto";
message AutoBattleChallengeReq {
int32 bossId = 1; // boos
int32 difficulty = 2; //
BattleFormation battle = 3;
bool autoWin = 4 ; //
bool maxExp = 5 ; //
bool autoBuy = 6 ; //
int32 autoSell = 7; //
PlayType ptype = 8; //
}
message AutoBattleChallengeResp {
BattleInfo info = 1;
}
message AutoBattleOverReq {
PlayType ptype = 1; //
BattleReport report = 2; //
}
//
message AutoBattleOverResp {
repeated UserAtno asset = 1;// GameRe // atn
BattleInfo info = 2;
bool over = 3; //
}
//
// message AutoBattleOverEnvPush {
// bool success = 1;
// }
//
message AutoBattleStopReq {
PlayType ptype = 1; //
}
//
message AutoBattleStopResp {
PlayType ptype = 1; //
}

View File

@ -8,6 +8,7 @@ enum BattleType {
pvp = 2;
pvb = 3;
eve = 4;
rtpvp = 5;
}
//
@ -22,6 +23,10 @@ enum PlayType {
arena = 7; //
academy = 8; //
heroteaching =9; //
combat = 10; //
enchant = 11; //
sociaty = 12; //
friendsmeet = 13; //
}
//
@ -51,12 +56,16 @@ message BattleRole {
repeated SkillData equipSkill = 11; //@go_tags(`bson:"normalSkill"`)
map<string, int32> property = 12; //
bool ishelp = 13; //
int32 isboos = 14; //boos
int32 monsterid = 15; //id
}
//
message DBBattleFormt {
int32 leadpos = 1; //
repeated BattleRole team = 2;
repeated BattleRole team = 2; //
repeated BattleRole systeam = 3; //
repeated BattleRole backupteam = 4; //
}
//
@ -73,4 +82,5 @@ message DBBattleRecord {
repeated DBBattleFormt buleflist = 10; //
repeated DBBattleComp roundresult = 11; //
DBBattleComp result = 12; //
repeated int32 tasks = 13; //
}

View File

@ -0,0 +1,178 @@
syntax = "proto3";
option go_package = ".;pb";
import "battle/battle_db.proto";
import "hero/hero_db.proto";
import "google/protobuf/any.proto";
message LineUp {
string cid = 1; // id
int32 star = 2; //
int32 lv = 3; //
}
//
message BattleFormation {
int32 leadpos = 1; //
repeated string format = 2; // 0-5
repeated string friendformat = 3; //
}
// pve ( 使 )
message BattleEVEReq {
PlayType ptype = 1; //
string title = 2; //
BattleFormation format = 3; //
repeated int32 sysformat = 4; //
repeated int32 backupformat = 5; //
repeated int32 buleformat = 6; //
}
// pve ( 使 )
message BattlePVEReq {
PlayType ptype = 1; //
string title = 2; //
BattleFormation format = 4; //
repeated int32 mformat = 5; //
}
//
message PVPFormation {
string uid = 1; //id
int32 leadpos = 2; //
repeated DBHero format = 3; // 0-5
}
// pvp ( 使 )
message BattlePVPReq {
PlayType ptype = 1; //
string title = 2; //
PVPFormation redformat = 4; //
PVPFormation buleformat = 5; //
}
// pvp ( 使 )
message BattleRTPVPReq {
PlayType ptype = 1; //
string title = 2; //
string redCompId = 6; //id
repeated BattleFormation redformat = 7; //
string blueCompId = 8; //id
repeated BattleFormation bulefformat = 9; //
}
// pvb (boos战专用)
message BattlePVBReq {
PlayType ptype = 1; //
string title = 2; //
repeated BattleFormation format = 4; //
repeated int32 mformat = 5; //
}
//
message BattleInfo {
string id = 1; //id
string title = 2; //
string scene = 3; //
BattleType btype = 4; //
PlayType ptype = 5; //
string redCompId = 6; //id
repeated DBBattleFormt redflist = 7; //
string blueCompId = 8; //id
repeated DBBattleFormt buleflist = 9; //
repeated int32 tasks = 10; //
}
message BattleCmd {
string cmdtype = 1;
uint32 index = 2;
bytes value = 3;
}
//
message BattleReport {
BattleInfo info = 1;
int32 Costtime = 2; // ms
repeated BattleCmd incmd = 3; //
repeated BattleCmd outcmd = 4; //
repeated int32 completetask = 5; //
int32 death = 6; //
int32 round = 7; //
int32 harm = 8; //
}
//
message BattleRpcMessage {
uint64 rid = 1; //id
string method = 2; //
google.protobuf.Any data = 3; //
}
//
message BattleCheckResults {
bool ischeck = 1; //
}
//
message BattleGetInfoReq {
string battleid = 1;
}
//
message BattleGetInfoResp {
string battleid = 1;
BattleStateInfo info = 2;
}
//
message BattleCreateServerReq {
BattleInfo info= 1;
}
//
message BattleCreateServerResp {
bool issucc= 1;
}
//
message BattleInCmdReq {
string battleid = 1;
int32 side = 2;
BattleCmd in = 3;
}
//
message BattleInCmdResp {
string battleid = 1;
BattleCmd in = 2;
bool issucc = 3;
}
//
message BattleOutCmdPush {
string battleid = 1;
repeated BattleCmd cmd = 2;
}
//
message BattleFinishPush {
string battleid = 1;
}
//
message BattleConcedeReq {
string battleid = 1;
int32 side = 2;
}
//
message BattleConcedeResp {
bool issucc = 1;
}
//
message BattleStateInfo
{
BattleInfo info = 1;
repeated BattleCmd outCmds = 2;
repeated BattleCmd inputCmds = 3;
}

View File

@ -0,0 +1,141 @@
syntax = "proto3";
option go_package = ".;pb";
import "battle/battle_db.proto";
import "battle/battle_msg.proto";
//
message ComModifyOperate{
int32 to = 1;
float nv =2; //
bool reset = 3;//
}
//
message ComStartFight{
int32 reserve =1;
}
//
message ComInitFight{
int32 curWave =1; //
int32 redEntryRid =2; // side=1
int32 buleEntryRid =3; // side = 2;
int32 playType = 4; //
repeated BattleRole roles = 5; //
}
//
message ComDeleteRole{
int32 to = 1;
}
//
message ComEndFight{
string fightId = 1;
int32 winSide =2;
int32 totalRound =3; //
int32 RedDeath = 4; //
int32 buleDeath = 5; //
}
//
message ComSkillInfo{
int32 skillId = 1;
int32 lv = 2;
int32 maxCd = 3;
int32 cd = 4;
bool showEffect = 5;//CD恢复特效
}
//
message ComStartAction{
int32 from = 1; //
int32 target = 2; //
int32 curRound = 3;
repeated ComSkillInfo skillInfo = 4;
}
//CD
message ComSkillCDAction{
int32 from = 1;
repeated ComSkillInfo skillInfo = 2;
}
//
message ComStopAction{
int32 from = 1; //
}
//
message ComWaitInputSkill{
bool auto = 1;
int32 side = 2;
int32 skillId = 3;
int32 target = 4;
int32 curRound = 5;
}
//
message ComSkillAtk{
int32 from = 1;
int32 skillid = 2;
int32 lv = 3;
int32 param = 4;
int32 target = 5; //
repeated ComSkillAfterAtk comList = 6;
string aniName = 7; //使
}
//
message ComSkillAfterAtk{
int32 skillid = 1;
int32 from = 2;
repeated int32 target= 4; //()
repeated BattleCmd comList = 5;
}
//buff
message ComMondifyBuff{
int32 to = 1;
int64 gid = 2; //id
int32 buffId = 3; //id
int32 overlapNum = 4; //
float param = 5; // -
int32 operate = 6; // 0 1 2
}
//
message ComRebirth{
int32 to = 1;
}
//
message ComModifyHealth{
int32 to = 1;
int32 from = 2;
bool baoji = 3;
bool hideDmg = 4;
int32 modifyType = 5;
float num = 6;
int32 nhp = 7;
int32 mhp = 8;
}
//
message ComTeachTask{
int32 id = 1;
int32 count = 2;
}
//
message ComStory{
int32 id = 1;
int32 storyId = 2;
}
//
message ComGuide{
int32 id = 1;
int32 guideId = 2;
}
//
message ComCreateRoles{
int32 side = 1;
int32 entryRid = 2;
int32 playType = 3;
repeated BattleRole roles = 4;
}
//
message ComPlayEffect{
string effectName = 1;
int32 side = 2;
}
//
message ComEmitCountdown
{
int32 reserve =1;
}

View File

@ -1,65 +0,0 @@
syntax = "proto3";
option go_package = ".;pb";
import "battle_db.proto";
import "hero_db.proto";
message LineUp {
string cid = 1; // id
int32 star = 2; //
int32 lv = 3; //
}
//
message BattleFormation {
int32 leadpos = 1; //
repeated string format = 2; // 0-5
repeated string friendformat = 3; //
}
// pve ( 使 )
message BattleEVEReq {
PlayType ptype = 1; //
string title = 2; //
repeated int32 redformat = 3; //
repeated int32 buleformat = 4; //
}
// pve ( 使 )
message BattlePVEReq {
PlayType ptype = 1; //
string title = 2; //
BattleFormation format = 4; //
repeated int32 mformat = 5; //
}
//
message PVPFormation {
string uid = 1; //id
int32 leadpos = 2; //
repeated DBHero format = 3; // 0-5
}
// pve ( 使 )
message BattlePVPReq {
PlayType ptype = 1; //
string title = 2; //
PVPFormation redformat = 4; //
PVPFormation buleformat = 5; //
}
//
message BattleInfo {
string id = 1; //id
string title = 2; //
BattleType btype = 3; //
PlayType ptype = 4; //
string redCompId = 5; //id
repeated DBBattleFormt redflist = 6; //
string blueCompId = 7; //id
repeated DBBattleFormt buleflist = 8; //
repeated int32 tasks = 9; //
}
//
message BattleReport {
BattleInfo info = 1;
int32 Costtime = 2; // ms
bytes process = 3; //
repeated int32 completetask = 4; //
}

View File

@ -26,8 +26,8 @@ message DBChat {
string suid = 4; //id
int32 slv = 5; //
string ruid = 6; //id channel == Private
int32 channelId = 7; //Id
string unionId = 8; //id
int32 channelId = 7; //@go_tags(`bson:"channelId"`) ID跨服频Id
string unionId = 8; //@go_tags(`bson:"unionId"`)id
string stag = 9; //id
string avatar = 10; //
string uname = 11; //
@ -36,5 +36,7 @@ message DBChat {
int64 appendInt = 14; //@go_tags(`bson:"appendInt"`)
string appendStr = 15; //@go_tags(`bson:"appendStr"`)
string appendBool = 16; //@go_tags(`bson:"appendBool"`)
bytes appendBytes = 17; //@go_tags(`bson:"appendInt"`)
bytes appendBytes = 17; //@go_tags(`bson:"appendBytes"`)
bool display = 18; //@go_tags(`bson:"display"`)
repeated string appendStrs = 19; //@go_tags(`bson:"appendStrs"`)
}

View File

@ -1,6 +1,6 @@
syntax = "proto3";
option go_package = ".;pb";
import "chat_db.proto";
import "chat/chat_db.proto";
//
message ChatMessagePush { DBChat chat = 1; }
@ -22,19 +22,20 @@ message ChatChanageChannelResp {
message ChatGetListReq {
ChatChannel channel = 1; //
int32 channelId = 2; //id
string unionId = 3; //id
}
//
message ChatGetListResp { repeated DBChat chats = 1; }
//
message ChatGetCrossListReq {
ChatChannel channel = 1; //
int32 channelId = 2; //id
}
// //
// message ChatGetCrossListReq {
// ChatChannel channel = 1; //
// int32 channelId = 2; //id
// }
//
message ChatGetCrossListResp { repeated DBChat chats = 1; }
// //
// message ChatGetCrossListResp { repeated DBChat chats = 1; }
//
message ChatSendReq {
@ -56,22 +57,22 @@ message ChatSendResp {
bool issucc = 1; //
}
//
message ChatSendCrossReq {
string avatar = 1; //
string uname = 2; //
int32 ulv = 3; //
ChatChannel channel = 4; //
string targetId = 5; //id
ChatType ctype = 6; //
string content = 7; //
int64 appendInt = 8; //@go_tags(`bson:"appendInt"`)
string appendStr = 9; //@go_tags(`bson:"appendStr"`)
string appendBool = 10; //@go_tags(`bson:"appendBool"`)
bytes appendBytes = 11; //@go_tags(`bson:"appendInt"`)
}
// //
// message ChatSendCrossReq {
// string avatar = 1; //
// string uname = 2; //
// int32 ulv = 3; //
// ChatChannel channel = 4; //
// string targetId = 5; //id
// ChatType ctype = 6; //
// string content = 7; //
// int64 appendInt = 8; //@go_tags(`bson:"appendInt"`)
// string appendStr = 9; //@go_tags(`bson:"appendStr"`)
// string appendBool = 10; //@go_tags(`bson:"appendBool"`)
// bytes appendBytes = 11; //@go_tags(`bson:"appendInt"`)
// }
//
message ChatSendCrossResp {
bool issucc = 1; //
}
// //
// message ChatSendCrossResp {
// bool issucc = 1; //
// }

View File

@ -0,0 +1,16 @@
syntax = "proto3";
option go_package = ".;pb";
message DBCombatUser {
string uid = 1; //uid
map<int32, DBCombatLevel> level = 2; //
}
message DBCombatLevel {
int32 id = 1;
map<string,string> data = 2; //
repeated int32 passmanster= 3; //
repeated int32 passdrop= 4; //
bool pass = 5; //
int32 progress = 6; //
}

View File

@ -0,0 +1,69 @@
syntax = "proto3";
option go_package = ".;pb";
import "errorcode.proto";
import "comm.proto";
import "combat/combat_db.proto";
import "battle/battle_msg.proto";
//
message CombatInReq {
int32 id = 1; //id
}
//
message CombatInResp {
DBCombatLevel level = 2; //
}
message CombatUpdateLevelReq {
int32 level = 1; //id
map<string,string> data = 2; //
}
message CombatUpdateLevelResp {
bool succ = 1; //
int32 level = 2; //id
}
//
message CombatChallengeReq {
int32 level = 1; //id
int32 manster = 2; //id
BattleFormation battle = 3; //
}
//
message CombatChallengeResp {
ErrorCode code = 1; //
int32 level = 2; //id
int32 manster = 3;
BattleInfo info = 4;
}
//
message CombatChallengeReceiveReq {
int32 level = 1; //id
int32 manster = 2;
BattleReport report = 3; //
}
//
message CombatChallengeReceiveResp {
bool issucc = 1;
int32 level = 2; //id
bool pass = 3; //
}
//
message CombatDropReq {
int32 level = 1; //id
int32 drop = 2; //id
}
//
message CombatDropResp {
ErrorCode code = 1; //
repeated UserAssets atns = 2; //
int32 level = 3; //id
bool pass = 4; //
}

View File

@ -1,9 +0,0 @@
syntax = "proto3";
option go_package = ".;pb";
message DBCombatUser {
string uid = 1; //uid
int32 currlevel = 2; //
repeated int32 passmanster= 3; //
repeated int32 passdrop= 4; //
}

View File

@ -1,57 +0,0 @@
syntax = "proto3";
option go_package = ".;pb";
import "errorcode.proto";
import "comm.proto";
import "battle_msg.proto";
//
message CombatInReq {
int32 id = 1; //id
}
//
message CombatInResp {
int32 id = 1; //id
}
//
message CombatOutReq {
int32 id = 1; //id
}
//
message CombatOutResp {
int32 id = 1; //id
}
//
message CombatChallengeReq {
int32 manster = 1; //id
BattleFormation battle = 2; //
}
//
message CombatChallengeResp {
ErrorCode code = 1; //
int32 manster = 2;
BattleInfo info = 3;
}
//
message CombatChallengeReceiveReq {
int32 manster = 1;
BattleReport report = 2; //
}
//
message CombatChallengeReceiveResp { bool issucc = 1; }
//
message CombatDropReq {
int32 drop = 1; //id
}
//
message CombatDropResp {
ErrorCode code = 1; //
repeated UserAssets atns = 2; //
}

View File

@ -93,6 +93,11 @@ enum HeroAttributesType {
Crit = 4; //
}
message SkillData {
int32 skillID = 1;
int32 skillLv = 2;
}
// *cfg.Game_atn
message UserAssets {
string A = 1;
@ -100,6 +105,14 @@ message UserAssets {
int32 N = 3;
}
// ATNO
message UserAtno {
string A = 1;
string T = 2;
int32 N = 3;
string O = 4;
}
message TaskParam {
int32 first = 1; //
int32 second = 2; //
@ -110,3 +123,54 @@ message RtaskParam {
int32 param2 = 2;
int32 param3 = 3;
}
message UIdReq { string uid = 1; }
message NameReq { string name = 1; }
message EmptyReq {}
message EmptyResp {}
// rpc 1
message RPCGeneralReqA1 { string param1 = 1; }
// rpc 1
message RPCGeneralReqA2 {
string param1 = 1;
string param2 = 2;
}
// rpc 1
message RPCGeneralReqA3 {
string param1 = 1;
string param2 = 2;
string param3 = 3;
}
// rpc 1
message RPCGeneralReqA4 {
string param1 = 1;
string param2 = 2;
string param3 = 3;
string param4 = 4;
}
// rpc 1
message RPCRTaskReq {
string uid = 1;
int32 taskType = 2;
repeated int32 param = 3;
}
//
message ServiceDBInfo{
string serverid = 1; //@go_tags(`bson:"serverid"`)
string serverName = 2; //@go_tags(`bson:"serverName"`)
string owner = 3; //@go_tags(`bson:"owner"`)
string cross = 4; //@go_tags(`bson:"cross"`)
string crossId = 5; //@go_tags(`bson:"crossId"`)
string singleserver = 6; //@go_tags(`bson:"singleserver"`)
int64 opentime = 7; //@go_tags(`bson:"opentime"`)
bool redisIsCluster = 8; //@go_tags(`bson:"redisIsCluster"`)
repeated string redisAddr = 9; //@go_tags(`bson:"redisAddr"`)
string redisPassword = 10; //@go_tags(`bson:"redisPassword"`)
int32 redisDb = 11; //@go_tags(`bson:"redisDb"`)
string MongodbUrl = 12; //@go_tags(`bson:"MongodbUrl"`)
string mongodbDatabase = 13; //@go_tags(`bson:"mongodbDatabase"`)
}

View File

@ -0,0 +1,26 @@
syntax = "proto3";
option go_package = ".;pb";
import "battle/battle_msg.proto";
message DBEnchant {
string id = 1; //@go_tags(`bson:"_id"`) ID
string uid = 2; //@go_tags(`bson:"uid"`) ID
map<int32,int64> boss = 3; // key boss value
int32 buyCount = 4;//@go_tags(`bson:"buyCount"`)
int64 cTime = 5; //@go_tags(`bson:"cTime"`)
map<int32,int32> bossTime = 6; //@go_tags(`bson:"bossTime"`)
int64 recoveryTime = 7; //@go_tags(`bson:"recoveryTime"`) //
}
//
message DBEnchantRank {
string id = 1; //@go_tags(`bson:"_id"`) ID
string uid = 2; //@go_tags(`bson:"uid"`) ID
int32 bosstype = 3; // boss类型塔类型
string nickname = 4;//
int32 lv = 5; //
int32 leadpos = 6; //
repeated LineUp line = 7; //
int32 costTime = 8; //@go_tags(`bson:"costTime"`) s
int64 score = 9; //@go_tags(`bson:"score"`)
}

View File

@ -0,0 +1,52 @@
syntax = "proto3";
option go_package = ".;pb";
import "enchant/enchant_db.proto";
import "battle/battle_msg.proto";
message EnchantGetListReq {
}
message EnchantGetListResp {
DBEnchant data = 1;
}
//
message EnchantChallengeReq {
int32 bossType = 1; // boos
BattleFormation battle = 2;
}
message EnchantChallengeResp {
BattleInfo info = 1;
int32 bossType = 2; // boos
}
message EnchantChallengeOverReq {
int32 bossType = 1; // boos
BattleReport report = 2; //
int64 score = 3; //
}
//
message EnchantChallengeOverResp {
DBEnchant data = 1;
}
//
message EnchantBuyReq {
int32 count = 1;//
}
message EnchantBuyResp {
DBEnchant data = 1;
}
//
message EnchantRankListReq{
int32 boosType = 1; // boss
bool friend = 2; //
}
message EnchantRankListResp{
repeated DBEnchantRank ranks = 1; // boss类型
}

View File

@ -9,6 +9,16 @@ message EquipmentAttributeEntry {
int32 Lv = 4; //
int32 Value = 5; //
int32 BaseValue = 6; //
int32 EnchValue =7; //
}
// /or饰品
message EquipmentSkillEntry {
int32 Id = 1; //id
int32 libraryid = 2; //id
string AttrName = 3; //
int32 SkillId = 4; //id
int32 Lv = 5; //
}
//
@ -26,4 +36,6 @@ message DB_Equipment {
uint32 overlayNum = 9; //@go_tags(`bson:"overlayNum"`)
bool isInitialState = 10; //@go_tags(`bson:"isInitialState"`)
bool islock = 11; //@go_tags(`bson:"islock"`)
repeated EquipmentSkillEntry adverbskill =
12; //@go_tags(`bson:"adverbskill"`)
}

View File

@ -1,6 +1,7 @@
syntax = "proto3";
option go_package = ".;pb";
import "equipment_db.proto";
import "equipment/equipment_db.proto";
import "comm.proto";
//
message EquipmentGetListReq {}
@ -55,3 +56,41 @@ message EquipmentSellReq { repeated string EquipIds = 1; }
//
message EquipmentSellResp { bool IsSucc = 1; }
//
message EquipmentForgReq {
int32 forgid = 1;
int32 num = 2;
}
//
message EquipmentForgResp {
bool issucc = 1;
repeated UserAssets reward = 2;
}
//
message EquipmentWashReq { string eid = 1; }
message EquipmentWashResp {
string eid = 1;
repeated EquipmentAttributeEntry adverbEntry = 2;
}
//
message EquipmentWashConfirmReq {
string eid = 1;
repeated int32 pids = 2;
}
message EquipmentWashConfirmResp { bool issucc = 1; }
//
message EquipmentEnchReq {
string eid = 1;
string itemid = 2;
int32 index = 3;
}
//
message EquipmentEnchResp {
bool issucc = 1;
DB_Equipment Equipment = 2;
}

View File

@ -1,6 +1,6 @@
syntax = "proto3";
option go_package = ".;pb";
// go:generate stringer -type ErrorCode -linecomment
enum ErrorCode {
Success = 0; //
NoFindService = 10; //
@ -26,6 +26,7 @@ enum ErrorCode {
ConfigurationException = 103; //
ConfigNoFound = 104; //
UserLogined = 105; //
NoOpened = 106; //
// user
SecKeyInvalid = 1000; //
@ -43,6 +44,13 @@ enum ErrorCode {
UserExpandNull = 1012; //
UserExpNoEnough = 1013; //
UserFriendNoEnough = 1014; //
UserSociatyCoinNoEnough = 1015; //
UserArenaCoinNoEnough = 1016; //
UserVitNoEnough = 1017; //
UserVitLimit = 1018; //
UserMoongoldNoEnough=1019; //
UserOffline = 1020; //线
UserNofound = 1021; //
// friend
FriendNotSelf = 1100; //
@ -62,6 +70,11 @@ enum ErrorCode {
FriendZanSelf = 1114; //
FriendPointLimit = 1115; //线
FriendNoreceived = 1116; //
FriendQiecuoTimeout = 1117; //
FriendQiecuoRequested = 1118; //
FriendQiecuoNoRequest = 1119; //
FriendQiecuoing = 1120; //
FriendQiecuoTargetPk = 1121; //
// item
ItemsNoEnough = 1200; //
@ -70,6 +83,7 @@ enum ErrorCode {
ItemsGirdAmountUpper = 1203; //
ItemsUseNotSupported = 1204; //使
ItemsUseNoCanSell = 1205; //
ItemsBuyPsUpperLimit = 1206; //
// hero
HeroNoExist = 1300; //
@ -97,6 +111,7 @@ enum ErrorCode {
DrawCardTypeNotFound = 1322; //
HeroMaxSkillLv = 1323; //
HeroAlreadyKongFuStatus = 1324; //
HeroLvNoEnough = 1325; //
// equipment
EquipmentOnFoundEquipment = 1400; //
@ -111,6 +126,7 @@ enum ErrorCode {
MainlinePreNotFound = 1503; //
MainlineRepeatReward = 1504; //
MainlineCompleteReward = 1505; //
MainlineNoEnoughStar = 1506; //
// task
TaskInit = 1600; //
@ -174,15 +190,129 @@ enum ErrorCode {
BattleNoFoundRecord = 2501; //
LinestoryTaskFinished = 2601; //
LinestorySubTaskFinished = 2602; //
LinestoryNoReceive = 2602; //
LinestoryTaskDisabledEnter = 2603; //
LinestoryPreTaskNoFinished = 2604; //
LinestoryChapterNoOpen = 2604; //
LinestoryPreNoComplete = 2605; //
// hunting
HuntingLvErr = 2701; //
HuntingBoosType = 2702; // BOSS
HuntingBuyMaxCount = 2703; //
HuntingMaxChallengeCount = 2704; //
HuntingNoChallengeCount = 2705; //
// Enchant
EnchantLvErr = 2711; //
EnchantBoosType = 2712; // BOSS
EnchantBuyMaxCount = 2713; //
EnchantMaxChallengeCount = 2714; //
EnchantNoChallengeCount = 2715; //
// library
LibraryMaxLv = 2801; //
LibraryNoData = 2802; //
LibraryActivation = 2803; //
LibraryReward = 2804; //
LibraryLvReward = 2805; //
LibraryFetterTaskNoFound = 2806; //
LibraryPreTaskNoFinished = 2807; //
// Battle
BattleValidationFailed = 2901; //
BattleNoWin = 2902; //
BattleCreateFailed = 2903; //
BattleInCmdFailed = 2904; //
BattleUserOff = 2905; //线
// sociaty
SociatyNoFound = 3000; //
SociatyAdded = 3001; //
SociatyDiamondNoEnough = 3002; //
SociatyNoMember = 3003; //
SociatyNoRight = 3004; //
SociatyNoAdded = 3005; //
SociatyDismiss = 3006; //
SociatyQuit = 3007; //退
SociatyAgree = 3008; //-
SociatyRefuse = 3009; //-
SociatyLogParams = 30010; //
SociatyMasterNoDiss = 30011; //
SociatySettingJob = 30012; //
SociatySetting = 30013; //
SociatyNoAccuse = 30014; //
SociatySign = 30015; //
SociatySigned = 30016; //
SociatyCDLimit = 30017; // CD时间限制
SociatyApplyMax = 30018; //
SociatySelfSetting = 30019; //
SociatyMemberCountLimit = 30020; //
SociatyRewardReceived = 30021; //
SociatyRewardReceive = 30022; //
SociatyResource = 30023; //
SociatyBelongTo = 30025; //
SociatyApplied = 30026; //
SociatyAppyLvNoEnough = 30027; //
SociatyTaskValidation = 30028; //
SociatyActivityNoEnough = 30029; //
SociatyAcitvityReceive = 30030; //
SociatyDismissed = 30031; //
SociatyNameExist = 30032; //
SociatyQuitNoAllowed = 30033; //退
SociatyNoMaster = 30034; //
SociatyNoFormation = 30035; //
SociatyTicketsNoEnough = 30036; //
SociatySportsNoinit = 30037; //
SociatySportsEnd = 30038; //
SociatyTeamUnlock = 30039; //
SociatyTaskNoFound = 30040; //boss任务
SociatyTaskNoFinished = 30041; //
SociatyTaskReceived = 30042; //
// arena
ArenaTicketBuyUp = 3101; //
ArenaTicketNotEnough = 3102; //
ArenaTicketNpcInCd = 3103; // cd中
// talent
TalentRepeatLearn = 3201; //
TalentErrData = 3202; ///
TalentUnLockerBefore = 3203; //
TalentResetState = 3204; //
// trolltrain
TrollBuyMax = 3301; //
TrollSellMax = 3302; //
TrollMaxSellCount = 3303; //
TrollMaxItemCount = 3304; //
TrollRepeatedReward = 3305; //
// horoscope
HoroscopeNotTurnedOn = 3401; //
HoroscopeRestCDNoEnd = 3402; //cd未结束
// privileges
PrivilegeNotFound = 3501; //
PrivilegeRenewTime = 3502; //
VipLvError = 3503; // Vip等级不足
VipGiftError = 3504; // Vip礼包购买失败
VipBuyRepeat = 3505; // Vip礼包重复购买
// growtask
GrowtaskReceive = 3601; //
GrowtaskAdvReceive = 3602; //
// pay
PayBuyNumNotEnough = 3701; //
PayRenewTimeErr = 3702; //
PayOrderCompleted = 3703; //
// worldtask
WorldtaskFinish = 3801; //
WorldtaskLvNotEnough = 3802; //
WorldtaskNoAccept = 3803; //
WorldtaskNoComplete = 3804; //
WorldtaskFinihed = 3805; //
WorldtaskLastUnFinished = 3806; //
WorldtaskGroupIdNosame = 3807; //ID不一致
// academy
AcademyTaskNoCompleteTask = 3901; //
// AutoBattle
AutoBattleNoData = 4001; //
AutoBattleStatesErr = 4002; //
}

View File

@ -0,0 +1,23 @@
syntax = "proto3";
option go_package = ".;pb";
enum CommentState {
Release = 0; //
Offline = 1; //
}
//
message DBComment {
string id = 1; //@go_tags(`bson:"_id"`) ID
string heroid = 2; //id
string heroobjid = 3; //id
string uid = 4; //id
string stage = 5; //id
string avatar = 6; //
string uname = 7; //
int32 ulv = 8;
CommentState state = 9; //
int64 ctime = 10; //
string content = 11; //
int32 starlist = 12; //
}

View File

@ -0,0 +1,53 @@
syntax = "proto3";
option go_package = ".;pb";
import "forum/forum_db.proto";
import "hero/hero_db.proto";
import "equipment/equipment_db.proto";
//
message ForumGetListReq {
string herocid = 1; //id
}
//
message ForumGetListResp { repeated DBComment comment = 1; }
//
message ForumReleaseCommentReq {
string avatar = 1; //
string uname = 2; //
int32 ulv = 3; //
string herocid = 4; //id
string herooid = 5; //id
string content = 6; //
}
//
message ForumReleaseCommentResp { DBComment comment = 1; }
//
message ForumWatchHeroReq {
string uid = 1; //id
string stag = 2; //id
string herocId = 3; //cid
string herooId = 4; //id
}
//
message ForumWatchHeroResp {
DBHero hero = 1;
repeated DB_Equipment equipID = 2; //
}
//
message ForumLikeReq {
string herocid = 1; //id
string cid = 2; //id
bool islike = 3; //
}
//
message ForumLikeResp {
string cid = 1; //id
bool islike = 2; //
bool issucc = 3; //
}

View File

@ -1,22 +0,0 @@
syntax = "proto3";
option go_package = ".;pb";
enum CommentState {
Release = 0; //
Offline = 1; //
}
//
message DBComment {
string id = 1; //@go_tags(`bson:"_id"`) ID
string heroid = 2; //id
string heroobjid = 3; //id
string uid = 4; //id
string stage = 5; //id
string avatar = 6; //
string uname = 7; //
CommentState state = 8; //
int64 ctime = 9; //
string content = 10; //
int32 starlist = 11; //
}

View File

@ -1,55 +0,0 @@
syntax = "proto3";
option go_package = ".;pb";
import "forum_db.proto";
import "hero_db.proto";
//
message ForumGetListReq {
string herocid = 1; //id
}
//
message ForumGetListResp {
repeated DBComment comment = 1;
}
//
message ForumReleaseCommentReq {
string avatar = 1; //
string uname = 2; //
string herocid = 3; //id
string herooid = 4; //id
string content = 5; //
}
//
message ForumReleaseCommentResp {
DBComment comment = 1;
}
//
message ForumWatchHeroReq {
string uid = 1; //id
string stag = 2; //id
string herocId = 3; //cid
string herooId = 4; //id
}
//
message ForumWatchHeroResp {
DBHero hero = 1;
}
//
message ForumLikeReq {
string herocid = 1; //id
string cid = 2; //id
bool islike = 3; //
}
//
message ForumLikeResp {
string cid = 1; //id
bool islike = 2; //
bool issucc = 3; //
}

View File

@ -0,0 +1,34 @@
syntax = "proto3";
option go_package = ".;pb";
import "hero/hero_db.proto";
message DBFriend {
string uid = 1; //@go_tags(`bson:"uid"`) ID
repeated string friendIds = 2; //@go_tags(`bson:"friendIds"`) ID
repeated string applyIds = 3; //@go_tags(`bson:"applyIds"`) ID
repeated string blackIds = 4; //@go_tags(`bson:"blackIds"`) ID
repeated string zanIds = 5; //@go_tags(`bson:"zanIds"`) ID
repeated string getZandIds = 6; //@go_tags(`bson:"getZandIds"`) ID
string assistHeroId = 7; //@go_tags(`bson:"assistHeroId"`) ID
int32 received = 8; //@go_tags(`bson:"received"`) 012
int64 updateTime = 9; //@go_tags(`bson:"updateTime"`)
DBHero hero = 10; //@go_tags(`bson:"hero"`)
int32 assistScore = 11; //@go_tags(`bson:"zhuzhanScore"`)
repeated AssistRecord record = 12; //@go_tags(`bson:"record"`)
}
//
message AssistRecord {
string uid = 1; //@go_tags(`bson:"uid"`) Id
int64 assistTime = 2; //@go_tags(`bson:"zhuzhanTime"`)
string assistHeroId = 3; //@go_tags(`bson:"assistHeroId"`)
}
//
message QiecuoRecord{
string uid = 1; //@go_tags(`bson:"uid"`)
string targetId = 2; //@go_tags(`bson:"targetId"`)
int32 status = 3; //@go_tags(`bson:"status"`) 0 1 2
string matchId = 4; //@go_tags(`bson:"matchId"`) ID
int64 timestamp = 5; //@go_tags(`bson:"timestamp"`)
}

View File

@ -1,6 +1,8 @@
syntax = "proto3";
option go_package = ".;pb";
import "friend/friend_db.proto";
message FriendBase {
string userId = 1; // ID
string NickName = 2; //
@ -8,11 +10,13 @@ message FriendBase {
string avatar = 4; //
int64 strength = 5; //
string serverId = 6; //
int64 offlineTime = 7; //线 0线
int64 offlineTime = 7; //线 -1线
bool isApplied = 8; //
bool isZaned = 9; //
bool isGetZaned = 10; //
string heroObjId = 11; //ID
int32 score = 12; //
int64 updateTime = 13; //
}
//
@ -68,7 +72,7 @@ message FriendSearchReq {
string nickName = 1; //
}
message FriendSearchResp { FriendBase friend = 1; }
message FriendSearchResp { repeated FriendBase friends = 1; }
//
message FriendBlackListReq {}
@ -123,10 +127,64 @@ message FriendAssistheroResp {
//
message FriendAssistlistReq {}
message FriendAssistlistResp {
repeated FriendBase list = 1;
string heroObjId = 2;
repeated FriendBase list = 1; //
string heroObjId = 2; //
repeated AssistRecord record = 3; //
}
//
message FriendGetrewardReq {}
message FriendGetrewardResp { int32 received = 1; }
//
message FriendAssistHeroUpdatePush {
FriendBase friend = 1; //
}
//
message FriendAssistHeroListReq {}
message FriendAssistHeroListResp { repeated FriendBase friends = 1; }
//
message FriendGetRelationReq{
string targetUid = 1; //ID
}
message FriendGetRelationResp{
string targetUid = 1;
bool status = 2; //true
}
//
message FriendQiecuoReq{
string targetUid = 1; //UID
}
message FriendQiecuoResp{
string targetUid =1; //
string uid = 2; //
}
//
message FriendAcceptReq{
string uid = 1; //
}
message FriendAcceptResp{
bool isSucc = 1;
}
//
message FriendStopReq{
string uid = 1; //
}
message FriendStopResp{
bool isSucc = 1;
}
message FriendQiecuonotifyPush{
string uid = 1; //)
int32 notifyType = 2; //1 2 3
}

View File

@ -1,14 +0,0 @@
syntax = "proto3";
option go_package = ".;pb";
message DBFriend {
string uid = 1; //@go_tags(`bson:"uid"`) ID
repeated string friendIds = 2; //@go_tags(`bson:"friendIds"`) ID
repeated string applyIds = 3; //@go_tags(`bson:"applyIds"`) ID
repeated string blackIds = 4; //@go_tags(`bson:"blackIds"`) ID
repeated string zanIds = 5; //@go_tags(`bson:"zanIds"`) ID
repeated string getZandIds = 6; //@go_tags(`bson:"getZandIds"`) ID
string assistHeroId = 7; //@go_tags(`bson:"assistHeroId"`) ID
int32 received = 8; //@go_tags(`bson:"received"`) 012
int64 updateTime = 9; //@go_tags(`bson:"updateTime"`)
}

View File

@ -0,0 +1,12 @@
syntax = "proto3";
option go_package = ".;pb";
//
message GatewayHeartbeatReq {
}
//
message GatewayHeartbeatResp {
int64 timestamp = 1;
}

View File

@ -18,11 +18,12 @@ message OrderCook{
message DBGourmet {
string id = 1; //@go_tags(`bson:"_id"`) ID
string uid = 2; //@go_tags(`bson:"uid"`) ID
Cooking cookingFood = 3; //@go_tags(`bson:"cooking"`)
Cooking cookingFood = 3; //@go_tags(`bson:"cookingFood"`)
repeated OrderCook foods = 4; //@go_tags(`bson:"foods"`)
repeated UserAssets items = 5; //@go_tags(`bson:"items"`)
map<int32,int32> skill = 6; //@go_tags(`bson:"skill"`) ID
map<int32,int32> specialSkill = 7; //@go_tags(`bson:"specialSkill"`)
int32 orderCostTime = 8; //@go_tags(`bson:"orderCostTime"`)
int64 ctime = 9; //
int32 totalTime = 10;//@go_tags(`bson:"totalTime"`)
}

View File

@ -1,7 +1,7 @@
syntax = "proto3";
option go_package = ".;pb";
import "gourmet_db.proto";
import "gourmet/gourmet_db.proto";
import "user/user_db.proto";
//
message GourmetGetListReq {
@ -36,3 +36,11 @@ message GourmetSkillLvReq{
message GourmetSkillLvResp{
DBGourmet data = 1;
}
message GourmetGetRandUserReq{
int32 people = 1;//
}
message GourmetGetRandUserResp{
repeated DBUser user = 1;
}

View File

@ -0,0 +1,30 @@
syntax = "proto3";
option go_package = ".;pb";
message DBGrowtask {
string uid = 1; //@go_tags(`bson:"uid"`) ID
repeated Growtask initTaskList =
2; //@go_tags(`bson:"initTaskList"`)
repeated Growtask midTaskList =
3; //@go_tags(`bson:"midTaskList"`)
repeated Growtask highTaskList =
4; //@go_tags(`bson:"highTaskList"`)
int32 curTaskType = 5; //@go_tags(`bson:"curTaskType"`)
int32 advReceive = 6; //@go_tags(`bson:"advReceive"`) ID
}
//
enum GrowtaskStatus {
Lock = 0; //
Ongoing = 1; //
Wait = 2; //
Finish = 3; //
}
message Growtask {
int32 id = 1; //@go_tags(`bson:"id"`) ID
int32 taskType = 2; //@go_tags(`bson:"taskType"`)
GrowtaskStatus status = 3; //@go_tags(`bson:"status"`)
int32 fstask = 4; //@go_tags(`bson:"fstask"`)
int32 preTask = 5; //@go_tags(`bson:"preTask"`) ID
}

View File

@ -0,0 +1,27 @@
syntax = "proto3";
option go_package = ".;pb";
import "growtask/growtask_db.proto";
//
message GrowtaskListReq {
int32 taskType = 1; //123
}
message GrowtaskListResp {
repeated Growtask taskList = 1;
int32 curTaskType = 2; //
int32 advReceive = 3; //ID
int32 curTaskId = 4; // ID
}
//
message GrowtaskReceiveReq {
int32 taskId = 1; //ID
}
message GrowtaskReceiveResp { int32 taskId = 1; }
//
message GrowtaskAdvReceiveReq {
int32 taskType = 1; //
}
message GrowtaskAdvReceiveResp { int32 taskType = 1; }

View File

@ -0,0 +1,67 @@
syntax = "proto3";
option go_package = ".;pb";
import "comm.proto";
enum HeroType {
HeroTypeNil = 0;
HeroTypeKongFu = 1;
}
message DBHero {
string id = 1; //@go_tags(`bson:"_id"`) ID
string uid = 2;
string heroID = 3; //@go_tags(`bson:"heroID"`) ID
int32 star = 4; //
int32 lv = 5; //
int32 exp = 6; //
int32 juexingLv = 7; //@go_tags(`bson:"juexingLv"`)
int32 captainSkill = 8; //@go_tags(`bson:"captainSkill"`)
repeated SkillData normalSkill = 9; //@go_tags(`bson:"normalSkill"`)
map<string, int32> property = 10; //
map<string, int32> addProperty = 11; //@go_tags(`bson:"addProperty"`)
int32 cardType = 12; //@go_tags(`bson:"cardType"`) ()
int32 curSkin = 13; //@go_tags(`bson:"curSkin"`) ID
repeated int32 skins = 14; // ID
bool block = 15; //
repeated string equipID = 16; //@go_tags(`bson:"equipID"`) objID
int32 sameCount = 20; // @go_tags(`bson:"sameCount"`)
int32 suiteId = 21; //@go_tags(`bson:"suiteId"`) Id
int32 suiteExtId = 22; // go_tags(`bson:"suiteExtId"`) Id
map<string, int32> juexProperty = 25; //@go_tags(`bson:"juexProperty"`) //hp
HeroType status = 26; //@go_tags(`bson:"status"`) (1 )
int32 suite1Star = 27; //@go_tags(`bson:"suite1Star"`)
int32 suite2Star = 28; //@go_tags(`bson:"suite2Star"`)
int32 suite1Lv = 29; //@go_tags(`bson:"suite1Lv"`)
int32 suite2Lv = 30; //@go_tags(`bson:"suite2Lv"`)
map<string, int32> talentProperty = 31; //@go_tags(`bson:"talentProperty"`) //
repeated SkillData equipSkill = 32; //@go_tags(`bson:"equipSkill"`)
map<string, int32> horoscopeProperty = 33; //@go_tags(`bson:"horoscopeProperty"`) //
}
//
message DBHeroRecord {
string id = 1; //@go_tags(`bson:"_id"`) ID id
string uid = 2; //@go_tags(`bson:"uid"`) ID
int32 star4 = 3; // 4
int32 star5 = 4; // 5
int64 mtime = 5; //
int32 drawcount = 6; //
map<string,int32> condition = 7; // key rechargelogin value
map<string,int32> star5Hero = 8;// totalcount 5 key id
int32 totalcount = 9;//
int32 daycount = 10; //
int32 onebuy = 11; //
int32 tenbuy = 12; //
int32 inevitable = 13;//2-305
int32 inevitable1 = 14;//30-505
}
//
message DBHeroTalent {
string id = 1; //@go_tags(`bson:"_id"`) ID id
string uid = 2; //@go_tags(`bson:"uid"`) ID
string heroId = 3; // ID
map<int32, int32> talent = 4; //
}

View File

@ -1,12 +1,17 @@
syntax = "proto3";
option go_package = ".;pb";
import "hero_db.proto";
import "hero/hero_db.proto";
import "comm.proto";
//
message HeroInfoReq {
string heroId = 1; //ID
string uid = 1; // uid
repeated string heroId = 2; //ID
}
message HeroInfoResp {
string uid = 1;
repeated DBHero base = 2;
}
message HeroInfoResp { DBHero base = 1; }
//
message HeroListReq {}
@ -17,11 +22,6 @@ message HeroListResp { repeated DBHero list = 1; }
/// : (使)
/// : ()
message ItemData {
int32 itemId = 2; //Id
int32 amount = 3; //
}
message MapStringInt32 {
string Key = 1;
int32 Value = 2;
@ -30,7 +30,7 @@ message MapStringInt32 {
//
message HeroStrengthenUplvReq {
string heroObjID = 1; // ID
repeated MapStringInt32 expCards = 2;
map<string,int32> item = 2;// key itemid value
}
//
@ -38,15 +38,9 @@ message HeroStrengthenUplvResp {
DBHero hero = 1; //
}
message CostCardData {
string costCardObj = 1; // ID
int32 amount = 2; //
}
//
message HeroStrengthenUpStarReq {
string heroObjID = 1; // ID
repeated CostCardData hero = 2; // ID
repeated CostCardData heroRace = 3; // ID
}
//
@ -57,7 +51,7 @@ message HeroStrengthenUpStarResp {
//
message HeroStrengthenUpSkillReq {
string heroObjID = 1; // ID
repeated string costCardObj = 2; //
repeated string item = 2;//
}
//
@ -65,42 +59,6 @@ message HeroStrengthenUpSkillResp {
DBHero hero = 1; //
}
//
message HeroResonanceReq {
string heroObjID = 1; // ID
repeated string costObjID = 2; //
}
message HeroResonanceResp {
DBHero hero = 1; //
int32 energy = 2; //
DBHero upStarCard = 3; //
}
//
message HeroResonanceResetReq {
string heroObjID = 1; // ID
}
message HeroResonanceResetResp {
DBHero hero = 1; //
int32 energy = 2; //
}
message EnergyData{
int32 useEnergy = 1; // 使
string useType = 2; // 使
}
// 使
message HeroResonanceUseEnergyReq {
string heroObjID = 1; // ID
repeated EnergyData energy = 2;
}
message HeroResonanceUseEnergyResp {
DBHero hero = 1; //
}
//
message HeroAwakenReq {
string heroObjID = 1; // ID
@ -145,8 +103,11 @@ message HeroDrawCardReq {
int32 drawCount = 2;//
}
message AtnoData{
repeated UserAtno atno = 1;
}
message HeroDrawCardResp {
repeated string heroes = 1; // configID
repeated AtnoData data = 1;
}
//
@ -160,5 +121,62 @@ message HeroDrawCardFloorReq {
message HeroDrawCardFloorResp {
int32 star4 = 1;
int32 star5 = 2;
int32 onebuy = 3; //
int32 tenbuy = 4; //
}
//
message HeroFusionReq{
string heroId = 1; // id
map<string,int32> heros= 2; // key heroObjID value
}
message HeroFusionResp{
string heroid = 1; //
}
//
message HeroTalentListReq {
}
message HeroTalentListResp {
repeated DBHeroTalent telnet = 1;
}
//
message HeroTalentLearnReq {
int32 talentID = 1; // ID
string objId = 2; // id
string heroid = 3; //id
}
message HeroTalentLearnResp {
DBHeroTalent telnet = 1;
int32 talentID = 2; // ID
}
//
message HeroTalentResetReq {
string objId = 1; // id
}
message HeroTalentResetResp {
DBHeroTalent telnet = 1;
}
message HeroBuyReq{
int32 buyType = 1; //
int32 buyCount =2;//
}
message HeroBuyResp{
bool IsSucc = 1;
int32 onebuy = 3; //
int32 tenbuy = 4; //
}
//
message HeroFirstGetPush {
repeated string heroId = 1; //id
}

View File

@ -1,60 +0,0 @@
syntax = "proto3";
option go_package = ".;pb";
message SkillData {
int32 skillID = 1;
int32 skillLv = 2;
}
enum HeroType {
HeroTypeNil = 0;
HeroTypeKongFu = 1;
}
message DBHero {
string id = 1; //@go_tags(`bson:"_id"`) ID
string uid = 2;
string heroID = 3; //@go_tags(`bson:"heroID"`) ID
int32 star = 4; //
int32 lv = 5; //
int32 exp = 6; //
int32 juexingLv = 7; //@go_tags(`bson:"juexingLv"`)
int32 captainSkill = 8; //@go_tags(`bson:"captainSkill"`)
repeated SkillData normalSkill = 9; //@go_tags(`bson:"normalSkill"`)
map<string, int32> property = 10; //
map<string, int32> addProperty = 11; //@go_tags(`bson:"addProperty"`)
int32 cardType = 12; //@go_tags(`bson:"cardType"`) ()
int32 curSkin = 13; //@go_tags(`bson:"curSkin"`) ID
repeated int32 skins = 14; // ID
bool block = 15; //
repeated string equipID = 16; //@go_tags(`bson:"equipID"`) objID
int32 resonateNum = 17; //@go_tags(`bson:"resonateNum"`)
int32 distributionResonate = 18; //@go_tags(`bson:"distributionResonate"`)
map<string, int32> energy = 19; // @go_tags(`bson:"energy"`)[hppro:0,atkpro:0,defpro:20]
int32 sameCount = 20; // @go_tags(`bson:"sameCount"`)
int32 suiteId = 21; //@go_tags(`bson:"suiteId"`) Id
int32 suiteExtId = 22; // go_tags(`bson:"suiteExtId"`) Id
bool isOverlying = 23; // go_tags(`bson:"isOverlying"`) true
map<string, int32> energyProperty = 24; //@go_tags(`bson:"energyProperty"`)
map<string, int32> juexProperty = 25; //@go_tags(`bson:"juexProperty"`) //hp
HeroType status = 26; //@go_tags(`bson:"status"`) (1 )
int32 suite1Star = 27; //@go_tags(`bson:"suite1Star"`)
int32 suite2Star = 28; //@go_tags(`bson:"suite2Star"`)
int32 suite1Lv = 29; //@go_tags(`bson:"suite1Lv"`)
int32 suite2Lv = 30; //@go_tags(`bson:"suite2Lv"`)
}
message Floor{ //
int32 h4 = 1; // 4
int32 h5 = 2; // 5
}
//
message DBHeroRecord {
string id = 1; //@go_tags(`bson:"_id"`) ID id
string uid = 2; //@go_tags(`bson:"uid"`) ID
int32 star4 = 3; // 4
int32 star5 = 4; // 5
int64 mtime = 5; //
int32 drawcount = 6; //
}

View File

@ -1,6 +1,6 @@
syntax = "proto3";
option go_package = ".;pb";
import "horoscope_db.proto";
import "horoscope/horoscope_db.proto";
//
message HoroscopeInfoReq {}
@ -21,4 +21,7 @@ message HoroscopeUpgradeResp {
//
message HoroscopeResetReq {}
//
message HoroscopeResetResp { bool issucc = 1; }
message HoroscopeResetResp {
bool issucc = 1;
DBHoroscope info = 2;
}

View File

@ -0,0 +1,27 @@
syntax = "proto3";
option go_package = ".;pb";
import "battle/battle_msg.proto";
message DBHunting {
string id = 1; //@go_tags(`bson:"_id"`) ID
string uid = 2; //@go_tags(`bson:"uid"`) ID
map<int32,int32> boss = 3; // key boss value
int32 buyCount = 4;//@go_tags(`bson:"buyCount"`)
int64 cTime = 5; //@go_tags(`bson:"cTime"`)
map<string,int32> bossTime = 6; //@go_tags(`bson:"bossTime"`)
int64 recoveryTime = 7; //@go_tags(`bson:"recoveryTime"`) //
}
//
message DBHuntingRank {
string id = 1; //@go_tags(`bson:"_id"`) ID
string uid = 2; //@go_tags(`bson:"uid"`) ID
int32 difficulty = 3; //
int32 bosstype = 4; // boss类型塔类型
string nickname = 5;//
string icon = 6; //
int32 lv = 7; //
int32 leadpos = 8; //
repeated LineUp line = 9; //
int32 costTime = 10; //@go_tags(`bson:"costTime"`) s
}

View File

@ -1,7 +1,7 @@
syntax = "proto3";
option go_package = ".;pb";
import "hunting_db.proto";
import "battle_msg.proto";
import "hunting/hunting_db.proto";
import "battle/battle_msg.proto";
message HuntingGetListReq {
}
@ -14,8 +14,7 @@ message HuntingGetListResp {
message HuntingChallengeReq {
int32 bossType = 1; // boos
int32 difficulty = 2; //
int32 leadpos = 3; //
repeated string teamids = 4; //
BattleFormation battle = 3;
}
message HuntingChallengeResp {

View File

@ -1,25 +0,0 @@
syntax = "proto3";
option go_package = ".;pb";
message DBHunting {
string id = 1; //@go_tags(`bson:"_id"`) ID
string uid = 2; //@go_tags(`bson:"uid"`) ID
int32 challengeCount = 3; //@go_tags(`bson:"challengeCount"`)
map<int32,int32> boss = 4; // key boss value
int32 buyCount = 5;//@go_tags(`bson:"buyCount"`)
int64 cTime = 6; //@go_tags(`bson:"cTime"`)
map<string,int32> bossTime = 7; //@go_tags(`bson:"bossTime"`)
}
//
message DBHuntingRank {
string id = 1; //@go_tags(`bson:"_id"`) ID
string uid = 2; //@go_tags(`bson:"uid"`) ID
int32 difficulty = 3; //
int32 bosstype = 4; // boss类型塔类型
string nickname = 5;//
string icon = 6; //
int32 lv = 7; //
int32 costTime = 8; //@go_tags(`bson:"costTime"`) s
}

View File

@ -0,0 +1,106 @@
syntax = "proto3";
option go_package = ".;pb";
import "items/items_db.proto";
import "comm.proto";
//
message ItemsGetlistReq {
int32 IType = 1; //
}
//
message ItemsGetlistResp {
repeated DB_UserItemData Grids = 1; //
}
//
message ItemsChangePush {
repeated DB_UserItemData Grids = 1; //
}
//使
message ItemsUseItemReq {
string GridId = 1; //Id
uint32 Amount = 2; //使
int32 Select = 3; //
}
//使
message ItemsUseItemResp {
string GridId = 1; //Id
uint32 Amount = 2; //使
bool issucc = 3; //
}
//sailitem
message ItemsSellItemReq {
string GridId = 1; //Id
string ItemId = 2; //Id
uint32 Amount = 3; //使
}
//
message ItemsSellItemResp {
string GridId = 1; //Id
uint32 Amount = 2; //使
bool issucc = 3; //
}
//
message ItemsDecomposeReq {
string GridId = 1; //Id
string ItemId = 2; //Id
uint32 Amount = 3; //使
}
//
message ItemsDecomposeResp {
string GridId = 1; //Id
uint32 Amount = 2; //使
bool issucc = 3; //
}
//
message ItemsBuyPhysicalReq {
uint32 Amount = 2; //
}
//
message ItemsBuyPhysicalResp {
bool issucc = 1; //
int32 PhysicalBuyNum = 2; //
repeated UserAssets asets = 3 ; //
}
//
message ItemsSellinbulkReq {
repeated string grids = 1; //Id
repeated uint32 amount = 2; //
}
//
message ItemsSellinbulkResp {
repeated string grids = 1; //Id
repeated uint32 amount = 2; //
repeated bool issucc = 3; //
}
//
message ItemsBuyUnifiedTicketReq {
int32 BuyNum = 1;
}
//
message ItemsBuyUnifiedTicketResp {
bool issucc = 1;
int32 buyunifiedticket = 2; //
int64 recovertimeunifiedticket = 3;//
}
//
message ItemsRefreshUnifiedTicketReq {
}
message ItemsRefreshUnifiedTicketResp {
}

View File

@ -1,46 +0,0 @@
syntax = "proto3";
option go_package = ".;pb";
import "items_db.proto";
//
message ItemsGetlistReq {
int32 IType = 1; //
}
//
message ItemsGetlistResp {
repeated DB_UserItemData Grids = 1; //
}
//
message ItemsChangePush {
repeated DB_UserItemData Grids = 1; //
}
//使
message ItemsUseItemReq {
string GridId = 1; //Id
uint32 Amount = 2; //使
int32 Select = 3; //
}
//使
message ItemsUseItemResp {
string GridId = 1; //Id
uint32 Amount = 2; //使
bool issucc = 3; //
}
//sailitem
message ItemsSellItemReq {
string GridId = 1; //Id
string ItemId = 2; //Id
uint32 Amount = 3; //使
}
//
message ItemsSellItemResp {
string GridId = 1; //Id
uint32 Amount = 2; //使
bool issucc = 3; //
}

View File

@ -0,0 +1,41 @@
syntax = "proto3";
option go_package = ".;pb";
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: favorlv
map<int32, int32> prize = 5; // key
int32 fetterlv = 6; //
int32 storyid = 7; // id
bool activation = 8; //
}
//
message DBHeroFetter {
string id = 1; //@go_tags(`bson:"_id"`) ID
string uid = 2; //@go_tags(`bson:"uid"`) ID
string heroid = 3; // id
repeated int32 history = 4; // ID
int32 favorlv = 5; //
int32 favorexp = 6; //
repeated int32 stroyprize = 7; //
repeated int32 lvprize = 8; //
}
//
message DBFetterstory {
string id = 1; //@go_tags(`bson:"_id"`) ID
string uid = 2; //@go_tags(`bson:"uid"`) ID
map<int32, FetterTasks> feeterTask =
3; //@go_tags(`bson:"feeterTask"`) key:ID
}
message FetterTasks { repeated int32 tasks = 1; }
//
message FetterTask {
int32 taskId = 1; //@go_tags(`bson:"taskId"`) Id
int32 status = 2; //@go_tags(`bson:"status"`) 0 1
}

View File

@ -0,0 +1,63 @@
syntax = "proto3";
option go_package = ".;pb";
import "library/library_db.proto";
//
message LibraryGetListReq {}
message LibraryGetListResp { repeated DBLibrary data = 1; }
//
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
int32 history = 2; // id
int32 rightend = 3; // rightend
}
message LibraryGetStoryRewardResp { DBHeroFetter data = 1; }
//
message LibraryUseGiftReq {
string heroid = 1; // id
map<string, int32> items = 2; // key ID value
}
message LibraryUseGiftResp { DBHeroFetter data = 1; }
//
message LibraryActivationFetterReq {
string oid = 1; //id
}
message LibraryActivationFetterResp { DBLibrary data = 1; }
//
message LibraryChangePush {
repeated DBLibrary data = 1;
repeated DBHeroFetter fetter = 2; //
}
//
message LibraryLvRewardReq {
string oid = 1; // id
int32 lv = 2; //
}
message LibraryLvRewardResp { DBHeroFetter data = 1; }
// -线
message LibraryFetterstoryTaskReq {
int32 fetterId = 1; //ID
}
message LibraryFetterstoryTaskResp { repeated FetterTask list = 1; }

View File

@ -1,24 +0,0 @@
syntax = "proto3";
option go_package = ".;pb";
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: favorlv
map<int32,int32> prize = 5; // key
int32 fetterlv = 6; //
int32 storyid = 7; // id
bool activation = 8; //
}
//
message DBHeroFetter{
string id = 1; //@go_tags(`bson:"_id"`) ID
string uid = 2; //@go_tags(`bson:"uid"`) ID
string heroid = 3; // id
repeated int32 history = 4; // ID
int32 favorlv = 5; //
int32 favorexp = 6; //
int32 stroyprize = 7; //
}

View File

@ -1,49 +0,0 @@
syntax = "proto3";
option go_package = ".;pb";
import "library_db.proto";
//
message LibraryGetListReq {
}
message LibraryGetListResp {
repeated DBLibrary data = 1;
}
//
message LibraryGetFetterListReq {
}
message LibraryGetFetterListResp {
repeated DBHeroFetter data = 1;
}
//
message LibraryGetRewardReq {
string objId = 1;
}
message LibraryGetRewardResp {
DBLibrary data = 1;
}
//
message LibraryGetStoryRewardReq {
string hid = 1; // ID
int32 history = 2; // id
int32 rightend = 3; // rightend
}
message LibraryGetStoryRewardResp {
DBLibrary data = 1;
}
//
message LibraryUseGiftReq{
string heroid = 1; // id
map<string,int32> items = 2; // key ID value
}
message LibraryUseGiftResp{
DBHeroFetter data = 1;
}

View File

@ -0,0 +1,23 @@
syntax = "proto3";
option go_package = ".;pb";
message DBLinestory {
string id = 1; //@go_tags(`bson:"_id"`) ID
string uid = 2; //@go_tags(`bson:"uid"`) ID
map<int32, TaskChapter> taskChapter =
3; //@go_tags(`bson:"taskChapter"`) key:ID
}
//
message TaskChapter {
int32 receive =
1; //@go_tags(`bson:"receive"`) 0 1 2
int32 status = 2; //@go_tags(`bson:"status"`) 0 1
repeated int32 taskIds = 3; //@go_tags(`bson:"taskIds"`)
}
// 线
message TaskMain {
int32 taskId = 1; //@go_tags(`bson:"taskId"`) Id
int32 status = 2; //@go_tags(`bson:"status"`) 0 1
}

View File

@ -0,0 +1,22 @@
syntax = "proto3";
option go_package = ".;pb";
import "linestory/linestory_db.proto";
import "comm.proto";
// 线
message LinestoryChapterReq {}
message LinestoryChapterResp { map<int32, TaskChapter> taskChapter = 1; }
// 线-线
message LinestoryMaintaskReq {
int32 chapterId = 1; //ID
}
message LinestoryMaintaskResp { repeated TaskMain list = 1; }
//
message LinestoryReceiveReq { int32 chapterId = 1; }
message LinestoryReceiveResp {
int32 chapterId = 1;
repeated UserAssets userAssets = 2;
}

View File

@ -1,15 +0,0 @@
syntax = "proto3";
option go_package = ".;pb";
message TaskNode {
int32 status = 1; //@go_tags(`bson:"status"`) 0
// 1() 2 3
repeated int32 subtaskIds = 2; //@go_tags(`bson:"subtasks"`)
}
message DBLinestory {
string id = 1; //@go_tags(`bson:"_id"`) ID
string uid = 2; //@go_tags(`bson:"uid"`) ID
int32 jqId = 3; //@go_tags(`bson:"jqId"`) ID
map<int32, TaskNode> tasks = 4; //@go_tags(`bson:"tasks"`)
}

View File

@ -1,23 +0,0 @@
syntax = "proto3";
option go_package = ".;pb";
//
message LinestoryStartReq {
int32 jqId = 1; //ID
}
message LinestoryStartResp {
int32 jqId = 1;
repeated int32 taskIds = 2; //ID
}
//
message LinestoryDotaskReq {
int32 taskId = 1; //ID
int32 subtaskId = 2; //ID
}
message LinestoryDotaskResp {
int32 taskId = 1; //ID
int32 subtaskId = 2; //ID
int32 resetTaskId = 3; //ID
}

View File

@ -0,0 +1,61 @@
syntax = "proto3";
option go_package = ".;pb";
import "mail/mail_db.proto";
import "comm.proto";
message MailGetListReq {
}
//
message MailGetListResp {
repeated DBMailData Mails = 1;
}
//
message MailReadMailReq {
string ObjID = 1;
}
message MailReadMailResp {
DBMailData Mail = 1;
}
//
message MailGetUserMailAttachmentReq {
string ObjID = 1;
}
message MailGetUserMailAttachmentResp {
DBMailData Mail = 1;
}
//
message MailDelMailReq {
string ObjID = 1;
}
message MailDelMailResp {
string ObjID = 1; // id
}
//
message MailGetNewMailPush{
DBMailData Mail = 1; //
}
//
message MailGetAllMailAttachmentReq {
}
message MailGetAllMailAttachmentResp {
repeated UserAssets res = 1; //
repeated string ids = 2; // id
}
message MailDelAllMailReq {
}
message MailDelAllMailResp {
repeated DBMailData Mails = 1;
}

View File

@ -1,38 +0,0 @@
syntax = "proto3";
option go_package = ".;pb";
import "mail_db.proto";
import "comm.proto";
message MailGetListReq {}
//
message MailGetListResp { repeated DBMailData Mails = 1; }
//
message MailReadMailReq { string ObjID = 1; }
message MailReadMailResp { DBMailData Mail = 1; }
//
message MailGetUserMailAttachmentReq { string ObjID = 1; }
message MailGetUserMailAttachmentResp { DBMailData Mail = 1; }
//
message MailDelMailReq { string ObjID = 1; }
message MailDelMailResp {
string ObjID = 1; // id
}
//
message MailGetNewMailPush {
DBMailData Mail = 1; //
}
//
message MailGetAllMailAttachmentReq {}
message MailGetAllMailAttachmentResp {
repeated UserAssets res = 1; //
repeated string ids = 2; // id
}

View File

@ -14,4 +14,5 @@ message DBMainline {
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,7 +1,7 @@
syntax = "proto3";
option go_package = ".;pb";
import "mainline_db.proto";
import "battle_msg.proto";
import "mainline/mainline_db.proto";
import "battle/battle_msg.proto";
//
message MainlineGetListReq {
@ -43,6 +43,8 @@ message MainlineChallengeOverReq {
message MainlineChallengeOverResp {
DBMainline data = 1; //
repeated string newheros = 2; //
int32 olv = 3; //
}
//

View File

@ -1,6 +1,6 @@
syntax = "proto3";
option go_package = ".;pb";
import "martialhall_db.proto";
import "martialhall/martialhall_db.proto";
///
message MartialhallInfoReq {}
@ -21,7 +21,9 @@ message MartialhallPracticeResp {
///
message MartialhallReceiveReq { int32 pillar = 1; }
///
message MartialhallReceiveResp {}
message MartialhallReceiveResp {
int32 pillar = 1;
}
///
message MartialhallUpgradeReq {}

View File

@ -0,0 +1,13 @@
syntax = "proto3";
option go_package = ".;pb";
message DBMline {
string id = 1; //@go_tags(`bson:"_id"`) ID
string uid = 2; //@go_tags(`bson:"uid"`) ID
int32 cType = 3; //@go_tags(`bson:"cType"`)
int32 chapterId = 4; //@go_tags(`bson:"chapterId"`) ID
int32 stageId = 5; //@go_tags(`bson:"stageId"`) 线ID
map<int32,int32> star = 6;// (key ID value )
map<int32,bool> award = 7; //@go_tags(`bson:"award"`) (key )
map<int32,int32> ps = 8;//
}

View File

@ -0,0 +1,58 @@
syntax = "proto3";
option go_package = ".;pb";
import "mline/mline_db.proto";
import "battle/battle_msg.proto";
import "comm.proto";
//
message MlineGetListReq {
int32 cType = 1; //
}
//
message MlineGetListResp {
repeated DBMline data = 1;
}
//
message MlineGetRewardReq {
int32 cId = 1; // ID
int32 star = 2; //
}
message MlineGetRewardResp {
DBMline data = 1; //
repeated UserAssets reward = 2; //
}
//
message MlineChallengeReq {
int32 stageId = 1; // ID
BattleFormation battle = 2;
}
message MlineChallengeResp {
BattleInfo info = 1;
int32 stageId = 2; // ID
}
//
message MlineChallengeOverReq {
int32 stageId = 1; // ID
BattleReport report = 3; //
}
message MlineChallengeOverResp {
DBMline data = 1; //
repeated UserAssets reward = 2; //
}
//
message MlineCleanStageReq {
int32 stageId = 1; // ID
}
message MlineCleanStageResp {
int32 stageId = 1; // ID
repeated UserAssets reward = 2; //
}

View File

@ -17,16 +17,23 @@ message DBMoonFantasy {
repeated UserInfo join = 5; //
int32 numup = 6; //
int32 unitmup = 7; //
map<string, int32> record = 8; //
int64 expir = 8; //
map<string, int32> record = 9; //
}
//
message DBUserMFantasy {
string id = 1; //@go_tags(`bson:"_id"`) ID
string uid = 2; //id
repeated string mfantasys = 3; //
int32 triggerNum = 4; //@go_tags(`bson:"triggerNum"`)
int32 battleNum = 5; //@go_tags(`bson:"battleNum"`)
int32 buyNum = 6; //@go_tags(`bson:"buyNum"`)
int64 lastTrigger = 7; //@go_tags(`bson:"lastTrigger"`)
int32 triggerNum = 3; //@go_tags(`bson:"triggerNum"`)
// int32 ticket = 4; //@go_tags(`bson:"ticket"`)
int32 buyNum = 5; //@go_tags(`bson:"buyNum"`)
int64 lastTrigger = 6; //@go_tags(`bson:"lastTrigger"`)
int64 lastrtickettime = 7;//@go_tags(`bson:"lastrtickettime"`)
}
//RPC
message RPCTargetMFReq {
string uid = 1; //id
string boosid = 2; //id
}

View File

@ -1,8 +1,8 @@
syntax = "proto3";
option go_package = ".;pb";
import "errorcode.proto";
import "moonfantasy_db.proto";
import "battle_msg.proto";
import "moonfantasy/moonfantasy_db.proto";
import "battle/battle_msg.proto";
//
message MoonfantasyGetListReq {}
@ -33,8 +33,7 @@ message MoonfantasyAskResp {
///
message MoonfantasyBattleReq {
string mid = 1; //id
int32 leadpos = 2; //
repeated string teamids = 3; //
BattleFormation battle = 2; //
}
message MoonfantasyBattleResp {

View File

@ -1,7 +1,7 @@
syntax = "proto3";
option go_package = ".;pb";
import "errorcode.proto";
import "notify_db.proto";
import "notify/notify_db.proto";
import "google/protobuf/any.proto";
//

View File

@ -1,23 +1,18 @@
syntax = "proto3";
option go_package = ".;pb";
import "battle_msg.proto";
//
import "battle/battle_msg.proto";
message DBPagoda {
string id = 1; //@go_tags(`bson:"_id"`) ID
string uid = 2; //@go_tags(`bson:"uid"`) ID
int32 pagodaId = 3; //@go_tags(`bson:"pagodaId"`)
map<int32,bool> reward = 4; //
int32 type = 5;
bool complete = 6; //
int32 passCheckID = 7; // ID
int32 vipPassCheckID = 8; // vip战令领奖ID
}
//
message DBSeasonPagoda {
string id = 1; //@go_tags(`bson:"_id"`) ID
string uid = 2; //@go_tags(`bson:"uid"`) ID
int32 pagodaId = 3; //@go_tags(`bson:"pagodaId"`)
map<int32,bool> reward = 4; //
int32 type = 5;
}
//
message DBPagodaRecord {

View File

@ -1,7 +1,8 @@
syntax = "proto3";
option go_package = ".;pb";
import "pagoda_db.proto";
import "battle_msg.proto";
import "pagoda/pagoda_db.proto";
import "battle/battle_msg.proto";
import "comm.proto";
//
message PagodaGetListReq {
@ -23,9 +24,7 @@ message PagodaGetRewardResp {
message PagodaChallengeReq {
int32 levelID = 1; //
int32 PagodaType = 2; //
int32 leadpos = 3; //
repeated string teamids = 4; //
BattleFormation battle = 3;
}
message PagodaChallengeResp {
@ -63,3 +62,21 @@ message PagodaQueryRecordReq{
message PagodaQueryRecordResp{
DBPagodaRecord data = 1;
}
//
message PagodaActivateReq{
}
message PagodaActivateResp{
DBPagoda data = 1;
}
//
message PagodaWarOrderReq{
}
message PagodaWarOrderResp{
DBPagoda data = 1;
repeated UserAssets itmes = 2;//
}

View File

@ -9,7 +9,7 @@ message DBPayOrder {
int64 ctime = 4;
}
//
//
message DBUserPay {
string uid = 1; //id
map<string, int32> record = 2; //

View File

@ -0,0 +1,47 @@
syntax = "proto3";
option go_package = ".;pb";
import "pay/pay_db.proto";
import "comm.proto";
import "errorcode.proto";
//
message PayRecordReq {
}
//
message PayRecordResp{
DBUserPay info = 1;
}
//
message PayInfoReq {}
message PayInfoResp { DBPayDaily info = 1; }
//
message PayDailyBuyReq { int32 id = 1; }
message PayDailyBuyResp { bool isucc = 1; repeated UserAssets items = 2;}
//
message PayShippedPush {
string pid = 1;
string orderid = 2;
repeated UserAssets items = 3;
DBUserPay info = 4;
}
///
message PayDeliveryReq {
string uid = 1;
string orderid = 2;
string productid = 3;
int32 price = 4;
int32 amount = 5;
}
///
message PayDeliveryResp {
ErrorCode code = 1; //@go_tags(`json:"s""`)
string msg = 2;
string data = 3;
}

View File

@ -1,24 +0,0 @@
syntax = "proto3";
option go_package = ".;pb";
import "pay_db.proto";
import "errorcode.proto";
//
message PayInfoReq {}
message PayInfoResp { DBPayDaily info = 1; }
//
message PayDailyBuyReq { int32 id = 1; }
message PayDailyBuyResp { bool isucc = 1; }
///
message PayDeliveryReq {
string uid = 1;
string orderid = 2;
string productid = 3;
}
///
message PayDeliveryResp {
ErrorCode code = 1;
string msg = 2;
}

View File

@ -0,0 +1,24 @@
syntax = "proto3";
option go_package = ".;pb";
// vip
message DBPrivilege {
string id = 1; //@go_tags(`bson:"_id"`) ID
string uid = 2; //@go_tags(`bson:"uid"`) ID
string cId = 3; //@go_tags(`bson:"cId"`) ID
int64 cTime = 4; //@go_tags(`bson:"cTime"`) //
int64 eTime = 5; //@go_tags(`bson:"eTime"`) //
int64 rewardTime = 6; //@go_tags(`bson:"rewardTime"`)
}
message PrivilegeList{
repeated int32 privilegeID = 1; //@go_tags(`bson:"privilegeID"`) ID
}
message DBVip {
string id = 1; //@go_tags(`bson:"_id"`) ID
string uid = 2; //@go_tags(`bson:"uid"`) ID
map<int32,bool> reward= 3; // key vip
map<int32,PrivilegeList> privilege = 4;//@go_tags(`bson:"privilege"`) ID
int64 cTime = 5; //@go_tags(`bson:"cTime"`) //
int64 rewardTime = 6; //@go_tags(`bson:"rewardTime"`)
}

View File

@ -0,0 +1,38 @@
syntax = "proto3";
option go_package = ".;pb";
import "privilege/privilege_db.proto";
//
message PrivilegeGetListReq {
}
//
message PrivilegeGetListResp {
repeated DBPrivilege data = 1;
}
//
message PrivilegeBuyYuekaReq {
string cID = 1;
}
message PrivilegeBuyYuekaResp {
repeated DBPrivilege data = 1;
}
message PrivilegeBuyGiftReq {
int32 vipLv = 1; // vip
}
message PrivilegeBuyGiftResp {
DBVip data = 1;
}
message PrivilegeVipListReq {
}
message PrivilegeVipListResp {
DBVip data = 1;
}

BIN
src/pb/proto/protoc.exe Normal file

Binary file not shown.

View File

@ -0,0 +1,31 @@
syntax = "proto3";
option go_package = ".;pb";
//Pvp类型
enum PvpType{
friends = 0; //
}
enum PvpState {
void = 0; //
ready = 1; //
battle = 2; //
cancel = 3; //
finish = 4; //
}
message PvpUserInfo {
string uid = 1;
string name = 2;
string avatar = 3;
int32 lv = 4;
}
message DBPvpBattle {
string id = 1; //id
string servicePath = 2; //
PvpType ptype = 3; //pvp类型
PvpState state = 4; //
PvpUserInfo red = 5; //id
PvpUserInfo blue = 6; //id
}

View File

@ -0,0 +1,81 @@
syntax = "proto3";
option go_package = ".;pb";
import "pvp/pvp_db.proto";
import "battle/battle_msg.proto";
import "errorcode.proto";
//
message PvpListReq {
}
//
message PvpListResp {
repeated DBPvpBattle list = 1;
}
//
message PvpIntoReq {
string battleid = 1; //id
}
//
message PvpIntoResp {
ErrorCode code = 1; //
string battleid = 2; //id
BattleStateInfo info=3; //
}
//Pvp
message PvpReadyPush {
string servicePath = 1; //
string battleid = 2; //id
PvpUserInfo red = 3; //
PvpUserInfo blue = 4; //
int32 countdown = 5; //
}
//Pvp
message PvpCancelPush {
string servicePath = 1; //
string battleid = 2; //id
}
//
message PvpFormationReq {
string battleid = 1; //id
BattleFormation formation = 2; //
}
//
message PvpFormationResp {
bool issucc = 1;
}
//
message PvpStartPush{
ErrorCode code = 1; //
BattleInfo info = 2;
}
//Pvp
message PvpOutCmdPush {
string battleid = 1;
repeated BattleCmd cmd = 2;
}
//pvp
message PvpInCmdReq {
string battleid = 1;
BattleCmd cmd =2;
}
//pvp
message PvpInCmdResp {
ErrorCode code = 1; //
string battleid = 2;
BattleCmd cmd = 3;
}

View File

@ -0,0 +1,16 @@
syntax = "proto3";
option go_package = ".;pb";
// 使
message RtaskTestReq {
int32 rtaskType = 1; //
repeated int32 params = 2; //
int32 condiId = 3; //ID
int32 groupId = 4; //
string rtaskIds = 5; //ids
}
message RtaskTestResp {
bool flag = 1;
repeated int32 rtaskIds = 2;
}

View File

@ -1,26 +0,0 @@
syntax = "proto3";
option go_package = ".;pb";
message frtaskIds { repeated int32 rtaskIds = 1; }
//
message DBRtask {
string id = 1; //@go_tags(`bson:"_id"`) ID
string uid = 2; //@go_tags(`bson:"uid"`) ID
map<int32, frtaskIds> frtaskIds =
3; //@go_tags(`bson:"frtaskIds"`) Id
int32 nextRtaskId = 4; //@go_tags(`bson:"nextRtaskId"`) Id
bool isReward = 5; //@go_tags(`bson:"isReward"`)
}
message rtaskData {
map<int32, int32> data = 1; //@go_tags(`bson:"data"`)
int32 rtype = 2; //@go_tags(`bson:"rtype"`)
int64 timestamp = 3; //@go_tasg(`bson:"timestamp"`)
}
//
message DBRtaskRecord {
string id = 1; //@go_tags(`bson:"_id"`) ID
string uid = 2; //@go_tags(`bson:"uid"`) ID
map<int32, rtaskData> vals = 3; //@go_tags(`bson:"vals"`)
}

View File

@ -1,96 +0,0 @@
syntax = "proto3";
option go_package = ".;pb";
import "battle_msg.proto";
import "rtask_db.proto";
//
message RtaskApplyReq {
int32 rtaskId = 1; //ID
int32 rtaskSubId = 2; //线ID
}
message RtaskApplyResp { int32 rtaskId = 1; }
//
message RtasklistReq {
int32 groupId = 1; //ID
}
message RtasklistResp {
repeated int32 rtaskIds = 1;
int32 groupId = 2;
}
//
message RtaskChooseReq {
int32 rtaskId = 1; //ID
int32 chooseId = 2; //ID
int32 rtaskSubId = 3; //线ID
}
message RtaskChooseResp {
int32 rtaskId = 1; //ID
int32 chooseId = 2; //ID
int32 rtaskSubId = 3; //线ID
}
//
message RtaskFinishPush { int32 rtaskId = 1; }
//
message RtaskFinishIdsPush {
repeated int32 rtaskId = 1;
int32 groupId = 2;
}
//
message RtaskGetRewardReq {
int32 rtaskId = 1;
int32 rtaskSubId = 2; //线ID
}
message RtaskGetRewardResp {
int32 rtaskId = 1;
int32 rtaskSubId = 2; //线ID
}
//
message RtaskBattleStartReq {
int32 battleConfId = 1; //ID
int32 leadpos = 3; //
repeated string teamids = 4; //
}
message RtaskBattleStartResp {
BattleInfo info = 1; //
}
//
message RtaskBattleFinishReq {
int32 rtaskId = 1; //ID
int32 rtaskSubId = 2; //线ID
int32 chooseId = 3; //ID
}
message RtaskBattleFinishResp {
int32 rtaskId = 1; //ID
int32 rtaskSubId = 2; //线ID
}
//
message RtaskGetrecordReq {}
message RtaskGetrecordResp { DBRtaskRecord record = 1; }
// 使
message RtaskTestReq {
int32 rtaskType = 1; //
repeated int32 params = 2; //
int32 condiId = 3; //ID
int32 groupId = 4; //
string rtaskIds = 5; //ids
}
message RtaskTestResp {
bool flag = 1;
repeated int32 rtaskIds = 2;
}

View File

@ -0,0 +1,12 @@
syntax = "proto3";
option go_package = ".;pb";
//
message DBServerData {
string id = 1; //id
int32 serverState = 2;//@go_tags(`bson:"serverState"`)
int32 disposableLoop = 3; //@go_tags(`bson:"disposableLoop"`) //
int32 fixedLoop = 4; //@go_tags(`bson:"fixedLoop"`)
int32 seasonType = 5;//@go_tags(`bson:"seasonType"`)
int64 openTime = 6; //@go_tags(`bson:"openTime"`)
}

View File

@ -1,5 +1,6 @@
syntax = "proto3";
option go_package = ".;pb";
import "equipment/equipment_db.proto";
enum ShopType {
Null = 0;
@ -15,16 +16,19 @@ message UserShopData {
int32 ManualRefreshNum = 2; //
repeated int32 Items = 3; //
map<int32, int32> buy = 4; //
map<int32, DB_Equipment> preview = 5; //
}
message DBShop {
string id = 1; //@go_tags(`bson:"_id"`) id
string uid = 2; //@go_tags(`bson:"uid"`) id
UserShopData goldShop = 3; //@go_tags(`bson:"goldShop"`)
UserShopData diamondShop = 4; //@go_tags(`bson:"diamondShop"`)
UserShopData pvpShop = 5; //@go_tags(`bson:"pvpShop"`)
UserShopData pveShop = 6; //@go_tags(`bson:"pveShop"`)
UserShopData allianceShop = 7; //@go_tags(`bson:"allianceShop"`)
int32 refreshnumgoldShop = 3; //@go_tags(`bson:"refresholdShop"`)
int64 refreshtimegoldShop = 4; //@go_tags(`bson:"refresholdShop"`)
UserShopData goldShop = 5; //@go_tags(`bson:"goldShop"`)
UserShopData diamondShop = 6; //@go_tags(`bson:"diamondShop"`)
UserShopData pvpShop = 7; //@go_tags(`bson:"pvpShop"`)
UserShopData pveShop = 8; //@go_tags(`bson:"pveShop"`)
UserShopData allianceShop = 9; //@go_tags(`bson:"allianceShop"`)
}
// message DBShopItem {

View File

@ -0,0 +1,41 @@
syntax = "proto3";
option go_package = ".;pb";
import "shop/shop_db.proto";
import "comm.proto";
import "equipment/equipment_db.proto";
//
message ShopItem {
int32 GoodsId = 1; //Id
repeated UserAssets Items = 2; //
repeated UserAssets Consume = 3; //
int32 Sale = 4; //
int32 LeftBuyNum = 5; //
DB_Equipment preview = 6; //
}
//
message ShopGetListReq {
ShopType sType = 1; //
bool IsManualRefresh = 2; //
}
//
message ShopGetListResp {
ShopType sType = 1; //
bool IsManualRefresh = 2; //
repeated ShopItem Goods = 4; //
int32 SurplusRefreshNum = 5; //
}
//
message ShopBuyReq {
ShopType ShopType = 1; //
int32 GoodsId = 2; //Id
int32 BuyNum = 3; //
}
//
message ShopBuyResp {
bool IsSucc = 1; //
}

View File

@ -1,40 +0,0 @@
syntax = "proto3";
option go_package = ".;pb";
import "shop_db.proto";
import "comm.proto";
//
message ShopItem {
int32 GoodsId = 1; //Id
repeated UserAssets Items = 2; //
repeated UserAssets Consume = 3; //
int32 Sale = 4; //
int32 LeftBuyNum = 5; //
}
//
message ShopGetListReq {
ShopType sType = 1; //
bool IsManualRefresh = 2; //
}
//
message ShopGetListResp {
ShopType sType = 1; //
bool IsManualRefresh = 2; //
repeated ShopItem Goods = 4; //
int32 SurplusRefreshNum = 5; //
}
//
message ShopBuyReq {
ShopType ShopType = 1; //
int32 GoodsId = 2; //Id
int32 BuyNum = 3; //
}
//
message ShopBuyResp {
bool IsSucc = 1; //
}

View File

@ -0,0 +1,69 @@
syntax = "proto3";
option go_package = ".;pb";
import "comm.proto";
//
message DBStove{
string id = 1; //@go_tags(`bson:"_id"`) ID
string uid = 2; //@go_tags(`bson:"uid"`) ID
int32 lv = 3; //
map<int32,int32> data = 4; // key value
map<int32,int32> skill = 5; //
map<int32,int32> forge = 6; // key value
int32 temperature = 7;//
int64 recoveTime = 8; //
int32 business = 9; //
}
//
message DBBusiness{
map<int32,int32> shop = 1;
}
message DBBusinessData{
string id = 1; //@go_tags(`bson:"_id"`) ID
string uid = 2; //@go_tags(`bson:"uid"`) ID
repeated DBBusiness data = 3;
int32 count = 4; //
int64 refreshTime = 5;//@go_tags(`bson:"refreshTime"`)
}
//
message DBTujian{
string id = 1; //@go_tags(`bson:"_id"`) ID
string uid = 2; //@go_tags(`bson:"uid"`) ID
map<int32,ForgeData> tujian = 3; //
int32 slider = 4; //
}
message ForgeData{
int32 forgeCount = 1; //
int32 lv = 2;
int32 quality = 3;
}
////////
message Clang{
int32 deskType = 1; //
int64 eTime = 2;
int64 sTime = 3; //
}
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; //
map<int32,int32> deskFloor = 10;//@go_tags(`bson:"deskFloor"`)
int32 stoveFloor = 11;//@go_tags(`bson:"stoveFloor"`)
int32 totalTime = 12;//@go_tags(`bson:"totalTime"`)
}

View File

@ -0,0 +1,136 @@
syntax = "proto3";
option go_package = ".;pb";
import "smithy/smithy_db.proto";
import "user/user_db.proto";
//
message SmithyGetStoveInfoReq {
}
message SmithyGetStoveInfoResp {
DBStove data = 1;
}
//
message SmithyForgeEquipReq{
int32 equipType = 1; //
int32 lava = 2;//
int32 quality = 3;//
}
message SmithyForgeEquipResp{
int32 equip = 1; // ID
DBStove data = 2;
}
//
message SmithyOrderEquipReq{
int32 suiteId = 1;// ID
int32 position = 2; //
int32 lava = 3;//
int32 quality = 4;//
}
message SmithyOrderEquipResp{
int32 equip = 1; // ID
DBStove data = 2;
}
//
message SmithyStoveUpReq{
}
message SmithyStoveUpResp{
DBStove data = 1;
}
//
message SmithyRiseReq{
string itemId = 1; // ID
int32 count = 2;//
}
message SmithyRiseResp{
DBStove data = 1;
}
//
message SmithyToolsUpReq{
int32 id = 1; // ID
}
message SmithyToolsUpResp{
DBStove data = 1;
}
//
message SmithyRefreshShopReq{
}
message SmithyRefreshShopResp{
DBBusiness data = 1;
}
//
message SmithySellItemReq{
int32 id = 1; // ID
int32 count = 2; //
}
message SmithySellItemResp{
DBBusiness data = 1;
}
//////////////////////////////////////////
//
message SmithyCreateOrderReq {
repeated OrderClang order = 1;//
}
message SmithyCreateOrderResp {
DBSmithy data = 1;
}
//
message SmithyGetRewardReq{
}
message SmithyGetRewardResp{
DBSmithy data = 1;
}
//
message SmithyDeskSkillLvReq{
int32 deskType = 1; //
}
message SmithyDeskSkillLvResp{
DBSmithy data = 1;
}
//
message SmithyStoveSkillLvReq{
}
message SmithyStoveSkillLvResp{
DBSmithy data = 1;
}
message SmithyGetRandUserReq{
int32 people = 1;//
}
message SmithyGetRandUserResp{
repeated DBUser user = 1;
}
message SmithyGetListReq {
}
//
message SmithyGetListResp {
DBSmithy data = 1;
}

View File

@ -1,31 +0,0 @@
syntax = "proto3";
option go_package = ".;pb";
import "comm.proto";
message Clang{
int32 deskType = 1; //
int64 eTime = 2;
int64 sTime = 3; //
}
//
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; //
map<int32,int32> deskFloor = 10;//@go_tags(`bson:"deskFloor"`)
int32 stoveFloor = 11;//@go_tags(`bson:"stoveFloor"`)
}

View File

@ -1,55 +0,0 @@
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 SmithyDeskSkillLvReq{
int32 deskType = 1; //
}
message SmithyDeskSkillLvResp{
DBSmithy data = 1;
}
//
message SmithyStoveSkillLvReq{
}
message SmithyStoveSkillLvResp{
DBSmithy data = 1;
}
message SmithyGetRandUserReq{
}
message SmithyGetRandUserResp{
repeated string user = 1;
}

View File

@ -0,0 +1,133 @@
syntax = "proto3";
option go_package = ".;pb";
import "battle/battle_msg.proto";
message DBSociaty {
string id = 1; //@go_tags(`bson:"_id"`) ID
string creater = 2; //@go_tags(`bson:"creater"`)
string name = 3; //@go_tags(`bson:"name"`)
string icon = 4; //@go_tags(`bson:"icon"`)
string notice = 5; //@go_tags(`bson:"notice"`)
int32 exp = 6; //@go_tags(`bson:"exp"`)
int32 lv = 7; //@go_tags(`bson:"lv"`)
bool isApplyCheck = 8; //@go_tags(`bson:"isApplyCheck"`)
int32 applyLv = 9; //@go_tags(`bson:"applyLv"`)
int64 ctime = 10; //@go_tags(`bson:"ctime"`)
repeated ApplyRecord applyRecord =
11; //@go_tags(`bson:"applyRecord"`)
repeated SociatyMember members = 12; //@go_tags(`bson:"members"`
int32 activity = 13; //@go_tags(`bson:"activity"`)
int64 accuseTime = 14; //@go_tags(`bson:"accuseTime"`)
int32 lastSignCount = 15; //@go_tags(`bson:"lastSignCount"`)
repeated string signIds = 16; //@go_tags(`bson:"signIds"`) IDs
int64 dismissTime = 17; //@go_tags(`bson:"dismissTime"`)
int64 dismissCD = 18; //@go_tags(`bson:"dismissCD"`) CD
}
//
message ApplyRecord {
string uid = 1; //@go_tags(`bson:"uid"`) ID
int64 ctime = 2; //@go_tags(`bson:"ctime"`)
}
//
enum SociatyJob {
NOJOB = 0; ///
MEMBER = 1; //
ADMIN = 2; //
VICEPRESIDENT = 3; //
PRESIDENT = 4; //
}
//
message SociatyMember {
string uid = 1; //@go_tags(`bson:"uid"`) ID
SociatyJob job = 2; //@go_tags(`bson:"job"`)
int64 ctime = 3; //@go_tags(`bson:"ctime"`)
int32 contribution = 4; //@go_tags(`bson:"contribution"`)
map<int32, ChallengeTeam> teams = 5; //@go_tags(`bson:"teams"`) BOSS
}
//
message SociatyLog {
string content = 1; //@go_tags(`bson:"content"`)
int64 ctime = 2; //@go_tags(`bson:"ctime"`)
}
message DBSociatyLog {
string sociatyId = 1; //@go_tags(`bson:"sociatyId") ID
repeated SociatyLog list = 2; //@go_tags(`bson:"list"`)
}
//
message DBSociatyTask {
string sociatyId = 1; //@go_tags(`bson:"sociatyId") ID
string uid = 2; //@go_tags(`bson:"uid"`) ID
repeated SociatyTask taskList = 3; //@go_tags(`bson:"taskList"`)
repeated SociatyActivity activityList =
4; //@go_tags(`bson:"activityList"`)
int64 lastUpdateTime = 5; //@go_tags(`bson:"lastUpdateTime"`)
}
//
message SociatyTask {
int32 taskId = 1; //@go_tags(`bson:"taskId"`) ID
int32 status = 2; //@go_tags(`bson:"status"`) :0 1
int32 received = 3; //@go_tags(`bson:"received"`) : 0 1
}
//
message SociatyActivity {
int32 id = 1; //@go_tags(`bson:"id"`) ID
int32 status = 2; //@go_tags(`bson:"status"`) :0 1
}
//
message DBSociatyRank {
string sociatyId = 1; //@go_tags(`bson:"sociatyId"`)
string name = 2; //@go_tags(`bson:"name"`)
int32 lv = 3; //@go_tags(`bson:"lv"`)
int32 activity = 4; //@go_tags(`bson:"activity"`)
int64 ctime = 5; //@go_tags(`bson:"ctime"`)
}
//
message ChallengeTeamInfo {
string heroId = 1; //@go_tags(`bson:"heroId"`) ID
}
//
message ChallengeTeam {
BattleFormation formation = 1; //@go_tags(`bson:"teamInfo"`)
}
//
message DBSociatyBossSports {
int64 endTime = 1; //@go_tags(`bson:"endTime"`) BOSS赛季结束时间
int64 settlementTime = 2; //@go_tags(`bson:"settlementTime"`)
repeated string uids = 3; //@go_tags(`bson:"uids"`)
}
//
message ChallengeRecord {
map<int32, ChallengeTeam> teams = 1; //@go_tags(`bson:"teams"`)
int64 integral = 2; //@go_tags(`bson:"integral"`) BOSS挑战积分
int32 duration = 3; //@go_tags(`bson:"duration"`)
int64 rtime = 4; //@go_tags(`bson:"rtime"`)
}
message ChallengeTask {
int32 taskId = 1; //@go_tags(`bson:"taskId"`) ID
int32 status = 2; //@go_tags(`bson:"status"`) 0 1 2
}
//
message DBSociatyBossRecord {
string uid = 1; //@go_tags(`bson:"uid"`) ID
string sociatyId = 2; //@go_tags(`bson:"sociatyId"`) ID
repeated ChallengeRecord record = 4; //@go_tags(`bson:"record"`)
int64 total = 5; //@go_tags(`bson:"total"`) ()
repeated int64 integrals = 6; //@go_tags(`bson:"integrals"`)
int32 status = 7; //@go_tags(`bson:"status"`)0 1
repeated ChallengeTask tasks = 8; //@go_tags(`bson:"tasks"`)
}

View File

@ -0,0 +1,289 @@
syntax = "proto3";
option go_package = ".;pb";
import "comm.proto";
import "sociaty/sociaty_db.proto";
import "battle/battle_db.proto";
import "battle/battle_msg.proto";
//
message SociatyCreateReq {
string name = 1; //
string icon = 2; //
string notice = 3; //
bool isApplyCheck = 4; //
int32 applyLv = 5; //
}
message SociatyCreateResp {
string id = 1; //ID
string uid = 2; //ID
}
//
enum SociatyListFilter {
ALL = 0; //
CONDI = 1; //
NOAPPLY = 2; //
APPLYING = 3; //
}
//
message SociatyListReq { SociatyListFilter filter = 1; }
message SociatyListResp { repeated DBSociaty list = 1; }
//
message SociatySearchReq {
string name = 1; //
}
message SociatySearchResp { repeated DBSociaty list = 1; }
//
message SociatySettingReq {
string icon = 1; //
string notice = 2; //
bool isApplyCheck = 3; //
int32 applyLv = 4; //
}
message SociatySettingResp {
string sociatyId = 1; //ID
}
//
message SociatyMineReq {}
message SociatyMineResp {
DBSociaty sociaty = 1; //
SociatyMemberInfo master = 2; //
}
//
message SociatyMemberInfo {
string uid = 1;
string name = 2; //
string avatar = 3; //
int32 lv = 4; //
SociatyJob job = 5; //
int64 offlineTime = 6; //线
}
//
message SociatyApplyListReq { string sociatyId = 1; }
message SociatyApplyListResp { repeated SociatyMemberInfo list = 1; }
//
message SociatyApplyReq {
string sociatyId = 1; //ID
}
message SociatyApplyResp {
string uid = 1;
string scoiatyId = 2;
}
//
message SociatyApplyCancelReq { string sociatyId = 1; }
message SociatyApplyCancelResp {
string uid = 1;
string sociatyId = 2;
}
//
message SociatyAgreeReq { string uid = 1; }
message SociatyAgreeResp {
string uid = 1;
string sociatyId = 2;
}
//
message SociatyRefuseReq { string uid = 1; }
message SociatyRefuseResp {
string uid = 1;
string sociatyId = 2;
}
//
message SociatyCancelReq {}
message SociatyCancelResp {}
// 退
message SociatyQuitReq {}
message SociatyQuitResp {
string uid = 1;
string sociatyId = 2;
}
//
message SociatyDismissReq {
int32 dismiss = 1; // 1
}
message SociatyDismissResp {
string uid = 1;
string sociatyId = 2;
}
//
message SociatyMembersReq {}
message SociatyMembersResp { repeated SociatyMemberInfo list = 1; }
//
message SociatyAssignReq {
string targetId = 1; //ID
}
message SociatyAssignResp {
string sociatyId = 1;
string targetId = 2; //ID
}
//
message SociatyDischargeReq {
string targetId = 1; //ID
}
message SociatyDischargeResp {
string sociatyId = 1;
string targetId = 2; //ID
}
//
message SociatySettingJobReq {
string targetId = 1; //ID
SociatyJob job = 2; //
}
message SociatySettingJobResp {
string sociatyId = 1;
string targetId = 2; //ID
SociatyJob job = 3; //
}
//
message SociatyAccuseReq {}
message SociatyAccuseResp { string sociatyId = 1; }
//
message SociatySignReq {}
message SociatySignResp {
string uid = 1;
string sociatyId = 2;
}
//
message SociatyLogReq {}
message SociatyLogResp { DBSociatyLog log = 1; }
//
message SociatyTaskListReq {}
message SociatyTaskListResp { repeated SociatyTask list = 1; }
//
message SociatyReceiveReq {
int32 taskId = 1; //ID
}
message SociatyReceiveResp {
int32 taskId = 1;
string sociatyId = 2;
}
//
message SociatyActivityListReq {}
message SociatyActivityListResp { repeated SociatyActivity list = 1; }
//
message SociatyActivityReceiveReq {
int32 id = 1; //ID
}
message SociatyActivityReceiveResp {
int32 id = 1;
string sociatyId = 2;
}
//
message SociatyRankReq {
int32 rankType = 1; // 123
}
message SociatyRankResp { repeated DBSociatyRank rank = 1; }
//
message SociatyPDismissPush { string sociatyId = 1; }
//
message SociatyPAgreePush {
string uid = 1;
string sociatyId = 2;
}
// BOSS入口
message SociatyBMainReq {}
message SociatyBMainResp {
map<int32, ChallengeTeam> teams = 1; //BOSS
int32 ticket = 2; //
int64 endTime = 3; //
int64 settlementTime = 4; //
int64 total = 5; //
repeated int64 highIntegrals = 6; //
int64 personalRanking = 7; //
int64 sociatyRanking = 8; //
}
// BOSS
message SociatyBFormationReq {
string sociatyId = 1;
map<int32, ChallengeTeam> teams = 2; //1 2 31
}
message SociatyBFormationResp {
string sociatyId = 1;
string uid = 2;
}
// BOSS挑战
message SociatyBChallengeStartReq { string sociatyId = 1; }
message SociatyBChallengeStartResp {
string sociatyId = 1;
string uid = 2;
}
message SociatyBChallengeFinishReq {
PlayType ptype = 1;
BattleReport report = 2;
}
message SociatyBChallengeFinishResp {
int64 integral = 1; //
}
// BOSS
message SociatyRecommendReq {
int32 cate = 1; // 1 2
}
message SociatyRecommendResp { map<int32, ChallengeTeam> teams = 1; }
// BOSS
message SociatyBReceiveReq { int32 taskId = 1; }
message SociatyBReceiveResp {
string sociatyId = 1;
int32 taskId = 2;
}
//BOSS
message SociatyBRankReq {
int32 rankType = 1; // 123
}
message SociatyRankInfo {
string name = 1; //
string head = 2; //
int32 lv = 3; //
string sociatyName = 4; //
int64 ranking = 5; //
int64 integral = 6; //
}
message SociatyBRankResp { repeated SociatyRankInfo rank = 1; }
//
message SociatyBuyReq {
UserAssets atn = 1; //
int32 buyNum = 2; //
}
message SociatyBuyResp { string uid = 1; }

View File

@ -1,7 +1,9 @@
syntax = "proto3";
option go_package = ".;pb";
message SysFuncListReq {}
message SysFuncListReq {
repeated string keys = 1; //ID
}
message SysFuncListResp {
repeated string funcIds = 1; //ID

View File

@ -0,0 +1,58 @@
syntax = "proto3";
option go_package = ".;pb";
message DBTask {
string id = 1; //@go_tags(`bson:"_id"`) ID
string uid = 2; //@go_tags(`bson:"uid"`) ID
repeated TaskData dayList = 4; //@go_tags(`bson:"dayList"`)
repeated TaskData weekList = 5; //@go_tags(`bson:"weekList"`)
repeated TaskData achieveList =
6; //@go_tags(`bson:"achieveList"`)
}
message TaskData {
int32 taskId = 3; //@go_tags(`bson:"taskId"`) Id
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"`)
int32 sort = 10; //@go_tags(`bson:"sort"`)
}
message DBActivity {
string id = 1; //@go_tags(`bson:"_id"`) ID
string uid = 2; //@go_tags(`bson:"uid"`) ID
repeated ActivityData activityList =
3; //@go_tags(`bson:"activityList"`)
}
message ActivityData {
int32 taskId = 1; //@go_tags(`bson:"taskId"`) taskId
int32 tag = 2; //@go_tags(`bson:"tag"`)
int32 received = 3; //@go_tags(`bson:"received"`) 0 1
}
message frtaskIds { repeated int32 rtaskIds = 1; }
//
message DBRtask {
string id = 1; //@go_tags(`bson:"_id"`) ID
string uid = 2; //@go_tags(`bson:"uid"`) ID
map<int32, frtaskIds> frtaskIds =
3; //@go_tags(`bson:"frtaskIds"`) Id
bool isReward = 5; //@go_tags(`bson:"isReward"`)
}
message rtaskData {
map<int32, int32> data = 1; //@go_tags(`bson:"data"`)
int32 rtype = 2; //@go_tags(`bson:"rtype"`)
int64 timestamp = 3; //@go_tasg(`bson:"timestamp"`)
}
//
message DBRtaskRecord {
string id = 1; //@go_tags(`bson:"_id"`) ID
string uid = 2; //@go_tags(`bson:"uid"`) ID
map<int32, rtaskData> vals = 3; //@go_tags(`bson:"vals"`)
}

View File

@ -1,11 +1,23 @@
syntax = "proto3";
option go_package = ".;pb";
import "task_db.proto";
import "task/task_db.proto";
message TaskGetrecordReq {}
message TaskGetrecordResp { DBRtaskRecord record = 1; }
//
message TaskSendReq {
int32 taskType = 1; //
repeated int32 params = 2; //
}
message TaskSendResp {
bool isSucc = 1;
}
//
message TaskReceiveReq {
int32 taskTag = 1; // 1/2/3
string id = 2; //ID
int32 id = 2; //ID
}
message TaskReceiveResp {
@ -17,35 +29,25 @@ message TaskListReq {
int32 taskTag = 1; ////
}
message TaskListResp { repeated DBTask list = 1; }
message TaskListResp { repeated TaskData list = 1; }
//
message TaskActiveListReq { int32 taskTag = 1; }
message TaskActiveListResp {
repeated DBTaskActive list = 1; //
repeated ActivityData list = 1; //
int32 active = 2; //
}
//
message TaskActiveReceiveReq {
int32 taskTag = 1; // 1/2
string id = 2; //id
int32 id = 2; //id
}
message TaskActiveReceiveResp {
int32 taskTag = 1;
string id = 2;
int32 id = 2;
}
//
message TaskDoStrategyReq {
int32 heroCfgId = 1; //ID
}
message TaskDoStrategyResp {
repeated int32 taskIds = 1; //ID
}
//
message TaskFinishedPush {
int32 taskId = 1;
}
message TaskFinishedPush { int32 taskId = 1; }

View File

@ -1,23 +0,0 @@
syntax = "proto3";
option go_package = ".;pb";
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 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"`)
int32 sort = 10; //@go_tags(`bson:"sort"`)
}
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 tag = 4; //@go_tags(`bson:"tag"`)
int32 received = 5; //@go_tags(`bson:"received"`) 0 1
}

View File

@ -0,0 +1,7 @@
syntax = "proto3";
option go_package = ".;pb";
//
message TaskcondFinishedPush {
int32 condId = 1; //ID
}

View File

@ -0,0 +1,36 @@
syntax = "proto3";
option go_package = ".;pb";
//
message DBTrollTrain {
string id = 1; //@go_tags(`bson:"_id"`) ID
string uid = 2; //@go_tags(`bson:"uid"`) ID
map<int32,int32> items = 3;// key ID
map<int32,int32> price = 4;// key ID
int32 gridNum = 5; //@go_tags(`bson:"gridNum"`) 使
int32 tarinPos = 6; //@go_tags(`bson:"tarinPos"`) ()
int32 rangeId = 7; //@go_tags(`bson:"rangeId"`)
int32 buy = 8; // /
int32 sell = 9; ///
int32 npcLv = 10;//@go_tags(`bson:"npcLv"`) npc
map<int32,int32> npcReward = 11;//@go_tags(`bson:"npcReward"`) npc奖励
int64 totalEarn = 12;//@go_tags(`bson:"totalEarn"`)
int32 sellCount = 13;//@go_tags(`bson:"sellCount"`)
int64 refreshTime = 14;//@go_tags(`bson:"refreshTime"`)
int32 aiCount = 15;//@go_tags(`bson:"aiCount"`) AI
map<int32,int32> shop= 16; //
int64 ctime = 17; //
int32 circle = 18; //
map<int32,int32> surpriseID = 19; //@go_tags(`bson:"surpriseID"`) key商人id value惊喜货物ID
int64 resetTime = 20; //@go_tags(`bson:"resetTime"`)
}
//
message DBTrollRecord{
string id = 1; //@go_tags(`bson:"_id"`) ID
string uid = 2; //@go_tags(`bson:"uid"`) ID
int32 gold = 3; //
int32 pos = 4; //
int64 time = 5; //
}

View File

@ -0,0 +1,74 @@
syntax = "proto3";
option go_package = ".;pb";
import "troll/troll_db.proto";
//
message TrollGetListReq {
}
//
message TrollGetListResp {
DBTrollTrain data = 1;
}
//
message TrollBuyOrSellReq {
map<int32,int32> items =1;//()
}
message TrollBuyOrSellResp {
DBTrollTrain data = 1;
}
// afk
message TrollAfkSetReq {
int32 buy = 1;
int32 sell = 2;
int32 count = 3; //
}
message TrollAfkSetResp {
DBTrollTrain data = 1;
}
// npv等级奖励
message TrollNpcRewardReq {
int32 rewardId = 1;
}
message TrollNpcRewardResp {
DBTrollTrain data = 1;
}
//
message TrollRankListReq {
}
message RankData{
int32 rankId = 1; //
string uid = 2;
string name = 3; //
int64 gold = 4; //
int32 figure = 5; //
int32 title = 6;
}
message TrollRankListResp {
repeated RankData data = 1;
}
//
message TrollRecordListReq {
}
message TrollRecordListResp {
repeated DBTrollRecord data = 1;
}
//
message TrollSurpriseIdReq {
}
//
message TrollSurpriseIdResp {
map<int32,int32> surpriseID = 1; //@go_tags(`bson:"surpriseID"`) key商人id value惊喜货物ID
}

Some files were not shown because too many files have changed in this diff Show More