上传vue代码

This commit is contained in:
liwei1dao 2022-07-26 13:56:02 +08:00
parent 72a0d957eb
commit 9067cbbf32
18 changed files with 406 additions and 116 deletions

BIN
dist.rar

Binary file not shown.

View File

@ -486,7 +486,8 @@ var $root = ($protobuf.roots["default"] || ($protobuf.roots["default"] = new $pr
TaskActiveNoenough: 1606, TaskActiveNoenough: 1606,
TaskNoFinished: 1607, TaskNoFinished: 1607,
TaskFinished: 1608, TaskFinished: 1608,
ShopGoodsIsSoldOut: 1700 ShopGoodsIsSoldOut: 1700,
ShopNoSurplusRefreshNum: 1701
} }
}, },
google: { google: {
@ -1876,10 +1877,22 @@ var $root = ($protobuf.roots["default"] || ($protobuf.roots["default"] = new $pr
}, },
ShopGetListResp: { ShopGetListResp: {
fields: { fields: {
sType: {
type: "ShopType",
id: 1
},
IsManualRefresh: {
type: "bool",
id: 2
},
Goods: { Goods: {
rule: "repeated", rule: "repeated",
type: "ShopItem", type: "ShopItem",
id: 1 id: 4
},
SurplusRefreshNum: {
type: "int32",
id: 5
} }
} }
}, },
@ -1940,6 +1953,10 @@ var $root = ($protobuf.roots["default"] || ($protobuf.roots["default"] = new $pr
typeId: { typeId: {
type: "int32", type: "int32",
id: 9 id: 9
},
sort: {
type: "int32",
id: 10
} }
} }
}, },
@ -2372,7 +2389,12 @@ var $root = ($protobuf.roots["default"] || ($protobuf.roots["default"] = new $pr
} }
}, },
UserUpdateSettingResp: { UserUpdateSettingResp: {
fields: {} fields: {
uid: {
type: "string",
id: 1
}
}
}, },
UserVeriCodeReq: { UserVeriCodeReq: {
fields: {} fields: {}
@ -2394,7 +2416,12 @@ var $root = ($protobuf.roots["default"] || ($protobuf.roots["default"] = new $pr
} }
}, },
UserInitdataResp: { UserInitdataResp: {
fields: {} fields: {
uid: {
type: "string",
id: 1
}
}
}, },
UserModifynameReq: { UserModifynameReq: {
fields: { fields: {
@ -2428,6 +2455,146 @@ var $root = ($protobuf.roots["default"] || ($protobuf.roots["default"] = new $pr
} }
} }
}, },
UserChangedPush: {
fields: {
uid: {
type: "string",
id: 1
},
exp: {
type: "int32",
id: 2
},
lv: {
type: "int32",
id: 3
}
}
},
UserFigureReq: {
fields: {
preinstall: {
type: "int32",
id: 1
},
action: {
type: "int32",
id: 2
},
hair: {
type: "Hair",
id: 3
},
eyes: {
type: "Eyes",
id: 4
},
mouth: {
type: "Mouth",
id: 5
},
body: {
type: "Body",
id: 6
},
complexion: {
type: "Complexion",
id: 7
}
}
},
UserFigureResp: {
fields: {
uid: {
type: "string",
id: 1
},
action: {
type: "int32",
id: 2
},
figure: {
type: "Figure",
id: 3
}
}
},
Hair: {
fields: {
resId: {
type: "int32",
id: 1
},
color: {
type: "string",
id: 2
}
}
},
Eyes: {
fields: {
resId: {
type: "int32",
id: 1
},
color: {
type: "string",
id: 2
}
}
},
Mouth: {
fields: {
resId: {
type: "string",
id: 1
}
}
},
Body: {
fields: {
high: {
type: "int32",
id: 1
},
shape: {
type: "int32",
id: 2
}
}
},
Complexion: {
fields: {
color: {
type: "string",
id: 1
}
}
},
Figure: {
fields: {
hair: {
type: "Hair",
id: 1
},
eyes: {
type: "Eyes",
id: 2
},
mouth: {
type: "Mouth",
id: 3
},
body: {
type: "Body",
id: 4
},
complexion: {
type: "Complexion",
id: 5
}
}
},
DBUserExpand: { DBUserExpand: {
fields: { fields: {
id: { id: {
@ -2462,6 +2629,15 @@ var $root = ($protobuf.roots["default"] || ($protobuf.roots["default"] = new $pr
keyType: "string", keyType: "string",
type: "bool", type: "bool",
id: 8 id: 8
},
curFigure: {
type: "int32",
id: 9
},
preinstall: {
keyType: "int32",
type: "Figure",
id: 10
} }
} }
}, },

View File

@ -1,51 +1,70 @@
syntax = "proto3"; syntax = "proto3";
option go_package = ".;pb"; option go_package = ".;pb";
import "chat_db.proto"; import "chat/chat_db.proto";
// //
message ChatMessagePush { DBChat chat = 1; } message ChatMessagePush{
DBChat chat = 1;
}
// //
message ChatCrossChannelReq {} message ChatCrossChannelReq {
}
// //
message ChatCrossChannelResp { int32 channelId = 1; } message ChatCrossChannelResp {
int32 channelId = 1;
}
// //
message ChatChanageChannelReq { int32 channelId = 1; } message ChatChanageChannelReq {
int32 channelId = 1;
}
// //
message ChatChanageChannelResp { message ChatChanageChannelResp {
int32 channelId = 1; int32 channelId = 1;
bool isSucc = 2; bool isSucc = 2;
} }
// //
message ChatGetListReq { message ChatGetListReq {
ChatChannel channel = 1; // ChatChannel channel = 1; //
} }
// //
message ChatGetListResp { repeated DBChat chats = 1; } message ChatGetListResp {
repeated DBChat chats = 1;
}
// //
message ChatSpanGetListReq { message ChatSpanGetListReq {
ChatChannel channel = 1; // ChatChannel channel = 1; //
int32 channelId = 2; //id int32 channelId = 2; //id
} }
// //
message ChatSpanGetListResp { repeated DBChat chats = 1; } message ChatSpanGetListResp {
repeated DBChat chats = 1;
}
// //
message ChatSendReq { message ChatSendReq {
ChatChannel channel = 1; // ChatChannel channel = 1; //
string targetId = 2; //id string targetId = 2; //id
string content = 3; // string content = 3; //
} }
// //
message ChatSendResp {} message ChatSendResp {
}
// //
message ChatSpanSendReq { message ChatSpanSendReq {
ChatChannel channel = 1; // ChatChannel channel = 1; //
string content = 2; // string content = 2; //
} }
// //
message ChatSpanSendResp {} message ChatSpanSendResp {
}

View File

@ -3,7 +3,7 @@ option go_package = ".;pb";
import "errorcode.proto"; import "errorcode.proto";
import "google/protobuf/any.proto"; import "google/protobuf/any.proto";
// //1
message UserMessage { message UserMessage {
string MainType = 1; // :user user的模块 string MainType = 1; // :user user的模块
string SubType = 2; // :login user的模块中 string SubType = 2; // :login user的模块中

View File

@ -1,38 +1,39 @@
syntax = "proto3"; syntax = "proto3";
option go_package = ".;pb"; option go_package = ".;pb";
import "equipment_db.proto"; import "equipment/equipment_db.proto";
// //
message EquipmentGetListReq {} message EquipmentGetListReq {
}
// //
message EquipmentGetListResp { message EquipmentGetListResp {
repeated DB_Equipment Equipments = 1; // repeated DB_Equipment Equipments = 1; //
} }
// //
message EquipmentChangePush { message EquipmentChangePush {
repeated DB_Equipment Equipments = 1; // repeated DB_Equipment Equipments = 1; //
} }
// //
message EquipmentEquipReq { message EquipmentEquipReq{
string HeroCardId = 1; //Id string HeroCardId = 1; //Id
repeated string EquipmentId = 2; //Id 0-5 repeated string EquipmentId = 2; //Id 0-5
} }
// //
message EquipmentEquipResp { message EquipmentEquipResp{
repeated DB_Equipment Equipments = 1; // repeated DB_Equipment Equipments = 1; //
} }
// //
message EquipmentUpgradeReq { message EquipmentUpgradeReq{
string EquipmentId = 1; //Id string EquipmentId = 1; //Id
} }
// //
message EquipmentUpgradeResp { message EquipmentUpgradeResp{
bool IsSucc = 1; bool IsSucc = 1;
repeated DB_Equipment Equipment = repeated DB_Equipment Equipment = 2; //
2; //
} }

View File

@ -106,4 +106,5 @@ enum ErrorCode {
// shop // shop
ShopGoodsIsSoldOut = 1700; // ShopGoodsIsSoldOut = 1700; //
ShopNoSurplusRefreshNum = 1701; //
} }

View File

@ -1,6 +1,6 @@
syntax = "proto3"; syntax = "proto3";
option go_package = ".;pb"; option go_package = ".;pb";
import "hero_db.proto"; import "hero/hero_db.proto";
// //
message HeroInfoReq { message HeroInfoReq {
@ -131,9 +131,9 @@ message HeroLockResp {
// //
message HeroGetSpecifiedReq { message HeroGetSpecifiedReq {
string heroCoinfigID = 1; // ID string heroCoinfigID = 1; // ID
int32 Amount = 2; // int32 Amount = 2; //
int32 star = 3; // int32 star = 3; //
int32 lv = 4; // int32 lv = 4; //
} }
message HeroGetSpecifiedResp { message HeroGetSpecifiedResp {
@ -141,13 +141,15 @@ message HeroGetSpecifiedResp {
} }
// //
message HeroDrawCardReq { message HeroDrawCardReq {
int32 drawType = 1; // drawCardCost表 int32 drawType = 1; // drawCardCost表
} }
message HeroDrawCardResp { message HeroDrawCardResp {
repeated string heroes = 1; // configID repeated string heroes = 1; // configID
} }
// //
message HeroChangePush { repeated DBHero list = 1; } message HeroChangePush{
repeated DBHero list = 1;
}

View File

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

View File

@ -1,30 +1,44 @@
syntax = "proto3"; syntax = "proto3";
option go_package = ".;pb"; option go_package = ".;pb";
import "mail_db.proto"; import "mail/mail_db.proto";
message MailGetListReq {} message MailGetListReq {
}
// //
message MailGetListResp { repeated DBMailData Mails = 1; } message MailGetListResp {
repeated DBMailData Mails = 1;
}
// //
message MailReadMailReq { string ObjID = 1; } message MailReadMailReq {
string ObjID = 1;
}
message MailReadMailResp { DBMailData Mail = 1; } message MailReadMailResp {
DBMailData Mail = 1;
}
// //
message MailGetUserMailAttachmentReq { string ObjID = 1; } message MailGetUserMailAttachmentReq {
string ObjID = 1;
}
message MailGetUserMailAttachmentResp { DBMailData Mail = 1; } message MailGetUserMailAttachmentResp {
DBMailData Mail = 1;
}
// //
message MailDelMailReq { string ObjID = 1; } message MailDelMailReq {
string ObjID = 1;
}
message MailDelMailResp { message MailDelMailResp {
string ObjID = 1; // id string ObjID = 1; // id
} }
// //
message MailGetNewMailPush { message MailGetNewMailPush{
DBMailData Mail = 1; // DBMailData Mail = 1; //
} }

View File

@ -1,30 +1,36 @@
syntax = "proto3"; syntax = "proto3";
option go_package = ".;pb"; option go_package = ".;pb";
import "mainline_db.proto"; import "mainline/mainline_db.proto";
// //
message MainlineGetListReq {} message MainlineGetListReq {
}
// //
message MainlineGetListResp { repeated DBMainline data = 1; } message MainlineGetListResp {
repeated DBMainline data = 1;
}
// //
message MainlineGetRewardReq { message MainlineGetRewardReq {
string chapterObj = 1; // id string chapterObj = 1; // id
} }
message MainlineGetRewardResp { message MainlineGetRewardResp {
DBMainline data = 1; // DBMainline data = 1; //
} }
// //
message MainlineChallengeReq { message MainlineChallengeReq {
string chapterObj = 1; // id string chapterObj = 1; // id
uint32 mainlineId = 2; // ID uint32 mainlineId = 2; // ID
} }
message MainlineChallengeResp { message MainlineChallengeResp {
DBMainline data = 1; // DBMainline data = 1; //
} }
// //
message MainlineNewChapterPush { DBMainline data = 1; } message MainlineNewChapterPush{
DBMainline data = 1;
}

View File

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

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

Binary file not shown.

View File

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

View File

@ -11,6 +11,7 @@ message DBTask {
int32 status = 7; //@go_tags(`bson:"status"`) 0 1 int32 status = 7; //@go_tags(`bson:"status"`) 0 1
int32 received = 8; //@go_tags(`bson:"received"`) 0 1 int32 received = 8; //@go_tags(`bson:"received"`) 0 1
int32 typeId = 9; //@go_tags(`bson:"typeId"`) int32 typeId = 9; //@go_tags(`bson:"typeId"`)
int32 sort = 10; //@go_tags(`bson:"sort"`)
} }
message DBTaskActive { message DBTaskActive {

View File

@ -1,6 +1,6 @@
syntax = "proto3"; syntax = "proto3";
option go_package = ".;pb"; option go_package = ".;pb";
import "task_db.proto"; import "task/task_db.proto";
// //
message TaskReceiveReq { message TaskReceiveReq {
@ -46,4 +46,6 @@ message TaskDoStrategyResp {
} }
// //
message TaskFinishedPush { int32 taskId = 1; } message TaskFinishedPush {
int32 taskId = 1;
}

View File

@ -2,12 +2,11 @@ syntax = "proto3";
option go_package = ".;pb"; option go_package = ".;pb";
message CacheUser { message CacheUser {
string uid = 1; //@go_tags(`json:"uid"`) id string uid = 1; //@go_tags(`json:"uid"`) id
string SessionId = 2; //@go_tags(`json:"sessionId"`) id string SessionId = 2; //@go_tags(`json:"sessionId"`) id
string ServiceTag = 3; //@go_tags(`json:"serviceTag"`) id string ServiceTag = 3; //@go_tags(`json:"serviceTag"`) id
string GatewayServiceId = string GatewayServiceId = 4; //@go_tags(`json:"gatewayServiceId"`) id
4; //@go_tags(`json:"gatewayServiceId"`) id string ip = 5; //@go_tags(`json:"ip"`) ip
string ip = 5; //@go_tags(`json:"ip"`) ip
} }
message DBUser { message DBUser {

View File

@ -1,7 +1,7 @@
syntax = "proto3"; syntax = "proto3";
option go_package = ".;pb"; option go_package = ".;pb";
import "errorcode.proto"; import "errorcode.proto";
import "user_db.proto"; import "user/user_db.proto";
import "comm.proto"; import "comm.proto";
import "userexpand.proto"; import "userexpand.proto";
@ -39,7 +39,9 @@ message UserCreateReq {
string NickName = 1; // string NickName = 1; //
} }
message UserCreateResp { bool IsSucc = 1; } message UserCreateResp {
bool IsSucc = 1;
}
// //
message UserAddResReq { message UserAddResReq {
@ -68,7 +70,7 @@ message UserGetSettingResp {
// //
message UserUpdateSettingReq { DBUserSetting setting = 1; } message UserUpdateSettingReq { DBUserSetting setting = 1; }
message UserUpdateSettingResp {} message UserUpdateSettingResp { string uid = 1; }
// //
message UserVeriCodeReq {} message UserVeriCodeReq {}
@ -80,7 +82,7 @@ message UserVeriCodeResp {
message UserInitdataReq { message UserInitdataReq {
int32 code = 1; // int32 code = 1; //
} }
message UserInitdataResp {} message UserInitdataResp { string uid = 1; }
// //
message UserModifynameReq { message UserModifynameReq {
@ -91,6 +93,30 @@ message UserModifynameResp {
uint32 count = 2; // uint32 count = 2; //
} }
//
message UserGetTujianReq {} message UserGetTujianReq {}
message UserGetTujianResp { repeated string heroids = 1; }
message UserGetTujianResp { repeated string heroids = 1; } //
message UserChangedPush {
string uid = 1;
int32 exp = 2;
int32 lv = 3;
}
//
message UserFigureReq {
int32 preinstall = 1; // 1-5
int32 action = 2; // 1-5 0
Hair hair = 3; // 1
Eyes eyes = 4; // 2
Mouth mouth = 5; // 3
Body body = 6; // 4
Complexion complexion = 7; // 5
}
message UserFigureResp {
string uid = 1;
int32 action = 2; //
Figure figure = 3;
}

View File

@ -1,14 +1,53 @@
syntax = "proto3"; syntax = "proto3";
option go_package = ".;pb"; option go_package = ".;pb";
//
message Hair {
int32 resId = 1; //ID
string color = 2; //
}
//
message Eyes {
int32 resId = 1; //ID
string color = 2; //
}
//
message Mouth {
string resId = 1; //ID
}
//
message Body {
int32 high = 1; //
int32 shape = 2; //
}
//
message Complexion {
string color = 1; //
}
//
message Figure {
Hair hair = 1;
Eyes eyes = 2;
Mouth mouth = 3;
Body body = 4;
Complexion complexion = 5;
}
// //
message DBUserExpand { message DBUserExpand {
string id = 1; //id string id = 1; //id
string uid = 2; //id string uid = 2; //id
int64 lastreadnotiftime = 3; // int64 lastreadnotiftime = 3; //
int64 lastInitdataTime = 4; // int64 lastInitdataTime = 4; //
uint32 initdataCount = 5; // uint32 initdataCount = 5; //
int32 chatchannel = 6; // int32 chatchannel = 6; //
int32 modifynameCount = 7; // int32 modifynameCount = 7; //
map<string,bool> tujian = 8; // map<string, bool> tujian = 8; //
int32 curFigure = 9; //
map<int32, Figure> preinstall = 10; //
} }