上传配置文件代码

This commit is contained in:
liwei1dao 2023-04-19 19:43:21 +08:00
parent eec9ff068d
commit 8e92612731
138 changed files with 9745 additions and 579 deletions

File diff suppressed because it is too large Load Diff

View File

@ -0,0 +1,16 @@
syntax = "proto3";
option go_package = ".;pb";
message DBPandaAtlas{
string id = 1; //@go_tags(`bson:"_id"`) ID
string uid = 2; //@go_tags(`bson:"uid"`) ID
map<string,CollectInfo> collect = 3; //
int32 score = 4; //
int32 award = 5; //
}
message CollectInfo{
int32 score = 1;
int64 time = 2; //
bool activate = 3; //
}

View File

@ -0,0 +1,31 @@
syntax = "proto3";
option go_package = ".;pb";
import "atlas/atlas_db.proto";
import "comm.proto";
//
message AtlasGetListReq{
}
message AtlasGetListResp{
DBPandaAtlas data = 1;
}
//
message AtlasActivateReq{
string id = 1; // ID
}
message AtlasActivateResp{
DBPandaAtlas data = 1;
}
//
message AtlasAwardReq{
}
message AtlasAwardResp{
DBPandaAtlas data = 1; //
repeated UserAssets res = 2; //
}

View File

@ -4,11 +4,12 @@ import "comm.proto";
enum BattleType {
nil = 0;
pve = 1;
pvp = 2;
pvb = 3;
eve = 4;
rtpvp = 5;
pve = 1; //pve
pvp = 2; //pvp
pvb = 3; //boos战斗
eve = 4; //eve对战
rtpvp = 5; //pvp
lpev = 6; //
}
//
@ -24,9 +25,10 @@ enum PlayType {
academy = 8; //
heroteaching =9; //
combat = 10; //
enchant = 11; //
enchant = 11; //
sociaty = 12; //
friendsmeet = 13; //
practicenpc = 14; //NPC
}
//
@ -53,11 +55,13 @@ message BattleRole {
int32 mainSuitSkill = 8; ///@go_tags(`bson:"mainSuitSkill"`)
int32 subSuitSkill = 9; ///@go_tags(`bson:"subSuitSkill"`)
repeated SkillData normalSkill = 10; //@go_tags(`bson:"normalSkill"`)
repeated SkillData equipSkill = 11; //@go_tags(`bson:"normalSkill"`)
map<string, int32> property = 12; //
bool ishelp = 13; //
int32 isboos = 14; //boos
int32 monsterid = 15; //id
repeated SkillData equipSkill = 11; //@go_tags(`bson:"equipSkill"`)
int32 PandaBuff = 12; //buff技能id
map<string, int32> property = 13; //
bool ishelp = 14; //
int32 isboos = 15; //boos
int32 monsterid = 16; //id
int32 currhp = 17; //
}
//

View File

@ -57,6 +57,18 @@ message BattleRTPVPReq {
repeated BattleFormation bulefformat = 9; //
}
// pve战斗
message BattleLPVEReq {
PlayType ptype = 1; //
string title = 2; //
string scene = 3; //
BattleFormation format = 4; //
int32 monsterleadpos = 5; //
repeated BattleRole monsters = 6; //
}
// pvb (boos战专用)
message BattlePVBReq {
PlayType ptype = 1; //
@ -69,7 +81,7 @@ message BattlePVBReq {
message BattleInfo {
string id = 1; //id
string title = 2; //
string scene = 3; //
int32 rulesid = 3; //id
BattleType btype = 4; //
PlayType ptype = 5; //
string redCompId = 6; //id
@ -89,12 +101,14 @@ message BattleCmd {
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; //
int32 winSide = 3; // 1 - red 2 = blue
repeated BattleCmd incmd = 4; //
repeated BattleCmd outcmd = 5; //
repeated int32 completetask = 6; //
int32 death = 7; //
int32 round = 8; //
int32 harm = 9; //
repeated BattleRole alive = 10; //
}
//
@ -154,6 +168,7 @@ message BattleOutCmdPush {
//
message BattleFinishPush {
string battleid = 1;
int32 winSide = 2;
}

View File

@ -138,4 +138,20 @@ message ComPlayEffect{
message ComEmitCountdown
{
int32 reserve =1;
}
//
message ComEffectTips
{
EffectTipsType type = 1;
int32 to = 2;
}
enum EffectTipsType {
Eff_Success = 0;
Not_Success = 1; //
Immunity = 2; //
Resist = 3; //
Not_Gain = 4; //
Not_Control = 5; //
Not_Action = 6; //
}

View File

@ -3,6 +3,12 @@ option go_package = ".;pb";
import "errorcode.proto";
import "google/protobuf/any.proto";
message ErrorData {
string title = 1;
int32 dataint = 2;
string datastring = 3;
}
//1
message UserMessage {
string MainType = 1; // :user user的模块
@ -29,7 +35,7 @@ message AgentMessage {
message RPCMessageReply {
ErrorCode Code = 1;
string ErrorMessage = 2;
google.protobuf.Any ErrorData = 3;
ErrorData ErrorData = 3;
repeated UserMessage Reply = 4;
}
@ -75,6 +81,15 @@ message NoticeUserLoginReq {
string GatewayServiceId = 5;
}
//
message NoticeUserCreateReq {
string Ip = 1;
string UserSessionId = 2;
string UserId = 3;
string ServiceTag = 4;
string GatewayServiceId = 5;
}
//线
message NoticeUserCloseReq {
string Ip = 1;

View File

@ -0,0 +1,31 @@
syntax = "proto3";
option go_package = ".;pb";
//
message DBDispatch {
string uid = 1; //@go_tags(`bson:"uid"`)
Noticeboard nb = 2; //@go_tags(`bson:"nb"`)
}
//
message Noticeboard {
int32 lv = 1; //@go_tags(`bson:"lv"`)
int32 noticeType =2; //@go_tags(`bson:"noticeType"`)
repeated DispatchTask tasks = 3; //@go_tags(`bson:"tasks"`)
int32 freeCount = 4; //@go_tags(`bson:"freeCount"`) 使
int32 refreshCount = 5; //@go_tags(`bson:"refreshCount"`)
int32 weekCount = 6; //@go_tags(`bson:"weekCount"`)
int32 taskCount = 7; //@go_tags(`bson:"taskCount"`)
repeated int32 weekReceived = 8; //@go_tags(`bson:"weekReceived"`) //ID
int64 updateTime = 9; //@go_tags(`bson:"updateTime"`)
}
//
message DispatchTask{
int32 taskId = 1; //@go_tags(`bson:"taskId"`) ID
int32 status = 2; //@go_tags(`bson:"status"`) 0 1 2
int64 duration = 3; //@go_tags(`bson:"duration"`)
int64 leftTime = 4; //@go_tags(`bson:"leftTime"`)
repeated string heroIds = 5; //go_tags(`bson:"heroIds"`)
bool exaward = 6; //@go_tags(`bson:"exaward"`)
}

View File

@ -0,0 +1,58 @@
syntax = "proto3";
option go_package = ".;pb";
import "dispatch/dispatch_db.proto";
//
message DispatchNoticeReq{}
message DispatchNoticeResp{
Noticeboard dispatch = 1;
}
//
message DispatchRefreshReq{}
message DispatchRefreshResp{
int32 freeCount = 1; //使
int32 refreshCount = 2; //
}
message DispatchTaskRsp{
int32 taskId =1;
bool exaward = 2;
}
//
message DispatchReceiveReq{
int32 taskId = 1; //ID
}
message DispatchReceiveResp{
DispatchTaskRsp rsp = 1;
}
//
message DispatchAutoReceiveReq{}
message DispatchAutoReceiveResp{
repeated DispatchTaskRsp task = 1; //ID
}
//
message DispatchDoReq{
int32 taskId = 1;
repeated string heroIds = 2;
}
message DispatchDoResp{
bool isSucc = 1; //
}
//
message DispatchWeekReciveReq{
int32 idx = 1; // 0
}
message DispatchWeekReciveResp{
int32 idx= 1;
}

View File

@ -3,9 +3,10 @@ option go_package = ".;pb";
// go:generate stringer -type ErrorCode -linecomment
enum ErrorCode {
Success = 0; //
GatewayException = 1; //
NoFindService = 10; //
NoFindServiceHandleFunc = 11; //
RpcFuncExecutionError = 12; // Rpc方法执行错误
RpcFuncExecutionError = 12; //Rpc方法执行错误
CacheReadError = 13; //
SqlExecutionError = 14; //
ReqParameterError = 15; //
@ -27,6 +28,7 @@ enum ErrorCode {
ConfigNoFound = 104; //
UserLogined = 105; //
NoOpened = 106; //
DataNotFound = 107; //
// user
SecKeyInvalid = 1000; //
@ -51,6 +53,13 @@ enum ErrorCode {
UserMoongoldNoEnough=1019; //
UserOffline = 1020; //线
UserNofound = 1021; //
UserSign = 1022; //
OpenCondErr = 1023; //
OpenCondActivate = 1024; //
UserTalent1NoEnough = 1025; //1
UserTalent2NoEnough = 1026; //2
UserTalent3NoEnough = 1027; //3
UserTalent4NoEnough = 1028; //4
// friend
FriendNotSelf = 1100; //
@ -75,7 +84,7 @@ enum ErrorCode {
FriendQiecuoNoRequest = 1119; //
FriendQiecuoing = 1120; //
FriendQiecuoTargetPk = 1121; //
FriendTicketNoEnough = 1122; //
// item
ItemsNoEnough = 1200; //
ItemsNoFoundGird = 1201; //
@ -112,12 +121,14 @@ enum ErrorCode {
HeroMaxSkillLv = 1323; //
HeroAlreadyKongFuStatus = 1324; //
HeroLvNoEnough = 1325; //
HeroIsRegister = 1326; //
// equipment
EquipmentOnFoundEquipment = 1400; //
EquipmentLvlimitReached = 1401; //
EquipmentIsWorn = 1402; // 穿
EquipmentNoCanSell = 1403; //
EquipmentSuiteNotFound = 1404; //
// mainMainline
MainlineNotFindChapter = 1500; // 线
@ -152,12 +163,14 @@ enum ErrorCode {
PagodaLevlErr = 1901; //
PagodaGetRewardErr = 1902; //
PagodaConditionErr = 1903; //
PagodaUnlock = 1904; //
// martialhall
MartialhallNotUnlocked = 2000; //
MartialhallInUse = 2001; //使
MartialhallUnlocked = 2002; //
MartialhallNoUnlocked = 2003; //
MartialhallAtlasError = 2004; //
MartialhallAtlasNoReward = 2005; //
//
GourmetMoreOrderTime = 2101; //
GourmetSkillMaxLv = 2102; //
@ -223,6 +236,8 @@ enum ErrorCode {
BattleCreateFailed = 2903; //
BattleInCmdFailed = 2904; //
BattleUserOff = 2905; //线
BattleCapskillCheckFailed = 2906; //
BattleNoKeep = 2907; //
// sociaty
SociatyNoFound = 3000; //
@ -235,38 +250,38 @@ enum ErrorCode {
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; //
SociatyLogParams = 3010; //
SociatyMasterNoDiss = 3011; //
SociatySettingJob = 3012; //
SociatySetting = 3013; //
SociatyNoAccuse = 3014; //
SociatySign = 3015; //
SociatySigned = 3016; //
SociatyCDLimit = 3017; // CD时间限制
SociatyApplyMax = 3018; //
SociatySelfSetting = 3019; //
SociatyMemberCountLimit = 3020; //
SociatyRewardReceived = 3021; //
SociatyRewardReceive = 3022; //
SociatyResource = 3023; //
SociatyBelongTo = 3025; //
SociatyApplied = 3026; //
SociatyAppyLvNoEnough = 3027; //
SociatyTaskValidation = 3028; //
SociatyActivityNoEnough = 3029; //
SociatyAcitvityReceive = 3030; //
SociatyDismissed = 3031; //
SociatyNameExist = 3032; //
SociatyQuitNoAllowed = 3033; //退
SociatyNoMaster = 3034; //
SociatyNoFormation = 3035; //
SociatyTicketsNoEnough = 3036; //
SociatySportsNoinit = 3037; //
SociatySportsEnd = 3038; //
SociatyTeamUnlock = 3039; //
SociatyTaskNoFound = 3040; //boss任务
SociatyTaskNoFinished = 3041; //
SociatyTaskReceived = 3042; //
// arena
ArenaTicketBuyUp = 3101; //
@ -309,10 +324,53 @@ enum ErrorCode {
WorldtaskFinihed = 3805; //
WorldtaskLastUnFinished = 3806; //
WorldtaskGroupIdNosame = 3807; //ID不一致
WorldtaskChapterUnFinished =3808; //
WorldtaskChapterReceived =3809; //
WorldtaskNoProcess = 3810; //
// academy
AcademyTaskNoCompleteTask = 3901; //
// AutoBattle
AutoBattleNoData = 4001; //
AutoBattleStatesErr = 4002; //
}
// smithy
SmithyNoReel = 4101;//
SmithyNoTemperature = 4102;//
SmithyStoveMaxLv = 4103;//
SmithyCustomerLimit = 4104; //
SmithyCustomerEquipNoEnough = 4105; //
SmithyMaxTemperature = 4106; //
SmithyLackLava = 4107; //
SmithyAtlasMaxLv = 4108; //
SmithyAtlasLackLv = 4109; //
SmithyTaskNoFinished = 4110; //
SmithyTaskReceived = 4111; //
SmithyNoFoundAtlas = 4112; //
SmithyNoActivateAtlas = 4113; //
SmithyLvToolsFailed = 4114; //
SmithyLvToolsPre = 4115; //
SmithyAtlasTypeErr = 4116; //
// dispatch
DispatchHeroNoReached = 4201; //
DispatchNoFree = 4202; //
DispatchTicketNoEnough = 4203; //
DispatchHeroAssigned = 4204; //
DispatchTaskExpired = 4205; //
DispatchRefreshMax = 4206; //
DispatchNoFinished = 4207; //
DispatchHeroNoEnough = 4208; //
//practice
PracticeQiecuoing = 4301; //
PracticeSent = 4302; // 10
PracticeInviteTimeOut = 4303; //
PracticePillarMaxLv = 4304; //
PracticeYouQiecuoing = 4305; //
PracticeTargetQiecuoing = 4306; //
//parkour
ParkourMemberFull = 4401; //
ParkourInviteOverdue = 4402; //
}

View File

@ -30,5 +30,6 @@ message QiecuoRecord{
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"`)
int64 timestamp = 5; //@go_tags(`bson:"timestamp"`)
int64 endTime = 6; //@go_tags(`bson:"endTime"`)
}

View File

@ -2,6 +2,11 @@ syntax = "proto3";
option go_package = ".;pb";
import "comm.proto";
message DBGourmetAtlas {
string id = 1; //@go_tags(`bson:"_id"`) ID
string uid = 2; //@go_tags(`bson:"uid"`) ID
map<string,int32> atlas = 3;//@go_tags(`bson:"atlas"`)
}
//
message Cooking{
int32 foodType = 1; //

View File

@ -2,8 +2,35 @@ syntax = "proto3";
option go_package = ".;pb";
import "gourmet/gourmet_db.proto";
import "user/user_db.proto";
//
message GourmetGetListReq {
message GourmetCreateFoodReq {
string cid = 1; // ID
map<string,int32> material = 2;
}
message GourmetCreateFoodResp {
string cid = 1; //
bool firstGet = 2; //
}
message GourmetActivateAtlasReq {
string cid = 1; // ID
}
message GourmetActivateAtlasResp {
map<string,int32> atlas = 1;
}
//
message GourmetAtlasReq {
}
message GourmetAtlasResp {
map<string,int32> atlas = 1;
}
message GourmetGetListReq {
}
//

View File

@ -24,19 +24,20 @@ message DBHero {
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"`) //
int32 sameCount = 17; // @go_tags(`bson:"sameCount"`)
int32 suiteId = 18; //@go_tags(`bson:"suiteId"`) Id
int32 suiteExtId = 19; // go_tags(`bson:"suiteExtId"`) Id
map<string, int32> juexProperty = 20; //@go_tags(`bson:"juexProperty"`) //hp
HeroType status = 21; //@go_tags(`bson:"status"`) (1 )
int32 suite1Star = 22; //@go_tags(`bson:"suite1Star"`)
int32 suite2Star = 23; //@go_tags(`bson:"suite2Star"`)
int32 suite1Lv = 24; //@go_tags(`bson:"suite1Lv"`)
int32 suite2Lv = 25; //@go_tags(`bson:"suite2Lv"`)
map<string, int32> talentProperty = 26; //@go_tags(`bson:"talentProperty"`) //
repeated SkillData equipSkill = 27; //@go_tags(`bson:"equipSkill"`)
map<string, int32> horoscopeProperty = 28; //@go_tags(`bson:"horoscopeProperty"`) //
int32 fulllvenr = 29; //@go_tags(`bson:"fulllvenr"`) // 使
string kongfuUid = 30; //@go_tags(`bson:"kongfuUid"`)//
}
@ -56,6 +57,7 @@ message DBHeroRecord {
int32 tenbuy = 12; //
int32 inevitable = 13;//2-305
int32 inevitable1 = 14;//30-505
map<int32,int32> race = 15; // key value count
}
//

View File

@ -104,3 +104,17 @@ message ItemsRefreshUnifiedTicketReq {
message ItemsRefreshUnifiedTicketResp {
}
//
message ItemsPotionSynthesisReq {
int32 id = 1; //id
int32 succnum = 2; //
int32 num = 3; //
}
//
message ItemsPotionSynthesisResp {
bool succ = 1;
int32 id = 2; //id
int32 num = 3; //
}

View File

@ -5,11 +5,12 @@ 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<string, int32> hero = 4; // key: hid value: id
map<int32, int32> prize = 5; // key
int32 fetterlv = 6; //
int32 storyid = 7; // id
bool activation = 8; //
}
//

View File

@ -1,5 +1,6 @@
syntax = "proto3";
option go_package = ".;pb";
import "comm.proto";
import "errorcode.proto";
import "notify/notify_db.proto";
import "google/protobuf/any.proto";
@ -10,9 +11,8 @@ message NotifyErrorNotifyPush {
string ReqSubType = 2; // :login user的模块中
// api_login
ErrorCode Code = 3; // errorcode.proto
string Message = 4; //
google.protobuf.Any arg = 5; //
google.protobuf.Any Data = 6; //
google.protobuf.Any arg = 4; //
ErrorData err = 5; //
}
//

View File

@ -11,6 +11,7 @@ message DBPagoda {
bool complete = 6; //
int32 passCheckID = 7; // ID
int32 vipPassCheckID = 8; // vip战令领奖ID
map<int32,int32> data = 9; // key value
}

View File

@ -22,21 +22,18 @@ message PagodaGetRewardResp {
}
message PagodaChallengeReq {
int32 levelID = 1; //
int32 PagodaType = 2; //
int32 cid = 1; // id
BattleFormation battle = 3;
}
message PagodaChallengeResp {
BattleInfo info = 1;
int32 levelID = 2; //
int32 PagodaType = 3; //
int32 cid = 2; // id
}
//
message PagodaChallengeOverReq {
int32 levelID = 1; //
int32 PagodaType = 2; //
int32 cid = 1; // id
BattleReport report = 3; //
}
@ -46,7 +43,7 @@ message PagodaChallengeOverResp {
//
message PagodaRankListReq{
int32 floorId = 1; // 0
int32 cid = 1; //
bool friend = 2; // true
}

View File

@ -0,0 +1,36 @@
syntax = "proto3";
option go_package = ".;pb";
enum PandataPillarState {
NoUse = 0; //使
Useing = 1; //使
Receive = 2; //
}
///
message DBPandataPillar {
int32 index = 1; //
bool isunlock = 2; //
PandataPillarState state = 3; //
string hero = 4; //
int64 start = 5; //
int64 end = 6; //
int64 lastbill = 7; //
int32 reward = 8; //
}
//
message DBPandataTeacher {
string id = 1; //id
string cid = 2; //id
string student =3; //id
}
//
message DBPandataKekan {
string id = 1; //id
string uid = 2; //id
DBPandataPillar pillar1 = 4; //1
DBPandataPillar pillar2 = 5; //2
DBPandataPillar pillar3 = 6; //3
DBPandataPillar pillarf = 7; //
}

View File

@ -0,0 +1,28 @@
syntax = "proto3";
option go_package = ".;pb";
import "pandatakekan/pandatakekan_db.proto";
///
message PandataKekanInfoReq {}
///
message PandataKekanInfoResp { DBPandataKekan info = 1; }
///
message PandataKekanUnLockReq {}
message PandataKekanUnLockResp {}
///
message PandataKekanPracticeReq {}
message PandataKekanPracticeResp {}
///
message PandataKekanLootReq {}
message PandataKekanLootResp {}
///
message PandataKekanExpulsionReq {}
message PandataKekanExpulsionResp {}
///
message PandataKekanReceiveReq {}
message PandataKekanReceiveResp {}

View File

@ -0,0 +1,58 @@
syntax = "proto3";
option go_package = ".;pb";
enum RaceType {
ordinary = 0;
prop = 1;
}
//
enum RaceTeamState {
teaming = 0; //
matching = 1; //
raceing = 2; //
}
//
message DBRaceMember {
string uid = 1; //id
string name = 2; //
string avatar = 3; //
string mount = 4; //
int32 hp = 5; //
int32 innermost = 6; //
bool ready = 7; //
bool isai = 8; //ai
bool isoff = 9; //线
}
message DBRaceInvite {
string uid = 1; //id
string name = 2; //
string avatar = 3; //
int64 expired = 4; //
}
//
message DBParkour {
string id = 1; //@go_tags(`bson:"_id"`) id
string uid = 2; //id
map<string,int32> mounts = 3; //
string dfmount = 4; //
RaceTeamState state = 5; //
int32 integral = 6; //
string captainid = 7; //id
repeated DBRaceInvite invite = 8; //
repeated DBRaceMember member = 9; //
}
//
message DBRace {
string id = 1; //@go_tags(`bson:"_id"`) id
string servicePath = 2; //
RaceType rtype = 3; //
int32 trackid = 4; //id
int32 innermost =5; //
repeated DBRaceMember redmember = 6; //
repeated DBRaceMember bulemember = 7; //
}

View File

@ -0,0 +1,157 @@
syntax = "proto3";
option go_package = ".;pb";
import "parkour/parkour_db.proto";
//
message ParkourInfoReq {
}
//
message ParkourInfoResp {
DBParkour info = 1;
repeated DBParkour recommend = 2;
}
//
message ParkourInfoChangePush {
DBParkour info = 1;
}
//
message ParkourInviteReq {
string uid = 1; //
}
//
message ParkourInviteResp {
bool issucc = 1;
DBParkour team = 2;
}
//
message ParkourInviteNoticePush {
DBParkour team = 1;
int32 state = 2; //1 2 3
}
//
message ParkourTeamChanagePush {
DBParkour team = 1;
}
//
message ParkourInviteHandleReq{
string captainid = 1; //id
int32 state = 2; //2 3
}
message ParkourInviteHandleResp{
bool isSucc = 1;
}
//退
message ParkourQuitTeamReq {
string captainid = 1; //id
}
//退
message ParkourQuitTeamResp {
}
//
message ParkourTeamJoinNoticePush {
DBRaceMember member = 1;
}
//退
message ParkourTeamQuitNoticePush {
DBRaceMember member = 1;
}
//
message ParkourTeamDisbandNoticePush {
}
//
message ParkourRaceMatchReq {
}
//
message ParkourRaceMatchResp {
}
//
message ParkourRaceMatchSuccPush {
DBRace race = 1;
}
//
message ParkourReadyReq {
string id = 1;
}
//
message ParkourReadyResp {
}
//
message ParkourRaceStartPush {
int32 countdown = 1; //
}
//
message ParkourShotReq {
string id = 1;
}
//
message ParkourShotResp {
}
//
message ParkourAvoidReq {
string id = 1;
int32 distance = 2;
}
//
message ParkourAvoidResp {
}
//
message ParkourAllSprintsPush {
}
//
message ParkourRaceChanagePush {
DBRace race = 1;
}
//
message ParkourRaceOverPush {
DBRace race = 1;
}
/// RPC消息定义
message RPCParkourJoinMatchReq {
string captainid = 1; //id
repeated DBRaceMember member = 2; //
}
///RPC消息定义
message RPCParkourJoinMatchResp {
}
///
message RPCParkourMatchSuccReq {
repeated DBRaceMember red = 2; //
repeated DBRaceMember bule = 3; //
}
///
message RPCParkourMatchSuccResp {
}

View File

@ -0,0 +1,71 @@
syntax = "proto3";
option go_package = ".;pb";
import "battle/battle_db.proto";
///
message DBPracticePillar {
int32 index = 1; //
int32 lv = 2; //
int32 isunlock = 3; // 0 1 2
string uid = 4; //uid
string hero = 5; //
string teacher = 6; //
string prop = 7; //
int64 start = 8; //
int64 end = 9; //
int64 expend = 10; //
}
//
message DBPracticeTeacher {
string id = 1; //id
string cid = 2; //id
string student =3; //id
}
//
message DBPracticeStatuer {
string uid = 1;
int32 figure = 2;
string name = 3;
string unionname = 4;
int64 end = 5;
}
//
message DBPracticeRoom {
string id = 1; //@go_tags(`bson:"_id"`) id
string uid = 2; //id
int32 gymaction = 3; //
int32 gymrefresh = 4; //
int64 lastrefresh = 5; //
map<int32,int32> full = 6; //
map<string,int32> knapsack = 7; //
DBPracticePillar pillar1 = 8; //1
DBPracticePillar pillar2 = 9; //2
DBPracticePillar pillar3 = 10; //3
DBPracticePillar pillarf = 11; //
repeated DBPracticeStatuer statuers= 12; //
int32 currnpc = 13; //npc
int32 npcstate = 14; //npc状态 0 1 2 3 CD中
int64 refresh = 15; //
int32 battlenum = 16; //
int32 captain = 17; //
repeated BattleRole formation = 18; //
}
message DBPracticeQiecuoInvite {
string uid = 1;
int64 timestamp = 2;
}
//
message DBPracticeQiecuoRecord{
string id = 1; //@go_tags(`bson:"_id"`) id
string uid = 2; //id
repeated DBPracticeQiecuoInvite targets = 3;
int32 status = 4; //0 1
string battid = 5;
repeated string member = 6; //id
}

View File

@ -0,0 +1,220 @@
syntax = "proto3";
option go_package = ".;pb";
import "errorcode.proto";
import "practice/practice_db.proto";
import "battle/battle_msg.proto";
import "pvp/pvp_db.proto";
///
message PracticeInfoReq {}
///
message PracticeInfoResp { DBPracticeRoom info = 1; }
///
message PracticeRommChangePush{
DBPracticeRoom info = 1;
}
///
message PracticeFriendRommReq {
repeated string fuid = 1;
}
///
message PracticeFriendRommResp {
map<string,DBPracticeRoom> infos = 1;
}
///
message PracticeUnLockReq {
int32 index = 1; //id
}
message PracticeUnLockResp {
DBPracticeRoom info = 1;
}
///
message PracticeUpgradeReq {
int32 index = 1; //id
}
message PracticeUpgradeResp {
int32 index = 1; //id
int32 lv = 2;
}
///
message PracticePracticeReq {
int32 index = 1; //id
string hero = 2; //id
string teacher = 3; //id
string prop = 4; //id
}
message PracticePracticeResp {
DBPracticePillar pillar = 1;
}
///
message PracticeLootReq {
string friend = 1; //id
string hero = 2; //id
string teacher = 3; //id
string prop = 4; //id
}
message PracticeLootResp {
string friend = 1; //id
DBPracticePillar pillar = 2;
}
///
message PracticeExpulsionReq {
}
message PracticeExpulsionResp {
DBPracticePillar pillar = 1;
map<string,int32> knapsack = 2; //
}
///
message PracticeBeExpulsionPush{
string fuid = 1;
DBPracticePillar pillar = 2;
map<string,int32> knapsack = 3; //
}
///
message PracticeReceiveReq {
int32 index = 1; //id
string friend = 2; //id
}
message PracticeReceiveResp {
DBPracticePillar pillar = 1;
map<string,int32> knapsack = 2; //
}
///
message PracticeEnrolledReq {
int32 group = 1;
repeated string hero = 2;
}
///
message PracticeEnrolledResp{
int32 group = 1;
repeated string hero = 2;
}
///
message PracticeJXItemPush{
repeated string id = 1;
}
///buff请求
message PracticeGymInfoReq {
}
///buff请求
message PracticeGymInfoResp {
int32 lastaction = 1;
int32 refreshnum = 2;
}
message PracticeGymRefreshReq {
}
message PracticeGymRefreshResp {
int32 lastaction = 1;
int32 refreshnum = 2;
}
///buff请求
message PracticeGetGymBuffReq {
int32 posture = 1;
}
///buff请求
message PracticeGetGymBuffResp {
int32 buffid = 1;
}
/// buff
message PracticeGymConfirmReq {
int32 buffid = 1;
}
/// buff
message PracticeGymConfirmResp {
int32 buffid = 1;
}
///
message PracticeQiecuoReq {
string fid = 1;
}
message PracticeQiecuoResp {
string fid = 1;
bool isbattle = 2;
DBPvpBattle battle = 3;
}
//
message PracticeAcceptReq{
string uid = 1; //
}
message PracticeAcceptResp{
bool isSucc = 1;
}
//
message PracticeRefuseReq{
string uid = 1; //
}
message PracticeRefuseResp{
bool isSucc = 1;
}
//
message PracticeQiecuonotifyPush{
string uid = 1; //)
string name = 2; //
int32 notifyType = 3; //1 2 3
}
//NPC战斗请求
message PracticeNPCBattkleReq {
BattleFormation formation = 1; //
}
//NPC战斗请求
message PracticeNPCBattkleResp {
ErrorCode code = 1; //
BattleInfo info = 2;
}
//NPC战斗结束请求
message PracticeNPCBattkleFinishReq {
BattleReport report = 1; //
}
//NPC战斗结束请求
message PracticeNPCBattkleFinishResp {
bool issucc = 1; //
}
//NPC对话
message PracticeNPCDialogReq{
}
//NPC对话
message PracticeNPCDialogResp{
bool issucc = 1; //
}

View File

@ -27,7 +27,6 @@ message PvpIntoResp {
BattleStateInfo info=3; //
}
//Pvp
message PvpReadyPush {
string servicePath = 1; //
@ -37,12 +36,34 @@ message PvpReadyPush {
int32 countdown = 5; //
}
//
message PvpLoadCompleteReq {
string battleid = 1; //id
}
//
message PvpLoadCompleteResp {
string battleid = 1; //id
bool issucc = 2;
}
//
message PvpLoadCompleteNoticePush {
string battleid = 1; //id
int32 side = 2;
}
//Pvp
message PvpCancelPush {
string servicePath = 1; //
string battleid = 2; //id
}
message PvpActiveCancelReq {
string battleid = 1; //id
}
message PvpActiveCancelResp {
bool issucc = 1;
}
//
message PvpFormationReq {
@ -78,4 +99,9 @@ message PvpInCmdResp {
ErrorCode code = 1; //
string battleid = 2;
BattleCmd cmd = 3;
}
}
//Pvp
message PvpFinishPush {
string battleid = 1;
}

View File

@ -0,0 +1,30 @@
syntax = "proto3";
option go_package = ".;pb";
message DBReputation {
string uid = 1; //@go_tags(`bson:"uid"`) ID
map<int32,Camp> camps = 2; //@go_tags(`bson:"camps"`) key id
CampAttr attrGlobal = 3; //@go_tags(`bson:"attrGlobal"`)
}
//
message Camp {
int32 reputationLv=1; //@go_tags(`bson:"reputationLv"`)
CampAttr campAttr = 2; //@go_tags(`bson:"campAttr"`)
repeated TalentNode nodes = 3; //@go_tags(`bson:"nodes"`)
}
//
message CampAttr{
int32 hp = 1;
int32 attack = 2;
int32 defense = 3;
int32 hpPer = 4;
}
//
message TalentNode{
int32 nid = 1; //@go_tags(`bson:"nid"`) ID
int32 lv = 2; //@go_tags(`bson:"lv"`)
int32 status= 3; //@go_tags(`bson:"status"`) 0 1 2
}

View File

@ -0,0 +1,8 @@
syntax = "proto3";
option go_package = ".;pb";
message reputationUpgradeReq{
int32 zyId = 1; //ID 1-4
}
message reputationUpgradeResp{}

View File

@ -9,6 +9,8 @@ enum ShopType {
PVPShop = 3;
PVEShop = 4;
AllianceShop = 5;
HeroShop =6;
SmithyShop =7;
}
message UserShopData {
@ -29,6 +31,8 @@ message DBShop {
UserShopData pvpShop = 7; //@go_tags(`bson:"pvpShop"`)
UserShopData pveShop = 8; //@go_tags(`bson:"pveShop"`)
UserShopData allianceShop = 9; //@go_tags(`bson:"allianceShop"`)
UserShopData heroShop = 10; //@go_tags(`bson:"heroShop"`)
UserShopData smithyShop = 11; //@go_tags(`bson:"smithyShop"`)
}
// message DBShopItem {

View File

@ -1,69 +1,75 @@
syntax = "proto3";
option go_package = ".;pb";
import "comm.proto";
message Mastery{
int32 lv =1;
int32 value = 2;
}
//
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,Mastery> data = 4; // key ID value
map<int32,int32> skill = 5; //
map<int32,int32> forge = 6; // key value
int32 temperature = 7;//
int64 recoveTime = 8; //
int32 business = 9; //
int64 recoveTime = 8; //@go_tags(`bson:"recoveTime"`)
map<int32,int32> hit = 9;
}
//
message DBBusiness{
map<int32,int32> shop = 1;
message CustomerInfo{
int32 customerId = 1; //ID
int32 suitId = 2; //ID
int32 equipCount = 3;//
}
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 DBCustomer{
string id = 1; //@go_tags(`bson:"_id"`) ID
string uid = 2; //@go_tags(`bson:"uid"`)
repeated CustomerInfo customers = 3; // @go_tags(`bson:"customers"`)
int32 total = 4; //@go_tags(`bson:"total"`)
int64 lastRefreshTime = 5; // @go_tags(`bson:"lastRefreshTime"`)
}
//
message DBTujian{
message DBAtlas{
string id = 1; //@go_tags(`bson:"_id"`) ID
string uid = 2; //@go_tags(`bson:"uid"`) ID
map<int32,ForgeData> tujian = 3; //
int32 slider = 4; //
map<string,ForgeList> atlas = 3; //
map<string,CollectData> collect = 4; //
int32 score = 5; //
int32 award = 6; //
}
message CollectData{
string id = 1; // id
int32 score = 2;
int64 time = 3; //
bool activate = 4; //
}
message ForgeList{
ForgeData data1 = 1;
ForgeData data2 = 2;
bool activate = 3; //
}
message ForgeData{
int32 forgeCount = 1; //
int32 lv = 2;
int32 quality = 3;
int32 score = 4;
int64 time = 5; //
}
////////
message Clang{
int32 deskType = 1; //
int64 eTime = 2;
int64 sTime = 3; //
}
//
message DBTujianTask {
string uid = 1; //@go_tags(`bson:"uid"`)
repeated TujianTask tasks = 2; // @go_tags(`bson:"tasks"`)
}
message OrderClang{
int32 deskType = 1; //
int32 count = 2; //
int32 needTime = 3; //
message TujianTask{
int32 taskId = 1; //@go_tags(`bson:"taskId"`) ID
int32 received = 2; //@go_tags(`bson:"received"`) 0 1 2
}
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

@ -1,9 +1,8 @@
syntax = "proto3";
option go_package = ".;pb";
import "smithy/smithy_db.proto";
import "user/user_db.proto";
import "equipment/equipment_db.proto";
import "comm.proto";
//
message SmithyGetStoveInfoReq {
@ -16,25 +15,16 @@ message SmithyGetStoveInfoResp {
//
message SmithyForgeEquipReq{
int32 equipType = 1; //
int32 reelId = 1; // ID
int32 lava = 2;//
int32 quality = 3;//
int32 suiteId = 4;// ID (0 )
int32 position = 5; // ( -1)
map<int32,int32> hit = 6;// key cid value
}
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
repeated DB_Equipment equip = 1; // ID
DBStove data = 2;
}
@ -43,6 +33,7 @@ message SmithyOrderEquipResp{
message SmithyStoveUpReq{
}
message SmithyStoveUpResp{
DBStove data = 1;
}
@ -65,72 +56,72 @@ message SmithyToolsUpReq{
message SmithyToolsUpResp{
DBStove data = 1;
}
//
message SmithyRefreshShopReq{
//
message SmithyCustomerReq{
}
message SmithyRefreshShopResp{
DBBusiness data = 1;
message SmithyCustomerResp{
repeated CustomerInfo customers = 1; //
}
//
message SmithySellItemReq{
int32 id = 1; // ID
int32 count = 2; //
message SmithySellReq{
repeated string equipIds = 1; // ID
int32 customerId = 2; //ID
}
message SmithySellItemResp{
DBBusiness data = 1;
message SmithySellResp{
int32 customerId = 1; //ID
repeated string equipIds =2; //
repeated CustomerInfo customers = 3;
}
//////////////////////////////////////////
//
message SmithyCreateOrderReq {
repeated OrderClang order = 1;//
//
message SmithyRefuseReq{
int32 customerId = 1; //ID
}
message SmithyRefuseResp{
repeated CustomerInfo customers = 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 SmithyAtlasListReq{
}
message SmithyStoveSkillLvResp{
DBSmithy data = 1;
message SmithyAtlasListResp{
DBAtlas data = 1;
}
message SmithyGetRandUserReq{
int32 people = 1;//
//
message SmithyAtlasActivateReq{
string id = 1; // ID
}
message SmithyGetRandUserResp{
repeated DBUser user = 1;
message SmithyAtlasActivateResp{
DBAtlas data = 1;
}
message SmithyGetListReq {
//
message SmithyAtlasAwardReq{
}
//
message SmithyGetListResp {
DBSmithy data = 1;
message SmithyAtlasAwardResp{
DBAtlas data = 1; //
repeated UserAssets res = 2; //
}
//
message SmithyTaskAwardReq{
int32 taskId = 1;
}
message SmithyTaskAwardResp{
int32 taskId = 1;
}
//
message SmithyTasklistReq{
}
message SmithyTasklistResp{
repeated TujianTask tasks= 1; //
}

View File

@ -0,0 +1,9 @@
syntax = "proto3";
option go_package = ".;pb";
message DBOpenCond {
string id = 1; //@go_tags(`bson:"_id"`) ID
string uid = 2; //@go_tags(`bson:"uid"`) ID
map<string,int32> cond = 3; // key opencond配置id value:0 1
}

View File

@ -7,4 +7,20 @@ message SysFuncListReq {
message SysFuncListResp {
repeated string funcIds = 1; //ID
}
}
message SysFuncGetListReq {
repeated string keys = 1; //ID
}
message SysFuncGetListResp {
map<string,int32> cond = 1; // key opencond配置id value:0 1
}
//
message SysFuncActivateReq {
string cid = 1; // opencond表的key
}
message SysFuncActivateResp {
string cid = 1;
}

View File

@ -55,4 +55,5 @@ 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"`)
int64 ctime = 4; //@go_tags(`bson:"ctime"`)
}

View File

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

View File

@ -39,6 +39,10 @@ message DBUser {
int64 lastRecoverPsSec =
26; //@go_tags(`bson:"lastRecoverPsSec"`)
int32 moongold = 27; //@go_tags(`bson:"moongold"`)
int32 talent1 = 28; //@go_tags(`bson:"talent1"`) 1
int32 talent2 = 29; //@go_tags(`bson:"talent2"`) 2
int32 talent3 = 30; //@go_tags(`bson:"talent3"`) 3
int32 talent4 = 31; //@go_tags(`bson:"talent4"`) 4
}
message DBUserSetting {
@ -62,9 +66,10 @@ message DBUserSetting {
message DBSign {
string id = 1; //@go_tags(`bson:"_id"`) ID
string uid = 2; //@go_tags(`bson:"uid"`) ID
int64 signTime = 3; //@go_tags(`bson:"signTime"`)
int64 signTime = 3; //@go_tags(`bson:"signTime"`)
int32 signCount = 4; //@go_tags(`bson:"signCount"`)
int32 group = 5; // id
int32 cid = 6; //
int64 rTime = 7; //@go_tags(`bson:"rTime"`)
int32 group = 5; //
int32 day = 6; //
repeated int32 puzzle= 7; //@go_tags(`bson:"puzzle"`) // 0 1 2
int32 tips = 8; //
}

View File

@ -191,9 +191,27 @@ message UserGetServerDataReq {}
message UserGetServerDataResp { DBServerData data = 1; }
message UserSignReq {}
message UserSignReq {
}
//
message UserSignResp {
DBSign data = 1;
bool reward = 2; //
}
//
message UserPuzzleAwardReq {
int32 index = 1;
}
//
message UserPuzzleAwardResp {
int32 index = 2;
}
//
message UserChangeTipsReq {
int32 tips = 1;
}
message UserChangeTipsResp {
DBSign data = 1;
}

View File

@ -34,4 +34,7 @@ message DBUserExpand {
int32 sociatyTicketBuyNum = 32;//@go_tags(`bson:"sociatyTicketBuyNum"`) boss挑战券购买次数
int32 sociatyTicket = 33;//@go_tags(`bson:"sociatyTicket"`) boss挑战券数量
map<int32,int32> mline = 34;//@go_tags(`bson:"mline"`) 线 key难度val是关卡ID
repeated int32 suiteId = 35;//@go_tags(`bson:"suiteId"`) Id
int32 globalbuff = 36; //@go_tags(`bson:"globalbuff"`) buff
map<int32, int32> race = 37; // key ID 1~4 value
}

View File

@ -3,12 +3,17 @@ option go_package = ".;pb";
message DBWorldtask {
string uid = 1; //@go_tags(`bson:"uid"`) ID
map<int32, Worldtask> lastTaskIds =
2; //@go_tags(`bson:"lastTaskId"`) key:groupId val:ID
repeated Worldtask taskList = 3; //@go_tags(`bson:"taskList"`)
repeated int32 taskList = 3; //@go_tags(`bson:"taskList"`)
map<int32, Worldtask> currentTask = 4; //@go_tags(`bson:"currentTask"`)
map<int32,int32> chapters = 5; //@go_tags(`bson:"chapters"`) key章节ID v状态 12
int64 daliyRefreshTime = 6; //@go_tags(`bson:"daliyRefreshTime"`)
int64 weekRefreshTime = 7; //@go_tags(`bson:"weekRefreshTime"`)
}
message Worldtask {
int32 taskId = 1; //@go_tags(`bson:"taskIds"`) ID
int32 taskType= 3; //@go_tags(`bson:"taskType"`) 1 / 2 3线
int32 npcStatus = 5; //@go_tags(`bson:"npcStatus"`) NPC任务完成状态0未完成 1
repeated int32 condiIds = 6; //@go_tags(`bson:"condiIds"`)
int32 deliverNpc = 7; //@go_tags(`bson:"deliverNpc"`) NPC完成状态0未完成 1
}

View File

@ -2,27 +2,57 @@ syntax = "proto3";
option go_package = ".;pb";
import "battle/battle_msg.proto";
import "worldtask/worldtask_db.proto";
import "errorcode.proto";
//
message WorldtaskMineReq {}
message WorldtaskMineResp { DBWorldtask task = 1; }
//
message WorldtaskAcceptReq{
int32 groupId = 1;
int32 taskId = 2;
}
message WorldtaskAcceptResp{
ErrorCode Code = 1;
}
//
message WorldtaskCompletecondisPush{
int32 groupId = 1;
int32 taskId = 2;
repeated int32 condiIds = 3;
}
//
message WorldtaskCompleteCondiReq{
int32 groupId = 1;
int32 taskId = 2;
int32 condiId = 3;
}
message WorldtaskCompleteCondiResp{
ErrorCode code = 1;
int32 taskId = 2;
int32 condiId = 3;
}
//
message WorldtaskFinishReq {
int32 groupId = 1; //ID
int32 taskId = 2; //ID
}
message WorldtaskFinishResp {
int32 groupId = 1;
ErrorCode code = 1;
int32 taskId = 2;
repeated string newheros = 3; //
int32 olv = 4; //
int32 condiId = 3;
}
//
message WorldtaskNexttaskPush {
int32 nextTaskId = 1; //ID
map<int32, Worldtask> nextTask = 1;
repeated int32 finishedTaskIds = 2;//
}
//
@ -37,18 +67,27 @@ message WorldtaskBattleStartResp {
//
message WorldtaskBattleFinishReq {
int32 taskId = 1; //ID
int32 battleConfId = 2; //ID
BattleReport report = 3; //
int32 groupId = 1;
int32 taskId = 2; //ID
int32 condiId = 3; //ID
int32 battleConfId = 4; //ID
BattleReport report = 5; //
}
message WorldtaskBattleFinishResp {
int32 taskId = 1; //ID
repeated string newheros = 2; //
int32 olv = 3; //
}
//
message WorldtaskFinishIdsPush {
repeated Worldtask taskList = 1; // key:groupId val:ID
}
//
message WorldtaskChapterrewardReq{
int32 groupId = 1;
}
message WorldtaskChapterrewardResp{
ErrorCode code = 1;
}

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_db.proto";
import "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_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_db.proto";
import "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,16 @@
syntax = "proto3";
option go_package = ".;pb";
message DBPandaAtlas{
string id = 1; //@go_tags(`bson:"_id"`) ID
string uid = 2; //@go_tags(`bson:"uid"`) ID
map<string,CollectInfo> collect = 3; //
int32 score = 4; //
int32 award = 5; //
}
message CollectInfo{
int32 score = 1;
int64 time = 2; //
bool activate = 3; //
}

View File

@ -0,0 +1,31 @@
syntax = "proto3";
option go_package = ".;pb";
import "atlas_db.proto";
import "comm.proto";
//
message AtlasGetListReq{
}
message AtlasGetListResp{
DBPandaAtlas data = 1;
}
//
message AtlasActivateReq{
string id = 1; // ID
}
message AtlasActivateResp{
DBPandaAtlas data = 1;
}
//
message AtlasAwardReq{
}
message AtlasAwardResp{
DBPandaAtlas data = 1; //
repeated UserAssets res = 2; //
}

View File

@ -0,0 +1,18 @@
syntax = "proto3";
option go_package = ".;pb";
import "battle_db.proto";
import "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_db.proto";
import "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

@ -0,0 +1,90 @@
syntax = "proto3";
option go_package = ".;pb";
import "comm.proto";
enum BattleType {
nil = 0;
pve = 1; //pve
pvp = 2; //pvp
pvb = 3; //boos战斗
eve = 4; //eve对战
rtpvp = 5; //pvp
lpev = 6; //
}
//
enum PlayType {
null = 0; //
mainline = 1; //线
pagoda = 2; //
rtask = 3; //
hunting = 4; //
viking = 5; //
moonfantasy = 6; //
arena = 7; //
academy = 8; //
heroteaching =9; //
combat = 10; //
enchant = 11; //
sociaty = 12; //
friendsmeet = 13; //
practicenpc = 14; //NPC
}
//
enum BBattleState {
in = 0;
end = 2;
}
//
enum DBBattleComp {
draw = 0; //
red = 1; //
bule = 2; //
}
message BattleRole {
int32 tid = 1; // id
string oid = 2; // id
int32 pos = 3; //
string heroID = 4; //@go_tags(`bson:"heroID"`) ID
int32 star = 5; //
int32 lv = 6; //
int32 captainSkill = 7; //@go_tags(`bson:"captainSkill"`)
int32 mainSuitSkill = 8; ///@go_tags(`bson:"mainSuitSkill"`)
int32 subSuitSkill = 9; ///@go_tags(`bson:"subSuitSkill"`)
repeated SkillData normalSkill = 10; //@go_tags(`bson:"normalSkill"`)
repeated SkillData equipSkill = 11; //@go_tags(`bson:"equipSkill"`)
int32 PandaBuff = 12; //buff技能id
map<string, int32> property = 13; //
bool ishelp = 14; //
int32 isboos = 15; //boos
int32 monsterid = 16; //id
int32 currhp = 17; //
}
//
message DBBattleFormt {
int32 leadpos = 1; //
repeated BattleRole team = 2; //
repeated BattleRole systeam = 3; //
repeated BattleRole backupteam = 4; //
}
//
message DBBattleRecord {
string id = 1; //id
string title = 2; //
BattleType btype = 3; //
PlayType ptype = 4; //
string plevel = 5; //
BBattleState state = 6; //
string redCompId = 7; //id
repeated DBBattleFormt redflist = 8; //
string blueCompId = 9; //id
repeated DBBattleFormt buleflist = 10; //
repeated DBBattleComp roundresult = 11; //
DBBattleComp result = 12; //
repeated int32 tasks = 13; //
}

View File

@ -0,0 +1,193 @@
syntax = "proto3";
option go_package = ".;pb";
import "battle_db.proto";
import "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; //
}
// pve战斗
message BattleLPVEReq {
PlayType ptype = 1; //
string title = 2; //
string scene = 3; //
BattleFormation format = 4; //
int32 monsterleadpos = 5; //
repeated BattleRole monsters = 6; //
}
// 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; //
int32 rulesid = 3; //id
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
int32 winSide = 3; // 1 - red 2 = blue
repeated BattleCmd incmd = 4; //
repeated BattleCmd outcmd = 5; //
repeated int32 completetask = 6; //
int32 death = 7; //
int32 round = 8; //
int32 harm = 9; //
repeated BattleRole alive = 10; //
}
//
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;
int32 winSide = 2;
}
//
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,157 @@
syntax = "proto3";
option go_package = ".;pb";
import "battle_db.proto";
import "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;
}
//
message ComEffectTips
{
EffectTipsType type = 1;
int32 to = 2;
}
enum EffectTipsType {
Eff_Success = 0;
Not_Success = 1; //
Immunity = 2; //
Resist = 3; //
Not_Gain = 4; //
Not_Control = 5; //
Not_Action = 6; //
}

View File

@ -0,0 +1,42 @@
syntax = "proto3";
option go_package = ".;pb";
enum ChatChannel {
World = 0; //
Union = 1; //
Private = 2; //
CrossServer = 3; //
System = 4; //
}
//
enum ChatType {
Text = 0; //
Moonfantasy = 1; //
Share = 2; //
HeroShare = 3; //
EquipmentShare = 4; //
ItemShare = 5; //
}
message DBChat {
string id = 1; //@go_tags(`bson:"_id"`) ID
ChatChannel channel = 2; //
ChatType ctype = 3; //
string suid = 4; //id
int32 slv = 5; //
string ruid = 6; //id channel == Private
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; //
string content = 12; //
int64 ctime = 13; //
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:"appendBytes"`)
bool display = 18; //@go_tags(`bson:"display"`)
repeated string appendStrs = 19; //@go_tags(`bson:"appendStrs"`)
}

View File

@ -0,0 +1,78 @@
syntax = "proto3";
option go_package = ".;pb";
import "chat_db.proto";
//
message ChatMessagePush { DBChat chat = 1; }
//
message ChatCrossChannelReq {}
//
message ChatCrossChannelResp { int32 channelId = 1; }
//
message ChatChanageChannelReq { int32 channelId = 1; }
//
message ChatChanageChannelResp {
int32 channelId = 1;
bool isSucc = 2;
}
//
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 ChatGetCrossListResp { repeated DBChat chats = 1; }
//
message ChatSendReq {
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 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 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_db.proto";
import "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; //
}

191
src/pb/temop/comm.proto Normal file
View File

@ -0,0 +1,191 @@
syntax = "proto3";
option go_package = ".;pb";
import "errorcode.proto";
import "google/protobuf/any.proto";
message ErrorData {
string title = 1;
int32 dataint = 2;
string datastring = 3;
}
//1
message UserMessage {
string MainType = 1; // :user user的模块
string SubType = 2; // :login user的模块中
// api_login
string servicePath = 3; // \worker\worker0
google.protobuf.Any data = 4;
string sec = 5; //
}
//
message AgentMessage {
string Ip = 1;
string UserSessionId = 2;
string UserId = 3;
string ServiceTag = 4;
string GatewayServiceId = 5;
string MainType = 6;
string SubType = 7;
google.protobuf.Any Message = 8;
}
// RPC
message RPCMessageReply {
ErrorCode Code = 1;
string ErrorMessage = 2;
ErrorData ErrorData = 3;
repeated UserMessage Reply = 4;
}
//Uid请求
message AgentBuildReq {
string UserSessionId = 1;
string UserId = 2;
string WorkerId = 3;
}
//
message AgentUnBuildReq { string UserSessionId = 1; }
//
message AgentSendMessageReq {
string UserSessionId = 1;
repeated UserMessage Reply = 2;
}
//
message BatchMessageReq {
repeated string UserSessionIds = 1;
string MainType = 2;
string SubType = 3;
google.protobuf.Any Data = 4;
}
//广
message BroadCastMessageReq {
string MainType = 1; //
string SubType = 2;
google.protobuf.Any Data = 3;
}
//
message AgentCloseeReq { string UserSessionId = 1; }
//
message NoticeUserLoginReq {
string Ip = 1;
string UserSessionId = 2;
string UserId = 3;
string ServiceTag = 4;
string GatewayServiceId = 5;
}
//
message NoticeUserCreateReq {
string Ip = 1;
string UserSessionId = 2;
string UserId = 3;
string ServiceTag = 4;
string GatewayServiceId = 5;
}
//线
message NoticeUserCloseReq {
string Ip = 1;
string UserSessionId = 2;
string UserId = 3;
string ServiceTag = 4;
string GatewayServiceId = 5;
}
//
enum HeroAttributesType {
Hp = 0; //
Atk = 1; //
Def = 2; //
Speed = 3; //
Crit = 4; //
}
message SkillData {
int32 skillID = 1;
int32 skillLv = 2;
}
// *cfg.Game_atn
message UserAssets {
string A = 1;
string T = 2;
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; //
}
message RtaskParam {
int32 param1 = 1;
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,31 @@
syntax = "proto3";
option go_package = ".;pb";
//
message DBDispatch {
string uid = 1; //@go_tags(`bson:"uid"`)
Noticeboard nb = 2; //@go_tags(`bson:"nb"`)
}
//
message Noticeboard {
int32 lv = 1; //@go_tags(`bson:"lv"`)
int32 noticeType =2; //@go_tags(`bson:"noticeType"`)
repeated DispatchTask tasks = 3; //@go_tags(`bson:"tasks"`)
int32 freeCount = 4; //@go_tags(`bson:"freeCount"`) 使
int32 refreshCount = 5; //@go_tags(`bson:"refreshCount"`)
int32 weekCount = 6; //@go_tags(`bson:"weekCount"`)
int32 taskCount = 7; //@go_tags(`bson:"taskCount"`)
repeated int32 weekReceived = 8; //@go_tags(`bson:"weekReceived"`) //ID
int64 updateTime = 9; //@go_tags(`bson:"updateTime"`)
}
//
message DispatchTask{
int32 taskId = 1; //@go_tags(`bson:"taskId"`) ID
int32 status = 2; //@go_tags(`bson:"status"`) 0 1 2
int64 duration = 3; //@go_tags(`bson:"duration"`)
int64 leftTime = 4; //@go_tags(`bson:"leftTime"`)
repeated string heroIds = 5; //go_tags(`bson:"heroIds"`)
bool exaward = 6; //@go_tags(`bson:"exaward"`)
}

View File

@ -0,0 +1,58 @@
syntax = "proto3";
option go_package = ".;pb";
import "dispatch_db.proto";
//
message DispatchNoticeReq{}
message DispatchNoticeResp{
Noticeboard dispatch = 1;
}
//
message DispatchRefreshReq{}
message DispatchRefreshResp{
int32 freeCount = 1; //使
int32 refreshCount = 2; //
}
message DispatchTaskRsp{
int32 taskId =1;
bool exaward = 2;
}
//
message DispatchReceiveReq{
int32 taskId = 1; //ID
}
message DispatchReceiveResp{
DispatchTaskRsp rsp = 1;
}
//
message DispatchAutoReceiveReq{}
message DispatchAutoReceiveResp{
repeated DispatchTaskRsp task = 1; //ID
}
//
message DispatchDoReq{
int32 taskId = 1;
repeated string heroIds = 2;
}
message DispatchDoResp{
bool isSucc = 1; //
}
//
message DispatchWeekReciveReq{
int32 idx = 1; // 0
}
message DispatchWeekReciveResp{
int32 idx= 1;
}

View File

@ -0,0 +1,26 @@
syntax = "proto3";
option go_package = ".;pb";
import "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_db.proto";
import "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

@ -0,0 +1,41 @@
syntax = "proto3";
option go_package = ".;pb";
//
message EquipmentAttributeEntry {
int32 Id = 1; //id
int32 libraryid = 2; //id
string AttrName = 3; //
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; //
}
//
message DB_Equipment {
string Id = 1; //@go_tags(`bson:"_id"`) id
string cId = 2; //@go_tags(`bson:"cId"`) Id
string uId = 3; //@go_tags(`bson:"uid"`) Id
string heroId = 4; //@go_tags(`bson:"heroId"`) id ''
int32 lv = 5; //@go_tags(`bson:"lv"`)
int32 keepFailNum = 6; //@go_tags(`bson:"keepFailNum"`)
EquipmentAttributeEntry mainEntry =
7; //@go_tags(`bson:"mainEntry"`)
repeated EquipmentAttributeEntry adverbEntry =
8; //@go_tags(`bson:"adverbEntry"`)
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

@ -0,0 +1,96 @@
syntax = "proto3";
option go_package = ".;pb";
import "equipment_db.proto";
import "comm.proto";
//
message EquipmentGetListReq {}
//
message EquipmentGetListResp {
repeated DB_Equipment Equipments = 1; //
}
//
message EquipmentChangePush {
repeated DB_Equipment Equipments = 1; //
}
//
message EquipmentEquipReq {
string HeroCardId = 1; //Id
repeated string EquipmentId = 2; //Id 0-5
}
//
message EquipmentEquipResp {
repeated DB_Equipment Equipments = 1; //
}
//
message EquipmentUpgradeReq {
string EquipmentId = 1; //Id
}
//
//
message EquipmentUpgradeResp {
bool IsSucc = 1;
repeated DB_Equipment Equipment = 2;
}
//sailitem
message EquipmentLockReq {
string EquipmentId = 1; //id
bool IsLock = 2; //
}
//
message EquipmentLockResp {
bool IsSucc = 1;
string EquipmentId = 2;
bool IsLock = 3;
}
//sailitem
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

@ -0,0 +1,376 @@
syntax = "proto3";
option go_package = ".;pb";
// go:generate stringer -type ErrorCode -linecomment
enum ErrorCode {
Success = 0; //
GatewayException = 1; //
NoFindService = 10; //
NoFindServiceHandleFunc = 11; //
RpcFuncExecutionError = 12; //Rpc方法执行错误
CacheReadError = 13; //
SqlExecutionError = 14; //
ReqParameterError = 15; //
SignError = 16; //
InsufficientPermissions = 17; //
NoLogin = 18; //
UserSessionNobeing = 19; //
StateInvalid = 20; //
DBError = 21; //
SystemError = 22; //
DecodeError = 23; //
TimestampTimeout = 24; //
PbError = 25; // pb错误
AgentUidEmpty = 26; // AgentUid空
Exception = 100; //
Unknown = 101; //
ResNoEnough = 102; //
ConfigurationException = 103; //
ConfigNoFound = 104; //
UserLogined = 105; //
NoOpened = 106; //
DataNotFound = 107; //
// user
SecKeyInvalid = 1000; //
SecKey = 1001; //
BindUser = 1002; //
GoldNoEnough = 1003; //
DiamondNoEnough = 1004; //
RoleCreated = 1005; //
UserNickNameExist = 1006; //
VeriCodeNoValid = 1007; //
VeriCodeExpired = 1008; //
UserResetData = 1009; //
UserModiNameCount = 1010; //
UserNickNameEmpty = 1011; //
UserExpandNull = 1012; //
UserExpNoEnough = 1013; //
UserFriendNoEnough = 1014; //
UserSociatyCoinNoEnough = 1015; //
UserArenaCoinNoEnough = 1016; //
UserVitNoEnough = 1017; //
UserVitLimit = 1018; //
UserMoongoldNoEnough=1019; //
UserOffline = 1020; //线
UserNofound = 1021; //
UserSign = 1022; //
OpenCondErr = 1023; //
OpenCondActivate = 1024; //
UserTalent1NoEnough = 1025; //1
UserTalent2NoEnough = 1026; //2
UserTalent3NoEnough = 1027; //3
UserTalent4NoEnough = 1028; //4
// friend
FriendNotSelf = 1100; //
FriendSelfMax = 1101; //
FriendTargetMax = 1102; //
FriendSelfNoData = 1103; //
FriendTargetNoData = 1104; //
FriendYet = 1105; //
FriendApplyYet = 1106; //
FriendSelfBlackYet = 1107; //
FriendTargetBlackYet = 1108; //
FriendApplyError = 1109; //
FriendBlackMax = 1110; //
FriendSearchNameEmpty = 1111; //
FriendZaned = 1112; //
FriendZanreceived = 1113; //
FriendZanSelf = 1114; //
FriendPointLimit = 1115; //线
FriendNoreceived = 1116; //
FriendQiecuoTimeout = 1117; //
FriendQiecuoRequested = 1118; //
FriendQiecuoNoRequest = 1119; //
FriendQiecuoing = 1120; //
FriendQiecuoTargetPk = 1121; //
FriendTicketNoEnough = 1122; //
// item
ItemsNoEnough = 1200; //
ItemsNoFoundGird = 1201; //
ItemsGridNumUpper = 1202; //
ItemsGirdAmountUpper = 1203; //
ItemsUseNotSupported = 1204; //使
ItemsUseNoCanSell = 1205; //
ItemsBuyPsUpperLimit = 1206; //
// hero
HeroNoExist = 1300; //
HeroNoEnough = 1301; //
HeroMaxLv = 1302; //
HeroInitCreat = 1303; //
HeroColorErr = 1304; //
HeroSkillUpErr = 1305; //
HeroMaxResonate = 1306; //
HeroNoResonate = 1307; //
HeroNotNeedResonate = 1308; //
HeroNoEnergy = 1309; //
HeroCreate = 1310; //
HeroEquipUpdate = 1311; //
HeroMaxAwaken = 1312; //
HeroIsLock = 1313; //
HeroMaxCount = 1314; //
HeroCostTypeErr = 1315; //
HeroStarErr = 1316; //
HeroTypeErr = 1317; //
HeroExpTypeErr = 1318; //
HeroAddMaxExp = 1319; //
HeroStarLvErr = 1320; //
HeroMaxStarLv = 1321; //
DrawCardTypeNotFound = 1322; //
HeroMaxSkillLv = 1323; //
HeroAlreadyKongFuStatus = 1324; //
HeroLvNoEnough = 1325; //
HeroIsRegister = 1326; //
// equipment
EquipmentOnFoundEquipment = 1400; //
EquipmentLvlimitReached = 1401; //
EquipmentIsWorn = 1402; // 穿
EquipmentNoCanSell = 1403; //
EquipmentSuiteNotFound = 1404; //
// mainMainline
MainlineNotFindChapter = 1500; // 线
MainlineIDFailed = 1501; // ID
MainlineNotFound = 1502; // 线
MainlinePreNotFound = 1503; //
MainlineRepeatReward = 1504; //
MainlineCompleteReward = 1505; //
MainlineNoEnoughStar = 1506; //
// task
TaskInit = 1600; //
TaskReset = 1601; //
TaskHandle = 1602; //
TaskReceived = 1603; //
TaskActiveInit = 1604; //
TaskActiveNofound = 1605; //
TaskActiveNoenough = 1606; //
TaskNoFinished = 1607; //
TaskFinished = 1608; //
TaskTagEmpty = 1609; //
TaskIdEmpty = 1610; //ID空
TaskNotFound = 1611; //
// shop
ShopGoodsIsSoldOut = 1700; //
ShopNoSurplusRefreshNum = 1701; //
// mail
MailErr = 1800; //
// pagoda
PagodaNotFound = 1900; //
PagodaLevlErr = 1901; //
PagodaGetRewardErr = 1902; //
PagodaConditionErr = 1903; //
PagodaUnlock = 1904; //
// martialhall
MartialhallNotUnlocked = 2000; //
MartialhallInUse = 2001; //使
MartialhallUnlocked = 2002; //
MartialhallNoUnlocked = 2003; //
MartialhallAtlasError = 2004; //
MartialhallAtlasNoReward = 2005; //
//
GourmetMoreOrderTime = 2101; //
GourmetSkillMaxLv = 2102; //
// rtask
RtaskFinished = 2201; //
RtaskUnFinished = 2202; //
RtaskNoRtask = 2203; //
RtaskRewarded = 2204; //
RtaskPreNoFinish = 2205; //
RtaskCondiNoReach = 2206; //
RtaskNoLastOne = 2207; //
RtaskCondiNoFound = 2208; //
// viking
VikingLvErr = 2301; //
VikingBoosType = 2302; // BOSS
VikingBuyMaxCount = 2303; //
VikingMaxChallengeCount = 2304; //
// moonfantasy
MoonfantasyHasExpired = 2401; // boos
MoonfantasyJoinUp = 2402; // boos
MoonfantasyDareUp = 2403; // boos
MoonfantasyBattleNoEnd = 2404; // boos
MoonfantasyBattleNoWin = 2405; // boos
MoonfantasyNoJoin = 2406; // boos
MoonfantasyNotEnoughbattles = 2407; // boos
BattleNoFoundRecord = 2501; //
LinestoryTaskFinished = 2601; //
LinestoryNoReceive = 2602; //
LinestoryTaskDisabledEnter = 2603; //
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; //线
BattleCapskillCheckFailed = 2906; //
BattleNoKeep = 2907; //
// sociaty
SociatyNoFound = 3000; //
SociatyAdded = 3001; //
SociatyDiamondNoEnough = 3002; //
SociatyNoMember = 3003; //
SociatyNoRight = 3004; //
SociatyNoAdded = 3005; //
SociatyDismiss = 3006; //
SociatyQuit = 3007; //退
SociatyAgree = 3008; //-
SociatyRefuse = 3009; //-
SociatyLogParams = 3010; //
SociatyMasterNoDiss = 3011; //
SociatySettingJob = 3012; //
SociatySetting = 3013; //
SociatyNoAccuse = 3014; //
SociatySign = 3015; //
SociatySigned = 3016; //
SociatyCDLimit = 3017; // CD时间限制
SociatyApplyMax = 3018; //
SociatySelfSetting = 3019; //
SociatyMemberCountLimit = 3020; //
SociatyRewardReceived = 3021; //
SociatyRewardReceive = 3022; //
SociatyResource = 3023; //
SociatyBelongTo = 3025; //
SociatyApplied = 3026; //
SociatyAppyLvNoEnough = 3027; //
SociatyTaskValidation = 3028; //
SociatyActivityNoEnough = 3029; //
SociatyAcitvityReceive = 3030; //
SociatyDismissed = 3031; //
SociatyNameExist = 3032; //
SociatyQuitNoAllowed = 3033; //退
SociatyNoMaster = 3034; //
SociatyNoFormation = 3035; //
SociatyTicketsNoEnough = 3036; //
SociatySportsNoinit = 3037; //
SociatySportsEnd = 3038; //
SociatyTeamUnlock = 3039; //
SociatyTaskNoFound = 3040; //boss任务
SociatyTaskNoFinished = 3041; //
SociatyTaskReceived = 3042; //
// 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不一致
WorldtaskChapterUnFinished =3808; //
WorldtaskChapterReceived =3809; //
WorldtaskNoProcess = 3810; //
// academy
AcademyTaskNoCompleteTask = 3901; //
// AutoBattle
AutoBattleNoData = 4001; //
AutoBattleStatesErr = 4002; //
// smithy
SmithyNoReel = 4101;//
SmithyNoTemperature = 4102;//
SmithyStoveMaxLv = 4103;//
SmithyCustomerLimit = 4104; //
SmithyCustomerEquipNoEnough = 4105; //
SmithyMaxTemperature = 4106; //
SmithyLackLava = 4107; //
SmithyAtlasMaxLv = 4108; //
SmithyAtlasLackLv = 4109; //
SmithyTaskNoFinished = 4110; //
SmithyTaskReceived = 4111; //
SmithyNoFoundAtlas = 4112; //
SmithyNoActivateAtlas = 4113; //
SmithyLvToolsFailed = 4114; //
SmithyLvToolsPre = 4115; //
SmithyAtlasTypeErr = 4116; //
// dispatch
DispatchHeroNoReached = 4201; //
DispatchNoFree = 4202; //
DispatchTicketNoEnough = 4203; //
DispatchHeroAssigned = 4204; //
DispatchTaskExpired = 4205; //
DispatchRefreshMax = 4206; //
DispatchNoFinished = 4207; //
DispatchHeroNoEnough = 4208; //
//practice
PracticeQiecuoing = 4301; //
PracticeSent = 4302; // 10
PracticeInviteTimeOut = 4303; //
PracticePillarMaxLv = 4304; //
PracticeYouQiecuoing = 4305; //
PracticeTargetQiecuoing = 4306; //
//parkour
ParkourMemberFull = 4401; //
ParkourInviteOverdue = 4402; //
}

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_db.proto";
import "hero_db.proto";
import "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

@ -0,0 +1,35 @@
syntax = "proto3";
option go_package = ".;pb";
import "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"`)
int64 endTime = 6; //@go_tags(`bson:"endTime"`)
}

View File

@ -0,0 +1,190 @@
syntax = "proto3";
option go_package = ".;pb";
import "friend_db.proto";
message FriendBase {
string userId = 1; // ID
string NickName = 2; //
int32 level = 3; //
string avatar = 4; //
int64 strength = 5; //
string serverId = 6; //
int64 offlineTime = 7; //线 -1线
bool isApplied = 8; //
bool isZaned = 9; //
bool isGetZaned = 10; //
string heroObjId = 11; //ID
int32 score = 12; //
int64 updateTime = 13; //
}
//
message FriendListReq {}
message FriendListResp { repeated FriendBase list = 1; }
// 线
message FriendRandlistReq {}
message FriendRandlistResp { repeated FriendBase list = 1; }
//
message FriendApplyReq {
string friendId = 1; //ID
}
message FriendApplyResp {
string userId = 1; //ID
string friendId = 2; //ID
}
//
message FriendDelReq {
string friendId = 1; //ID
}
message FriendDelResp {
string friendId = 1; //ID
string userId = 2; //ID
}
//
message FriendAgreeReq {
repeated string friendIds = 1; //
}
message FriendAgreeResp {
int32 Num = 1; //
}
//
message FriendRefuseReq {
repeated string friendIds = 1; //
}
message FriendRefuseResp {
int32 Num = 1; //
}
//
message FriendApplyListReq {}
message FriendApplyListResp { repeated FriendBase list = 1; }
//
message FriendSearchReq {
string nickName = 1; //
}
message FriendSearchResp { repeated FriendBase friends = 1; }
//
message FriendBlackListReq {}
message FriendBlackListResp { repeated FriendBase friends = 1; }
//
message FriendAddBlackReq { string friendId = 1; }
message FriendAddBlackResp {
string friendId = 1;
string userId = 2;
}
//
message FriendDelBlackReq { string friendId = 1; }
message FriendDelBlackResp {
string friendId = 1;
string userId = 2;
}
//
message FriendTotalReq { string friendId = 1; }
message FriendTotalResp {
string friendId = 1;
int32 total = 2; //
}
//
message FriendZanlistReq {}
message FriendZanlistResp { repeated FriendBase list = 1; }
//
message FriendZanReq { repeated string friendIds = 1; }
message FriendZanResp { bool flag = 1; }
//
message FriendZanreceiveReq { repeated string friendIds = 1; }
message FriendZanreceiveResp { bool flag = 1; }
//
message FriendAssistheroReq { string heroObjId = 1; }
message FriendAssistheroResp {
string heroObjId = 1;
int32 received = 2; //012
}
//
message FriendAssistlistReq {}
message FriendAssistlistResp {
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

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

11
src/pb/temop/gm_msg.proto Normal file
View File

@ -0,0 +1,11 @@
syntax = "proto3";
option go_package = ".;pb";
///gm
message GMCmdReq {
string Cmod = 1;
}
///gm
message GMCmdResp {
bool IsSucc = 1;
}

View File

@ -0,0 +1,34 @@
syntax = "proto3";
option go_package = ".;pb";
import "comm.proto";
message DBGourmetAtlas {
string id = 1; //@go_tags(`bson:"_id"`) ID
string uid = 2; //@go_tags(`bson:"uid"`) ID
map<string,int32> atlas = 3;//@go_tags(`bson:"atlas"`)
}
//
message Cooking{
int32 foodType = 1; //
int64 eTime = 2; //
int64 sTime = 3; //
}
//
message OrderCook{
int32 foodType = 1; //
int32 foodCount = 2; //
int32 cookTime = 3; //
}
message DBGourmet {
string id = 1; //@go_tags(`bson:"_id"`) ID
string uid = 2; //@go_tags(`bson:"uid"`) ID
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

@ -0,0 +1,73 @@
syntax = "proto3";
option go_package = ".;pb";
import "gourmet_db.proto";
import "user_db.proto";
message GourmetCreateFoodReq {
string cid = 1; // ID
map<string,int32> material = 2;
}
message GourmetCreateFoodResp {
string cid = 1; //
bool firstGet = 2; //
}
message GourmetActivateAtlasReq {
string cid = 1; // ID
}
message GourmetActivateAtlasResp {
map<string,int32> atlas = 1;
}
//
message GourmetAtlasReq {
}
message GourmetAtlasResp {
map<string,int32> atlas = 1;
}
message GourmetGetListReq {
}
//
message GourmetGetListResp {
DBGourmet data = 1;
}
//
message GourmetCreateOrderReq {
repeated OrderCook order = 1;//
}
message GourmetCreateOrderResp {
DBGourmet data = 1;
}
//
message GourmetGetRewardReq{
}
message GourmetGetRewardResp{
DBGourmet data = 1;
}
//
message GourmetSkillLvReq{
int32 skillType = 1; // id
}
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_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,69 @@
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 = 17; // @go_tags(`bson:"sameCount"`)
int32 suiteId = 18; //@go_tags(`bson:"suiteId"`) Id
int32 suiteExtId = 19; // go_tags(`bson:"suiteExtId"`) Id
map<string, int32> juexProperty = 20; //@go_tags(`bson:"juexProperty"`) //hp
HeroType status = 21; //@go_tags(`bson:"status"`) (1 )
int32 suite1Star = 22; //@go_tags(`bson:"suite1Star"`)
int32 suite2Star = 23; //@go_tags(`bson:"suite2Star"`)
int32 suite1Lv = 24; //@go_tags(`bson:"suite1Lv"`)
int32 suite2Lv = 25; //@go_tags(`bson:"suite2Lv"`)
map<string, int32> talentProperty = 26; //@go_tags(`bson:"talentProperty"`) //
repeated SkillData equipSkill = 27; //@go_tags(`bson:"equipSkill"`)
map<string, int32> horoscopeProperty = 28; //@go_tags(`bson:"horoscopeProperty"`) //
int32 fulllvenr = 29; //@go_tags(`bson:"fulllvenr"`) // 使
string kongfuUid = 30; //@go_tags(`bson:"kongfuUid"`)//
}
//
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
map<int32,int32> race = 15; // key value count
}
//
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; //
}

182
src/pb/temop/hero_msg.proto Normal file
View File

@ -0,0 +1,182 @@
syntax = "proto3";
option go_package = ".;pb";
import "hero_db.proto";
import "comm.proto";
//
message HeroInfoReq {
string uid = 1; // uid
repeated string heroId = 2; //ID
}
message HeroInfoResp {
string uid = 1;
repeated DBHero base = 2;
}
//
message HeroListReq {}
message HeroListResp { repeated DBHero list = 1; }
/// : ()
/// : (使)
/// : ()
message MapStringInt32 {
string Key = 1;
int32 Value = 2;
}
//
message HeroStrengthenUplvReq {
string heroObjID = 1; // ID
map<string,int32> item = 2;// key itemid value
}
//
message HeroStrengthenUplvResp {
DBHero hero = 1; //
}
//
message HeroStrengthenUpStarReq {
string heroObjID = 1; // ID
}
//
message HeroStrengthenUpStarResp {
DBHero hero = 1; //
}
//
message HeroStrengthenUpSkillReq {
string heroObjID = 1; // ID
repeated string item = 2;//
}
//
message HeroStrengthenUpSkillResp {
DBHero hero = 1; //
}
//
message HeroAwakenReq {
string heroObjID = 1; // ID
}
//
message HeroAwakenResp {
DBHero hero = 1; //
}
//
message HeroPropertyPush {
string heroId = 1; //ID
map<string, int32> property = 2; //
map<string, int32> addProperty = 3; //
}
//
message HeroLockReq { string heroid = 1; }
//
message HeroLockResp {
DBHero hero = 1; //
}
//
message HeroGetSpecifiedReq {
string heroCoinfigID = 1; // ID
int32 Amount = 2; //
int32 star = 3; //
int32 lv = 4; //
}
message HeroGetSpecifiedResp {
DBHero hero = 1; //
}
//
message HeroDrawCardReq {
int32 drawType = 1; // 0
int32 drawCount = 2;//
}
message AtnoData{
repeated UserAtno atno = 1;
}
message HeroDrawCardResp {
repeated AtnoData data = 1;
}
//
message HeroChangePush{
repeated DBHero list = 1;
}
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

@ -0,0 +1,9 @@
syntax = "proto3";
option go_package = ".;pb";
//
message DBHoroscope {
string uid = 1; //@go_tags(`bson:"_id"`)
map<int32, int32> nodes = 2; // key:id value:
int64 lastrest = 3; //
}

View File

@ -0,0 +1,27 @@
syntax = "proto3";
option go_package = ".;pb";
import "horoscope_db.proto";
//
message HoroscopeInfoReq {}
//
message HoroscopeInfoResp { DBHoroscope info = 1; }
//
message HoroscopeUpgradeReq {
int32 nid = 1; //Id
}
//
message HoroscopeUpgradeResp {
int32 nid = 1; //线id
int32 lv = 2;
}
//
message HoroscopeResetReq {}
//
message HoroscopeResetResp {
bool issucc = 1;
DBHoroscope info = 2;
}

View File

@ -0,0 +1,27 @@
syntax = "proto3";
option go_package = ".;pb";
import "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

@ -0,0 +1,54 @@
syntax = "proto3";
option go_package = ".;pb";
import "hunting_db.proto";
import "battle_msg.proto";
message HuntingGetListReq {
}
message HuntingGetListResp {
DBHunting data = 1;
}
//
message HuntingChallengeReq {
int32 bossType = 1; // boos
int32 difficulty = 2; //
BattleFormation battle = 3;
}
message HuntingChallengeResp {
BattleInfo info = 1;
int32 bossType = 2; // boos
int32 difficulty = 3; //
}
message HuntingChallengeOverReq {
int32 bossType = 1; // boos
int32 difficulty = 2; //
BattleReport report = 3; //
}
//
message HuntingChallengeOverResp {
DBHunting data = 1;
}
//
message HuntingBuyReq {
int32 count = 1;//
}
message HuntingBuyResp {
DBHunting data = 1;
}
//
message HuntingRankListReq{
int32 boosType = 1; // boss
bool friend = 2; //
}
message HuntingRankListResp{
repeated DBHuntingRank ranks = 1; // boss类型
}

View File

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

View File

@ -0,0 +1,120 @@
syntax = "proto3";
option go_package = ".;pb";
import "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 {
}
//
message ItemsPotionSynthesisReq {
int32 id = 1; //id
int32 succnum = 2; //
int32 num = 3; //
}
//
message ItemsPotionSynthesisResp {
bool succ = 1;
int32 id = 2; //id
int32 num = 3; //
}

View File

@ -0,0 +1,42 @@
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: id
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_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

@ -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_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

@ -0,0 +1,17 @@
syntax = "proto3";
option go_package = ".;pb";
import "comm.proto";
message DBMailData {
string ObjId = 1; // @go_tags(`bson:"_id"`) ID
string Uid = 2;
string Title = 3; //
string Contex = 4; //
uint64 CreateTime = 5; //
uint64 DueTime = 6; //
bool Check = 7; //
bool Reward = 8; //
repeated UserAssets Items = 9; //
string Cid = 10; // ID
repeated string Param = 11;
}

View File

@ -0,0 +1,61 @@
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
}
message MailDelAllMailReq {
}
message MailDelAllMailResp {
repeated DBMailData Mails = 1;
}

View File

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

View File

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

View File

@ -0,0 +1,32 @@
syntax = "proto3";
option go_package = ".;pb";
enum PillarState {
NoUse = 0; //使
Useing = 1; //使
Receive = 2; //
}
///
message DBPillar {
int32 index = 1; //
bool isunlock = 2; //
PillarState state = 3; //
string hero = 4; //
int64 start = 5; //
int64 end = 6; //
int64 lastbill = 7; //
int32 reward = 8; //
}
//
message DBMartialhall {
string id = 1; //id
string uid = 2; //id
int32 lv = 3; //
DBPillar pillar1 = 4; //1
DBPillar pillar2 = 5; //2
DBPillar pillar3 = 6; //3
DBPillar pillar4 = 7; //4
DBPillar pillar5 = 8; //5
}

View File

@ -0,0 +1,45 @@
syntax = "proto3";
option go_package = ".;pb";
import "martialhall_db.proto";
///
message MartialhallInfoReq {}
///
message MartialhallInfoResp { DBMartialhall info = 1; }
///
message MartialhallPracticeReq {
int32 pillar = 1; //
string hero = 2; //
int32 time = 3; //
}
///
message MartialhallPracticeResp {
bool issucc = 1; //
DBMartialhall info = 2;
}
///
message MartialhallReceiveReq { int32 pillar = 1; }
///
message MartialhallReceiveResp {
int32 pillar = 1;
}
///
message MartialhallUpgradeReq {}
///
message MartialhallUpgradeResp {
bool issucc = 1;
DBMartialhall info = 2;
}
///
message MartialhallUnLockReq {
int32 pillar = 1; //
}
///
message MartialhallUnLockResp {
bool issucc = 1;
DBMartialhall info = 2;
}

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_db.proto";
import "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

@ -0,0 +1,39 @@
syntax = "proto3";
option go_package = ".;pb";
message UserInfo {
string uid = 1; //id
string name = 2; //
string avatar = 3; //
int32 lv = 4; //
}
//
message DBMoonFantasy {
string id = 1; //@go_tags(`bson:"_id"`) ID
string uid = 2; //id
string monster = 3; //id
int64 ctime = 4; //
repeated UserInfo join = 5; //
int32 numup = 6; //
int32 unitmup = 7; //
int64 expir = 8; //
map<string, int32> record = 9; //
}
//
message DBUserMFantasy {
string id = 1; //@go_tags(`bson:"_id"`) ID
string uid = 2; //id
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

@ -0,0 +1,63 @@
syntax = "proto3";
option go_package = ".;pb";
import "errorcode.proto";
import "moonfantasy_db.proto";
import "battle_msg.proto";
//
message MoonfantasyGetListReq {}
//
message MoonfantasyGetListResp {
int32 battleNum = 1; //
int32 buyNum = 2; //
repeated DBMoonFantasy dfantasys = 3; //
}
///
message MoonfantasyTriggerPush {
bool issucc = 1; //
string mid = 2; //id //
string monster = 3; //id
}
///
message MoonfantasyAskReq {
string mid = 1; //id
}
message MoonfantasyAskResp {
ErrorCode code = 1; //
DBMoonFantasy info = 2; //
}
///
message MoonfantasyBattleReq {
string mid = 1; //id
BattleFormation battle = 2; //
}
message MoonfantasyBattleResp {
ErrorCode code = 1; //
string mid = 2; //id
BattleInfo info = 3;
}
///
message MoonfantasyReceiveReq {
string bid = 2; //id id来领取奖励
string mid = 3; //id
BattleReport report = 4; //
}
///
message MoonfantasyReceiveResp {
bool issucc = 1; //
}
///
message MoonfantasyBuyReq { int32 BuyNum = 1; }
///
message MoonfantasyBuyResp {
bool issucc = 1; //
int32 BattleNum = 2; //
}

View File

@ -0,0 +1,12 @@
syntax = "proto3";
option go_package = ".;pb";
//
message DBSystemNotify {
string id = 1; //Id
string title = 2; //
string content = 3; //
bool istop = 4; //
int64 ctime = 5; //
int64 rtime = 6; //
}

View File

@ -0,0 +1,25 @@
syntax = "proto3";
option go_package = ".;pb";
import "comm.proto";
import "errorcode.proto";
import "notify_db.proto";
import "google/protobuf/any.proto";
//
message NotifyErrorNotifyPush {
string ReqMainType = 1; // :user user的模块
string ReqSubType = 2; // :login user的模块中
// api_login
ErrorCode Code = 3; // errorcode.proto
google.protobuf.Any arg = 4; //
ErrorData err = 5; //
}
//
message NotifyGetListReq {}
//
message NotifyGetListResp {
int64 LastReadTime = 1; //
repeated DBSystemNotify SysNotify = 2; //
}

View File

@ -0,0 +1,30 @@
syntax = "proto3";
option go_package = ".;pb";
import "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
map<int32,int32> data = 9; // key value
}
//
message DBPagodaRecord {
string id = 1; //@go_tags(`bson:"_id"`) ID
string uid = 2; //@go_tags(`bson:"uid"`) ID
int32 pagodaId = 3; //@go_tags(`bson:"pagodaId"`)
int32 type = 4; //
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

@ -0,0 +1,79 @@
syntax = "proto3";
option go_package = ".;pb";
import "pagoda_db.proto";
import "battle_msg.proto";
import "comm.proto";
//
message PagodaGetListReq {
}
//
message PagodaGetListResp {
DBPagoda data = 1;
}
//
message PagodaGetRewardReq {
int32 id = 1; // task_reward id
}
message PagodaGetRewardResp {
DBPagoda data = 1;
}
message PagodaChallengeReq {
int32 cid = 1; // id
BattleFormation battle = 3;
}
message PagodaChallengeResp {
BattleInfo info = 1;
int32 cid = 2; // id
}
//
message PagodaChallengeOverReq {
int32 cid = 1; // id
BattleReport report = 3; //
}
message PagodaChallengeOverResp {
DBPagoda data = 1;
}
//
message PagodaRankListReq{
int32 cid = 1; //
bool friend = 2; // true
}
message PagodaRankListResp{
repeated DBPagodaRecord ranks = 1;
}
//
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

@ -0,0 +1,36 @@
syntax = "proto3";
option go_package = ".;pb";
enum PandataPillarState {
NoUse = 0; //使
Useing = 1; //使
Receive = 2; //
}
///
message DBPandataPillar {
int32 index = 1; //
bool isunlock = 2; //
PandataPillarState state = 3; //
string hero = 4; //
int64 start = 5; //
int64 end = 6; //
int64 lastbill = 7; //
int32 reward = 8; //
}
//
message DBPandataTeacher {
string id = 1; //id
string cid = 2; //id
string student =3; //id
}
//
message DBPandataKekan {
string id = 1; //id
string uid = 2; //id
DBPandataPillar pillar1 = 4; //1
DBPandataPillar pillar2 = 5; //2
DBPandataPillar pillar3 = 6; //3
DBPandataPillar pillarf = 7; //
}

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