上传测试工具

This commit is contained in:
liwei1dao 2022-07-21 09:56:52 +08:00
parent fd6cb628f0
commit 47ff3a8468
23 changed files with 1121 additions and 289 deletions

BIN
dist.rar

Binary file not shown.

View File

@ -8,6 +8,174 @@ var $root = ($protobuf.roots["default"] || ($protobuf.roots["default"] = new $pr
go_package: ".;pb"
})
.addJSON({
ChatChannel: {
values: {
World: 0,
Union: 1,
Private: 2,
CrossServer: 3,
System: 4
}
},
DBChat: {
fields: {
id: {
type: "string",
id: 1
},
channel: {
type: "ChatChannel",
id: 2
},
suid: {
type: "string",
id: 3
},
ruid: {
type: "string",
id: 4
},
groud: {
type: "int32",
id: 5
},
areaId: {
type: "int32",
id: 6
},
unionId: {
type: "string",
id: 7
},
headid: {
type: "int32",
id: 8
},
uname: {
type: "string",
id: 9
},
content: {
type: "string",
id: 10
},
ctime: {
type: "int64",
id: 11
}
}
},
ChatMessagePush: {
fields: {
chat: {
type: "DBChat",
id: 1
}
}
},
ChatCrossChannelReq: {
fields: {}
},
ChatCrossChannelResp: {
fields: {
channelId: {
type: "int32",
id: 1
}
}
},
ChatChanageChannelReq: {
fields: {
channelId: {
type: "int32",
id: 1
}
}
},
ChatChanageChannelResp: {
fields: {
channelId: {
type: "int32",
id: 1
},
isSucc: {
type: "bool",
id: 2
}
}
},
ChatGetListReq: {
fields: {
channel: {
type: "ChatChannel",
id: 1
}
}
},
ChatGetListResp: {
fields: {
chats: {
rule: "repeated",
type: "DBChat",
id: 1
}
}
},
ChatSpanGetListReq: {
fields: {
channel: {
type: "ChatChannel",
id: 1
},
channelId: {
type: "int32",
id: 2
}
}
},
ChatSpanGetListResp: {
fields: {
chats: {
rule: "repeated",
type: "DBChat",
id: 1
}
}
},
ChatSendReq: {
fields: {
channel: {
type: "ChatChannel",
id: 1
},
targetId: {
type: "string",
id: 2
},
content: {
type: "string",
id: 3
}
}
},
ChatSendResp: {
fields: {}
},
ChatSpanSendReq: {
fields: {
channel: {
type: "ChatChannel",
id: 1
},
content: {
type: "string",
id: 2
}
}
},
ChatSpanSendResp: {
fields: {}
},
UserMessage: {
fields: {
MainType: {
@ -42,21 +210,25 @@ var $root = ($protobuf.roots["default"] || ($protobuf.roots["default"] = new $pr
type: "string",
id: 3
},
GatewayServiceId: {
ServiceTag: {
type: "string",
id: 4
},
MainType: {
GatewayServiceId: {
type: "string",
id: 5
},
SubType: {
MainType: {
type: "string",
id: 6
},
SubType: {
type: "string",
id: 7
},
Message: {
type: "google.protobuf.Any",
id: 7
id: 8
}
}
},
@ -165,13 +337,25 @@ var $root = ($protobuf.roots["default"] || ($protobuf.roots["default"] = new $pr
},
NoticeUserCloseReq: {
fields: {
UserSessionId: {
Ip: {
type: "string",
id: 1
},
UserId: {
UserSessionId: {
type: "string",
id: 2
},
UserId: {
type: "string",
id: 3
},
ServiceTag: {
type: "string",
id: 4
},
GatewayServiceId: {
type: "string",
id: 5
}
}
},
@ -236,6 +420,8 @@ var $root = ($protobuf.roots["default"] || ($protobuf.roots["default"] = new $pr
DiamondNoEnough: 1004,
RoleCreated: 1005,
NameExist: 1006,
VeriCodeNoValid: 1007,
VeriCodeExpired: 1008,
FriendNotSelf: 1100,
FriendSelfMax: 1101,
FriendTargetMax: 1102,
@ -266,17 +452,27 @@ var $root = ($protobuf.roots["default"] || ($protobuf.roots["default"] = new $pr
HeroEquipUpdate: 1311,
HeroMaxAwaken: 1312,
HeroIsLock: 1313,
HeroMaxCount: 1314,
HeroCostTypeErr: 1315,
HeroStarErr: 1316,
HeroTypeErr: 1317,
HeroExpTypeErr: 1318,
HeroAddMaxExp: 1319,
HeroStarLvErr: 1320,
HeroMaxStarLv: 1321,
EquipmentOnFoundEquipment: 1400,
EquipmentLvlimitReached: 1401,
StoryNotFindChapter: 1500,
StoryIDFailed: 1501,
MainlineNotFindChapter: 1500,
MainlineIDFailed: 1501,
TaskInit: 1600,
TaskReset: 1601,
TaskHandle: 1602,
TaskReceived: 1603,
TaskActiveInit: 1606,
TaskActiveNofound: 1604,
TaskActiveNoenough: 1605
TaskActiveInit: 1604,
TaskActiveNofound: 1605,
TaskActiveNoenough: 1606,
TaskNoFinished: 1607,
TaskFinished: 1608
}
},
google: {
@ -380,6 +576,15 @@ var $root = ($protobuf.roots["default"] || ($protobuf.roots["default"] = new $pr
}
}
},
EquipmentChangePush: {
fields: {
Equipments: {
rule: "repeated",
type: "DB_Equipment",
id: 1
}
}
},
EquipmentEquipReq: {
fields: {
HeroCardId: {
@ -765,60 +970,56 @@ var $root = ($protobuf.roots["default"] || ($protobuf.roots["default"] = new $pr
type: "int32",
id: 11
},
formation: {
cardType: {
type: "int32",
id: 12
},
cardType: {
type: "int32",
id: 13
},
curSkin: {
type: "int32",
id: 14
id: 13
},
skins: {
rule: "repeated",
type: "int32",
id: 15
id: 14
},
block: {
type: "bool",
id: 16
id: 15
},
equipID: {
rule: "repeated",
type: "string",
id: 17
id: 16
},
resonateNum: {
type: "int32",
id: 18
id: 17
},
distributionResonate: {
type: "int32",
id: 19
id: 18
},
energy: {
keyType: "int32",
type: "int32",
id: 20
id: 19
},
sameCount: {
type: "int32",
id: 21
id: 20
},
suiteId: {
type: "int32",
id: 22
id: 21
},
suiteExtId: {
type: "int32",
id: 23
id: 22
},
isOverlying: {
type: "bool",
id: 24
id: 23
}
}
},
@ -868,13 +1069,10 @@ var $root = ($protobuf.roots["default"] || ($protobuf.roots["default"] = new $pr
type: "string",
id: 1
},
expCardID: {
type: "string",
id: 2
},
amount: {
expCards: {
keyType: "string",
type: "int32",
id: 3
id: 2
}
}
},
@ -1051,7 +1249,7 @@ var $root = ($protobuf.roots["default"] || ($protobuf.roots["default"] = new $pr
}
}
},
HeroProperty: {
HeroPropertyPush: {
fields: {
heroId: {
type: "string",
@ -1085,6 +1283,72 @@ var $root = ($protobuf.roots["default"] || ($protobuf.roots["default"] = new $pr
}
}
},
HeroAddNewHeroPush: {
fields: {
hero: {
type: "DBHero",
id: 1
},
count: {
type: "int32",
id: 2
}
}
},
HeroGetSpecifiedReq: {
fields: {
heroCoinfigID: {
type: "int32",
id: 1
},
Amount: {
type: "int32",
id: 2
},
star: {
type: "int32",
id: 3
},
lv: {
type: "int32",
id: 4
}
}
},
HeroGetSpecifiedResp: {
fields: {
hero: {
type: "DBHero",
id: 1
}
}
},
HeroDelHeroPush: {
fields: {
heros: {
keyType: "string",
type: "int32",
id: 1
}
}
},
HeroDrawCardReq: {
fields: {
drawCount: {
type: "int32",
id: 1
}
}
},
HeroDrawCardResp: {
fields: {
heroes: {
rule: "repeated",
type: "int32",
id: 1
}
}
},
DB_UserItemData: {
fields: {
gridId: {
@ -1138,19 +1402,24 @@ var $root = ($protobuf.roots["default"] || ($protobuf.roots["default"] = new $pr
}
}
},
ItemsChangePush: {
fields: {
Grids: {
rule: "repeated",
type: "DB_UserItemData",
id: 1
}
}
},
ItemsUseItemReq: {
fields: {
GridId: {
type: "string",
id: 1
},
ItemId: {
type: "int32",
id: 2
},
Amount: {
type: "uint32",
id: 3
id: 2
}
}
},
@ -1174,7 +1443,12 @@ var $root = ($protobuf.roots["default"] || ($protobuf.roots["default"] = new $pr
}
},
ItemsSellItemResp: {
fields: {}
fields: {
Item: {
type: "DB_UserItemData",
id: 1
}
}
},
DBMailData: {
fields: {
@ -1286,6 +1560,99 @@ var $root = ($protobuf.roots["default"] || ($protobuf.roots["default"] = new $pr
}
}
},
DBMainline: {
fields: {
id: {
type: "string",
id: 1
},
uid: {
type: "string",
id: 2
},
chapterId: {
type: "int32",
id: 3
},
mainlineId: {
type: "int32",
id: 4
},
intensity: {
type: "int32",
id: 5
},
awaredID: {
type: "int32",
id: 6
},
progress: {
type: "int32",
id: 7
},
totalBox: {
type: "int32",
id: 8
},
branchID: {
rule: "repeated",
type: "int32",
id: 9
}
}
},
MainlineGetListReq: {
fields: {}
},
MainlineGetListResp: {
fields: {
data: {
rule: "repeated",
type: "DBMainline",
id: 1
}
}
},
MainlineGetRewrdReq: {
fields: {
chapterId: {
type: "uint32",
id: 1
},
boxId: {
type: "uint32",
id: 2
}
}
},
MainlineGetRewrdResp: {
fields: {
data: {
type: "DBMainline",
id: 1
}
}
},
MainlineChallengeReq: {
fields: {
chapterId: {
type: "uint32",
id: 1
},
mainlineId: {
type: "uint32",
id: 2
}
}
},
MainlineChallengeResp: {
fields: {
data: {
type: "DBMainline",
id: 1
}
}
},
DBSystemNotify: {
fields: {
id: {
@ -1332,9 +1699,13 @@ var $root = ($protobuf.roots["default"] || ($protobuf.roots["default"] = new $pr
type: "string",
id: 4
},
Data: {
type: "string",
arg: {
type: "google.protobuf.Any",
id: 5
},
Data: {
type: "google.protobuf.Any",
id: 6
}
}
},
@ -1500,99 +1871,6 @@ var $root = ($protobuf.roots["default"] || ($protobuf.roots["default"] = new $pr
}
}
},
DBStory: {
fields: {
id: {
type: "string",
id: 1
},
uid: {
type: "string",
id: 2
},
chapterId: {
type: "int32",
id: 3
},
storyId: {
type: "int32",
id: 4
},
intensity: {
type: "int32",
id: 5
},
awaredID: {
type: "int32",
id: 6
},
progress: {
type: "int32",
id: 7
},
totalBox: {
type: "int32",
id: 8
},
branchID: {
rule: "repeated",
type: "int32",
id: 9
}
}
},
StoryGetListReq: {
fields: {}
},
StoryGetListResp: {
fields: {
data: {
rule: "repeated",
type: "DBStory",
id: 1
}
}
},
StoryGetRewrdReq: {
fields: {
chapterId: {
type: "uint32",
id: 1
},
boxId: {
type: "uint32",
id: 2
}
}
},
StoryGetRewrdResp: {
fields: {
data: {
type: "DBStory",
id: 1
}
}
},
StoryChallengeReq: {
fields: {
chapterId: {
type: "uint32",
id: 1
},
storyId: {
type: "uint32",
id: 2
}
}
},
StoryChallengeResp: {
fields: {
data: {
type: "DBStory",
id: 1
}
}
},
DBTask: {
fields: {
id: {
@ -1696,6 +1974,10 @@ var $root = ($protobuf.roots["default"] || ($protobuf.roots["default"] = new $pr
rule: "repeated",
type: "DBTaskActive",
id: 1
},
active: {
type: "int32",
id: 2
}
}
},
@ -1723,6 +2005,23 @@ var $root = ($protobuf.roots["default"] || ($protobuf.roots["default"] = new $pr
}
}
},
TaskDoStrategyReq: {
fields: {
heroCfgId: {
type: "int32",
id: 1
}
}
},
TaskDoStrategyResp: {
fields: {
taskIds: {
rule: "repeated",
type: "int32",
id: 1
}
}
},
CacheUser: {
fields: {
uid: {
@ -1733,13 +2032,17 @@ var $root = ($protobuf.roots["default"] || ($protobuf.roots["default"] = new $pr
type: "string",
id: 2
},
GatewayServiceId: {
ServiceTag: {
type: "string",
id: 3
},
ip: {
GatewayServiceId: {
type: "string",
id: 4
},
ip: {
type: "string",
id: 5
}
}
},
@ -1819,6 +2122,62 @@ var $root = ($protobuf.roots["default"] || ($protobuf.roots["default"] = new $pr
}
}
},
DBUserSetting: {
fields: {
uid: {
type: "string",
id: 2
},
huazhi: {
type: "uint32",
id: 3
},
kangjuchi: {
type: "uint32",
id: 4
},
gaoguang: {
type: "bool",
id: 5
},
wuli: {
type: "bool",
id: 6
},
music: {
type: "bool",
id: 7
},
effect: {
type: "bool",
id: 8
},
guaji: {
type: "bool",
id: 9
},
fuben: {
type: "bool",
id: 10
},
tansuo: {
type: "bool",
id: 11
},
huodong: {
type: "bool",
id: 12
},
xuanshang: {
type: "bool",
id: 13
},
saiji: {
type: "bool",
id: 14
}
}
},
UserLoginReq: {
fields: {
account: {
@ -1839,6 +2198,12 @@ var $root = ($protobuf.roots["default"] || ($protobuf.roots["default"] = new $pr
}
}
},
UserLogoutReq: {
fields: {}
},
UserLogoutResp: {
fields: {}
},
UserRegisterReq: {
fields: {
account: {
@ -1897,6 +2262,122 @@ var $root = ($protobuf.roots["default"] || ($protobuf.roots["default"] = new $pr
id: 1
}
}
},
UserResChangePush: {
fields: {
gold: {
type: "int32",
id: 1
},
exp: {
type: "int32",
id: 2
},
lv: {
type: "int32",
id: 3
},
vip: {
type: "int32",
id: 4
},
diamond: {
type: "int32",
id: 5
}
}
},
UserGetSettingReq: {
fields: {}
},
UserGetSettingResp: {
fields: {
setting: {
type: "DBUserSetting",
id: 1
}
}
},
UserUpdateSettingReq: {
fields: {
setting: {
type: "DBUserSetting",
id: 1
}
}
},
UserUpdateSettingResp: {
fields: {}
},
UserVeriCodeReq: {
fields: {}
},
UserVeriCodeResp: {
fields: {
code: {
type: "int32",
id: 1
}
}
},
UserInitdataReq: {
fields: {
code: {
type: "int32",
id: 1
}
}
},
UserInitdataResp: {
fields: {}
},
DBUserExpand: {
fields: {
id: {
type: "string",
id: 1
},
uid: {
type: "string",
id: 2
},
lastreadnotiftime: {
type: "int64",
id: 3
},
chatchannel: {
type: "int32",
id: 4
}
}
},
DBUserRecord: {
fields: {
id: {
type: "string",
id: 1
},
uid: {
type: "string",
id: 2
},
type: {
type: "int32",
id: 3
},
parame: {
type: "int32",
id: 4
},
value: {
type: "int32",
id: 5
},
ctime: {
type: "int64",
id: 6
}
}
}
});

View File

@ -0,0 +1,24 @@
syntax = "proto3";
option go_package = ".;pb";
enum ChatChannel {
World = 0; //
Union = 1; //
Private = 2; //
CrossServer = 3; //
System = 4; //
}
message DBChat {
string id = 1; //id
ChatChannel channel = 2; //
string suid = 3; //id
string ruid = 4; //id channel == Private
int32 groud = 5; // id
int32 areaId = 6; // Id
string unionId = 7; //id
int32 headid = 8; //
string uname = 9; //
string content = 10; //
int64 ctime = 11; //
}

View File

@ -0,0 +1,51 @@
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; //
}
//
message ChatGetListResp { repeated DBChat chats = 1; }
//
message ChatSpanGetListReq {
ChatChannel channel = 1; //
int32 channelId = 2; //id
}
//
message ChatSpanGetListResp { repeated DBChat chats = 1; }
//
message ChatSendReq {
ChatChannel channel = 1; //
string targetId = 2; //id
string content = 3; //
}
//
message ChatSendResp {}
//
message ChatSpanSendReq {
ChatChannel channel = 1; //
string content = 2; //
}
//
message ChatSpanSendResp {}

View File

@ -17,10 +17,11 @@ message AgentMessage {
string Ip = 1;
string UserSessionId = 2;
string UserId = 3;
string GatewayServiceId = 4;
string MainType = 5;
string SubType = 6;
google.protobuf.Any Message = 7;
string ServiceTag = 4;
string GatewayServiceId = 5;
string MainType = 6;
string SubType = 7;
google.protobuf.Any Message = 8;
}
// RPC
@ -66,8 +67,11 @@ message AgentCloseeReq { string UserSessionId = 1; }
//线
message NoticeUserCloseReq {
string UserSessionId = 1;
string UserId = 2;
string Ip = 1;
string UserSessionId = 2;
string UserId = 3;
string ServiceTag = 4;
string GatewayServiceId = 5;
}
//

View File

@ -3,32 +3,36 @@ option go_package = ".;pb";
import "equipment_db.proto";
//
message EquipmentGetListReq {
}
message EquipmentGetListReq {}
//
message EquipmentGetListResp {
repeated DB_Equipment Equipments = 1; //
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 EquipmentEquipReq {
string HeroCardId = 1; //Id
repeated string EquipmentId = 2; //Id 0-5
}
//
message EquipmentEquipResp{
repeated DB_Equipment Equipments = 1; //
message EquipmentEquipResp {
repeated DB_Equipment Equipments = 1; //
}
//
message EquipmentUpgradeReq{
string EquipmentId = 1; //Id
message EquipmentUpgradeReq {
string EquipmentId = 1; //Id
}
//
message EquipmentUpgradeResp{
bool IsSucc = 1;
repeated DB_Equipment Equipment = 2; //
message EquipmentUpgradeResp {
bool IsSucc = 1;
repeated DB_Equipment Equipment =
2; //
}

View File

@ -30,6 +30,8 @@ enum ErrorCode {
DiamondNoEnough = 1004; //
RoleCreated = 1005; //
NameExist = 1006; //
VeriCodeNoValid = 1007; //
VeriCodeExpired = 1008; //
// friend
FriendNotSelf = 1100; //
@ -66,20 +68,30 @@ enum ErrorCode {
HeroEquipUpdate = 1311; //
HeroMaxAwaken = 1312; //
HeroIsLock = 1313; //
HeroMaxCount = 1314; //
HeroCostTypeErr = 1315; //
HeroStarErr = 1316; //
HeroTypeErr = 1317; //
HeroExpTypeErr = 1318; //
HeroAddMaxExp = 1319; //
HeroStarLvErr = 1320; //
HeroMaxStarLv = 1321; //
// equipment
EquipmentOnFoundEquipment = 1400; //
EquipmentLvlimitReached = 1401; //
// mainStory
StoryNotFindChapter = 1500; // 线
StoryIDFailed = 1501; // ID
// mainMainline
MainlineNotFindChapter = 1500; // 线
MainlineIDFailed = 1501; // ID
// task
TaskInit = 1600; //
TaskReset = 1601; //
TaskHandle = 1602; //
TaskReceived = 1603; //
TaskActiveInit = 1606; //
TaskActiveNofound = 1604; //
TaskActiveNoenough = 1605; //
TaskActiveInit = 1604; //
TaskActiveNofound = 1605; //
TaskActiveNoenough = 1606; //
TaskNoFinished = 1607; //
TaskFinished = 1608; //
}

View File

@ -0,0 +1,158 @@
// Protocol Buffers - Google's data interchange format
// Copyright 2008 Google Inc. All rights reserved.
// https://developers.google.com/protocol-buffers/
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following conditions are
// met:
//
// * Redistributions of source code must retain the above copyright
// notice, this list of conditions and the following disclaimer.
// * Redistributions in binary form must reproduce the above
// copyright notice, this list of conditions and the following disclaimer
// in the documentation and/or other materials provided with the
// distribution.
// * Neither the name of Google Inc. nor the names of its
// contributors may be used to endorse or promote products derived from
// this software without specific prior written permission.
//
// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
// "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
// A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
// OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
// DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
// THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
syntax = "proto3";
package google.protobuf;
option csharp_namespace = "Google.Protobuf.WellKnownTypes";
option go_package = "google.golang.org/protobuf/types/known/anypb";
option java_package = "com.google.protobuf";
option java_outer_classname = "AnyProto";
option java_multiple_files = true;
option objc_class_prefix = "GPB";
// `Any` contains an arbitrary serialized protocol buffer message along with a
// URL that describes the type of the serialized message.
//
// Protobuf library provides support to pack/unpack Any values in the form
// of utility functions or additional generated methods of the Any type.
//
// Example 1: Pack and unpack a message in C++.
//
// Foo foo = ...;
// Any any;
// any.PackFrom(foo);
// ...
// if (any.UnpackTo(&foo)) {
// ...
// }
//
// Example 2: Pack and unpack a message in Java.
//
// Foo foo = ...;
// Any any = Any.pack(foo);
// ...
// if (any.is(Foo.class)) {
// foo = any.unpack(Foo.class);
// }
//
// Example 3: Pack and unpack a message in Python.
//
// foo = Foo(...)
// any = Any()
// any.Pack(foo)
// ...
// if any.Is(Foo.DESCRIPTOR):
// any.Unpack(foo)
// ...
//
// Example 4: Pack and unpack a message in Go
//
// foo := &pb.Foo{...}
// any, err := anypb.New(foo)
// if err != nil {
// ...
// }
// ...
// foo := &pb.Foo{}
// if err := any.UnmarshalTo(foo); err != nil {
// ...
// }
//
// The pack methods provided by protobuf library will by default use
// 'type.googleapis.com/full.type.name' as the type URL and the unpack
// methods only use the fully qualified type name after the last '/'
// in the type URL, for example "foo.bar.com/x/y.z" will yield type
// name "y.z".
//
//
// JSON
//
// The JSON representation of an `Any` value uses the regular
// representation of the deserialized, embedded message, with an
// additional field `@type` which contains the type URL. Example:
//
// package google.profile;
// message Person {
// string first_name = 1;
// string last_name = 2;
// }
//
// {
// "@type": "type.googleapis.com/google.profile.Person",
// "firstName": <string>,
// "lastName": <string>
// }
//
// If the embedded message type is well-known and has a custom JSON
// representation, that representation will be embedded adding a field
// `value` which holds the custom JSON in addition to the `@type`
// field. Example (for message [google.protobuf.Duration][]):
//
// {
// "@type": "type.googleapis.com/google.protobuf.Duration",
// "value": "1.212s"
// }
//
message Any {
// A URL/resource name that uniquely identifies the type of the serialized
// protocol buffer message. This string must contain at least
// one "/" character. The last segment of the URL's path must represent
// the fully qualified name of the type (as in
// `path/google.protobuf.Duration`). The name should be in a canonical form
// (e.g., leading "." is not accepted).
//
// In practice, teams usually precompile into the binary all types that they
// expect it to use in the context of Any. However, for URLs which use the
// scheme `http`, `https`, or no scheme, one can optionally set up a type
// server that maps type URLs to message definitions as follows:
//
// * If no scheme is provided, `https` is assumed.
// * An HTTP GET on the URL must yield a [google.protobuf.Type][]
// value in binary format, or produce an error.
// * Applications are allowed to cache lookup results based on the
// URL, or have them precompiled into a binary to avoid any
// lookup. Therefore, binary compatibility needs to be preserved
// on changes to types. (Use versioned type names to manage
// breaking changes.)
//
// Note: this functionality is not currently available in the official
// protobuf release, and it is not used for type URLs beginning with
// type.googleapis.com.
//
// Schemes other than `http`, `https` (or the empty scheme) might be
// used with implementation specific semantics.
//
string type_url = 1;
// Must be a valid serialized protocol buffer of the above specified type.
bytes value = 2;
}

View File

@ -17,21 +17,17 @@ message DBHero {
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 formation = 12; //
int32 cardType =
13; //@go_tags(`bson:"cardType"`) ()
int32 curSkin = 14; //@go_tags(`bson:"curSkin"`) ID
repeated int32 skins = 15; // ID
bool block = 16; //
repeated string equipID = 17; //@go_tags(`bson:"equipID"`) objID
int32 resonateNum = 18; //@go_tags(`bson:"resonateNum"`)
int32 distributionResonate =
19; //@go_tags(`bson:"distributionResonate"`)
map<int32, int32> energy = 20; // @go_tags(`bson:"energy"`)[1,0]
int32 sameCount = 21; // @go_tags(`bson:"sameCount"`)
int32 suiteId = 22; //@go_tags(`bson:"suiteId"`) Id
int32 suiteExtId = 23; // go_tags(`bson:"suiteExtId"`) Id
bool isOverlying = 24; // go_tags(`bson:"isOverlying"`) true
map<string, int32> addProperty = 11; //@go_tags(`bson:"addProperty"`)
int32 cardType = 12; //@go_tags(`bson:"cardType"`) ()
int32 curSkin = 13; //@go_tags(`bson:"curSkin"`) ID
repeated int32 skins = 14; // ID
bool block = 15; //
repeated string equipID = 16; //@go_tags(`bson:"equipID"`) objID
int32 resonateNum = 17; //@go_tags(`bson:"resonateNum"`)
int32 distributionResonate = 18; //@go_tags(`bson:"distributionResonate"`)
map<int32, int32> energy = 19; // @go_tags(`bson:"energy"`)[1,0]
int32 sameCount = 20; // @go_tags(`bson:"sameCount"`)
int32 suiteId = 21; //@go_tags(`bson:"suiteId"`) Id
int32 suiteExtId = 22; // go_tags(`bson:"suiteExtId"`) Id
bool isOverlying = 23; // go_tags(`bson:"isOverlying"`) true
}

View File

@ -25,8 +25,7 @@ message ItemData {
//
message HeroStrengthenUplvReq {
string heroObjID = 1; // ID
string expCardID = 2; // ID
int32 amount = 3; // }
map<string, int32> expCards = 2;
}
//
@ -63,7 +62,7 @@ message HeroStrengthenUpSkillResp {
//
message HeroResonanceReq {
string heroObjID = 1; // ID
string heroObjID = 1; // ID
repeated string costObjID = 2; //
}
@ -110,18 +109,45 @@ message HeroChoukaReq { repeated int32 heroIds = 1; }
message HeroChoukaResp { repeated DBHero heroes = 1; }
//
message HeroProperty {
message HeroPropertyPush {
string heroId = 1; //ID
map<string, int32> property = 2; //
map<string, int32> addProperty = 3; //
}
//
message HeroLockReq{
string heroid = 1;
}
message HeroLockReq { string heroid = 1; }
//
message HeroLockResp{
DBHero hero = 1; //
message HeroLockResp {
DBHero hero = 1; //
}
//
message HeroAddNewHeroPush {
DBHero hero = 1; //
int32 count = 2; //
}
//
message HeroGetSpecifiedReq {
int32 heroCoinfigID = 1; // ID
int32 Amount = 2; //
int32 star = 3; //
int32 lv = 4; //
}
message HeroGetSpecifiedResp {
DBHero hero = 1; //
}
message HeroDelHeroPush { map<string, int32> heros = 1; }
//
message HeroDrawCardReq {
int32 drawCount = 1; // ,
}
message HeroDrawCardResp {
repeated int32 heroes = 1; // configID
}

View File

@ -4,34 +4,36 @@ import "items_db.proto";
//
message ItemsGetlistReq {
int32 IType = 1; //
int32 IType = 1; //
}
//
message ItemsGetlistResp {
repeated DB_UserItemData Grids = 1; //
repeated DB_UserItemData Grids = 1; //
}
//
message ItemsChangePush {
repeated DB_UserItemData Grids = 1; //
}
//使
message ItemsUseItemReq {
string GridId = 1; //Id
int32 ItemId = 2; //Id
uint32 Amount = 3; //使
string GridId = 1; //Id
uint32 Amount = 2; //使
}
//使
message ItemsUseItemResp {
}
message ItemsUseItemResp {}
//sailitem
message ItemsSellItemReq {
string GridId = 1; //Id
int32 ItemId = 2; //Id
uint32 Amount = 3; //使
string GridId = 1; //Id
int32 ItemId = 2; //Id
uint32 Amount = 3; //使
}
//
message ItemsSellItemResp {
DB_UserItemData Item = 1; //
}

View File

@ -2,43 +2,27 @@ syntax = "proto3";
option go_package = ".;pb";
import "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 {
repeated DBMailData Mail = 1;
}
message MailDelMailResp { repeated DBMailData Mail = 1; }
//
message MailGetNewMailPush{
DBMailData Mail = 1; //
message MailGetNewMailPush {
DBMailData Mail = 1; //
}

View File

@ -1,11 +1,11 @@
syntax = "proto3";
option go_package = ".;pb";
message DBStory {
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 storyId = 4; //@go_tags(`bson:"storyId"`) 线ID
int32 mainlineId = 4; //@go_tags(`bson:"mainlineId"`) 线ID
int32 intensity = 5; //@go_tags(`bson:"intensity"`)
int32 awaredID = 6; //@go_tags(`bson:"awaredID"`) ID
int32 progress = 7; // @go_tags(`bson:"progress"`) ()

View File

@ -0,0 +1,28 @@
syntax = "proto3";
option go_package = ".;pb";
import "mainline_db.proto";
//
message MainlineGetListReq {}
//
message MainlineGetListResp { repeated DBMainline data = 1; }
//
message MainlineGetRewrdReq {
uint32 chapterId = 1; // ID
uint32 boxId = 2; // ID
}
message MainlineGetRewrdResp {
DBMainline data = 1; //
}
//
message MainlineChallengeReq {
uint32 chapterId = 1; // ID
uint32 mainlineId = 2; // ID
}
message MainlineChallengeResp {
DBMainline data = 1; //
}

View File

@ -1,23 +1,25 @@
syntax = "proto3";
option go_package = ".;pb";
import "errorcode.proto";
import "notify/notify_db.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
string Message = 4; //
string Data = 5; //
string ReqMainType = 1; // :user user的模块
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; //
}
//
message NotifyGetListReq {
}
message NotifyGetListReq {}
//
message NotifyGetListResp {
int64 LastReadTime = 1; //
repeated DBSystemNotify SysNotify = 2; //
int64 LastReadTime = 1; //
repeated DBSystemNotify SysNotify = 2; //
}

View File

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

View File

@ -1,32 +0,0 @@
syntax = "proto3";
option go_package = ".;pb";
import "story_db.proto";
//
message StoryGetListReq {
}
//
message StoryGetListResp {
repeated DBStory data = 1;
}
//
message StoryGetRewrdReq {
uint32 chapterId = 1; // ID
uint32 boxId = 2; // ID
}
message StoryGetRewrdResp {
DBStory data = 1; //
}
//
message StoryChallengeReq {
uint32 chapterId = 1; // ID
uint32 storyId = 2; // ID
}
message StoryChallengeResp {
DBStory data = 1; //
}

View File

@ -21,7 +21,10 @@ message TaskListResp { repeated DBTask list = 1; }
//
message TaskActiveListReq { int32 taskTag = 1; }
message TaskActiveListResp { repeated DBTaskActive list = 1; }
message TaskActiveListResp {
repeated DBTaskActive list = 1; //
int32 active = 2; //
}
//
message TaskActiveReceiveReq {
@ -31,4 +34,13 @@ message TaskActiveReceiveReq {
message TaskActiveReceiveResp {
int32 taskTag = 1;
string id = 2;
}
//
message TaskDoStrategyReq {
int32 heroCfgId = 1; //ID
}
message TaskDoStrategyResp {
repeated int32 taskIds = 1; //ID
}

View File

@ -2,10 +2,11 @@ syntax = "proto3";
option go_package = ".;pb";
message CacheUser {
string uid = 1;
string SessionId = 2;
string GatewayServiceId = 3;
string ip = 4;
string uid = 1; //id
string SessionId = 2; //id
string ServiceTag = 3; // id
string GatewayServiceId = 4; //id
string ip = 5; //ip
// DB_UserData UserData = 4; //@go_tags(`json:",inline"`)
}
@ -28,4 +29,21 @@ message DBUser {
int32 lv = 16; //@go_tags(`bson:"lv"`)
int32 vip = 17; //@go_tags(`bson:"vip"`) vip
int32 diamond = 18; //@go_tags(`bson:"diamond"`)
}
message DBUserSetting {
string uid = 2; //@go_tags(`bson:"uid"`) ID
uint32 huazhi = 3; //@go_tags(`bson:"huazhi"`) 0 1 2 3
uint32 kangjuchi = 4; //@go_tags(`bson:"kangjuchi"`) 齿 0 1 2 3
bool gaoguang = 5; //@go_tags(`bson:"gaoguang"`)
bool wuli = 6; //@go_tags(`bson:"wuli"`)
bool music = 7; //@go_tags(`bson:"music"`)
bool effect = 8; //@go_tags(`bson:"effect"`)
bool guaji = 9; //@go_tags(`bson:"guaji"`)
bool fuben = 10; //@go_tags(`bson:"fuben"`)
bool tansuo = 11; //@go_tags(`bson:"tansuo"`)
bool huodong = 12; //@go_tags(`bson:"huodong"`)
bool xuanshang = 13; //@go_tags(`bson:"wanfa"`)
bool saiji = 14; //@go_tags(`bson:"wanfa"`)
}

View File

@ -3,6 +3,7 @@ option go_package = ".;pb";
import "errorcode.proto";
import "user_db.proto";
import "comm.proto";
//
message UserLoginReq {
string account = 1; //
@ -11,6 +12,12 @@ message UserLoginReq {
message UserLoginResp { DBUser data = 1; }
//
message UserLogoutReq {}
message UserLogoutResp {}
//
message UserRegisterReq {
string account = 1;
int32 sid = 2;
@ -38,3 +45,34 @@ message UserAddResReq {
message UserAddResResp {
UserAssets res = 1; //
}
//
message UserResChangePush {
int32 gold = 1; //@go_tags(`bson:"gold"`)
int32 exp = 2; //@go_tags(`bson:"exp"`)
int32 lv = 3; //@go_tags(`bson:"lv"`)
int32 vip = 4; //@go_tags(`bson:"vip"`) vip
int32 diamond = 5; //@go_tags(`bson:"diamond"`)
}
//
message UserGetSettingReq {}
message UserGetSettingResp {
DBUserSetting setting = 1; //
}
//
message UserUpdateSettingReq { DBUserSetting setting = 1; }
message UserUpdateSettingResp {}
//
message UserVeriCodeReq {}
message UserVeriCodeResp {
int32 code = 1; //
}
message UserInitdataReq {
int32 code = 1; //
}
message UserInitdataResp {}

View File

@ -0,0 +1,11 @@
syntax = "proto3";
option go_package = ".;pb";
//
message DBUserExpand {
string id = 1; //id
string uid = 2; //id
int64 lastreadnotiftime = 3; //
int32 chatchannel = 4; //
}

View File

@ -0,0 +1,13 @@
syntax = "proto3";
option go_package = ".;pb";
//
message DBUserRecord {
string id = 1; // id
string uid = 2; // id
int32 type = 3; //
int32 parame = 4; //
int32 value = 5; //
int64 ctime = 6; //
}

View File

@ -212,7 +212,8 @@ export default defineComponent({
{ mainType: 'hero', subs: [] },
{ mainType: 'shop', subs: [] },
{ mainType: 'stak', subs: [] },
{ mainType: 'story', subs: [] },
{ mainType: 'mainline', subs: [] },
{ mainType: 'chat', subs: [] },
])
for (const v of Object.keys(proto)) {
for (const v1 of proto_models) {
@ -467,7 +468,7 @@ export default defineComponent({
})
.catch((error) => {
console.log('接收到消息异常', error)
this.pushlog('error', '接收消息异常', { msg: msg, e: e })
this.pushlog('error', '接收消息异常', error)
})
},
//