上传页面工具代码

This commit is contained in:
liwei1dao 2022-09-01 15:26:32 +08:00
parent b4007d4b97
commit 7730929c47
4 changed files with 103 additions and 45 deletions

View File

@ -17,6 +17,12 @@ var $root = ($protobuf.roots["default"] || ($protobuf.roots["default"] = new $pr
System: 4
}
},
ChatType: {
values: {
Text: 0,
Moonfantasy: 1
}
},
DBChat: {
fields: {
id: {
@ -27,45 +33,61 @@ var $root = ($protobuf.roots["default"] || ($protobuf.roots["default"] = new $pr
type: "ChatChannel",
id: 2
},
ctype: {
type: "ChatType",
id: 3
},
suid: {
type: "string",
id: 3
id: 4
},
slv: {
type: "int32",
id: 4
id: 5
},
ruid: {
type: "string",
id: 5
id: 6
},
channelId: {
type: "int32",
id: 6
id: 7
},
unionId: {
type: "string",
id: 7
id: 8
},
stag: {
type: "string",
id: 8
id: 9
},
avatar: {
type: "string",
id: 9
id: 10
},
uname: {
type: "string",
id: 10
id: 11
},
content: {
type: "string",
id: 11
id: 12
},
ctime: {
type: "int64",
id: 12
id: 13
},
appendInt: {
type: "int64",
id: 14
},
appendStr: {
type: "string",
id: 15
},
appendBool: {
type: "string",
id: 16
}
}
},
@ -2457,7 +2479,20 @@ var $root = ($protobuf.roots["default"] || ($protobuf.roots["default"] = new $pr
}
},
MoonfantasyTriggerReq: {
fields: {}
fields: {
avatar: {
type: "string",
id: 1
},
uname: {
type: "string",
id: 2
},
ulv: {
type: "int32",
id: 3
}
}
},
MoonfantasyTriggerResp: {
fields: {

View File

@ -2,25 +2,34 @@ syntax = "proto3";
option go_package = ".;pb";
enum ChatChannel {
World = 0; //
Union = 1; //
Private = 2; //
CrossServer = 3; //
System = 4; //
World = 0; //
Union = 1; //
Private = 2; //
CrossServer = 3; //
System = 4; //
}
//
enum ChatType {
Text = 0; //
Moonfantasy = 1; //
}
message DBChat {
string id =1; //id
ChatChannel channel = 2; //
string suid =3; //id
int32 slv = 4; //
string ruid = 5; //id channel == Private
int32 channelId = 6; // Id
string unionId = 7; //id
string stag = 8; //id
string avatar = 9; //
string uname = 10; //
string content = 11; //
int64 ctime = 12; //
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; // Id
string unionId = 8; //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"`)
}

View File

@ -3,41 +3,51 @@ option go_package = ".;pb";
import "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 {
int32 channelId = 1;
bool isSucc = 2;
int32 channelId = 1;
bool isSucc = 2;
}
//
message ChatGetListReq {
ChatChannel channel = 1; //
int32 channelId = 2; //id
ChatChannel channel = 1; //
int32 channelId = 2; //id
}
//
message ChatGetListResp { repeated DBChat chats = 1; }
message ChatGetListResp {
repeated DBChat chats = 1;
}
//
message ChatSendReq {
string avatar = 1; //
string uname = 2; //
int32 ulv = 3; //
ChatChannel channel = 4; //
string targetId = 5; //id
string content = 6; //
string avatar = 1; //
string uname = 2; //
int32 ulv = 3; //
ChatChannel channel = 4; //
string targetId = 5; //id
string content = 6; //
}
//
message ChatSendResp {
bool issucc = 1; //
bool issucc = 1; //
}

View File

@ -2,7 +2,11 @@ syntax = "proto3";
option go_package = ".;pb";
///
message MoonfantasyTriggerReq {}
message MoonfantasyTriggerReq {
string avatar = 1; //
string uname = 2; //
int32 ulv = 3; //
}
///
message MoonfantasyTriggerResp {