上传页面工具代码
This commit is contained in:
parent
b4007d4b97
commit
7730929c47
@ -17,6 +17,12 @@ var $root = ($protobuf.roots["default"] || ($protobuf.roots["default"] = new $pr
|
|||||||
System: 4
|
System: 4
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
ChatType: {
|
||||||
|
values: {
|
||||||
|
Text: 0,
|
||||||
|
Moonfantasy: 1
|
||||||
|
}
|
||||||
|
},
|
||||||
DBChat: {
|
DBChat: {
|
||||||
fields: {
|
fields: {
|
||||||
id: {
|
id: {
|
||||||
@ -27,45 +33,61 @@ var $root = ($protobuf.roots["default"] || ($protobuf.roots["default"] = new $pr
|
|||||||
type: "ChatChannel",
|
type: "ChatChannel",
|
||||||
id: 2
|
id: 2
|
||||||
},
|
},
|
||||||
|
ctype: {
|
||||||
|
type: "ChatType",
|
||||||
|
id: 3
|
||||||
|
},
|
||||||
suid: {
|
suid: {
|
||||||
type: "string",
|
type: "string",
|
||||||
id: 3
|
id: 4
|
||||||
},
|
},
|
||||||
slv: {
|
slv: {
|
||||||
type: "int32",
|
type: "int32",
|
||||||
id: 4
|
id: 5
|
||||||
},
|
},
|
||||||
ruid: {
|
ruid: {
|
||||||
type: "string",
|
type: "string",
|
||||||
id: 5
|
id: 6
|
||||||
},
|
},
|
||||||
channelId: {
|
channelId: {
|
||||||
type: "int32",
|
type: "int32",
|
||||||
id: 6
|
id: 7
|
||||||
},
|
},
|
||||||
unionId: {
|
unionId: {
|
||||||
type: "string",
|
type: "string",
|
||||||
id: 7
|
id: 8
|
||||||
},
|
},
|
||||||
stag: {
|
stag: {
|
||||||
type: "string",
|
type: "string",
|
||||||
id: 8
|
id: 9
|
||||||
},
|
},
|
||||||
avatar: {
|
avatar: {
|
||||||
type: "string",
|
type: "string",
|
||||||
id: 9
|
id: 10
|
||||||
},
|
},
|
||||||
uname: {
|
uname: {
|
||||||
type: "string",
|
type: "string",
|
||||||
id: 10
|
id: 11
|
||||||
},
|
},
|
||||||
content: {
|
content: {
|
||||||
type: "string",
|
type: "string",
|
||||||
id: 11
|
id: 12
|
||||||
},
|
},
|
||||||
ctime: {
|
ctime: {
|
||||||
type: "int64",
|
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: {
|
MoonfantasyTriggerReq: {
|
||||||
fields: {}
|
fields: {
|
||||||
|
avatar: {
|
||||||
|
type: "string",
|
||||||
|
id: 1
|
||||||
|
},
|
||||||
|
uname: {
|
||||||
|
type: "string",
|
||||||
|
id: 2
|
||||||
|
},
|
||||||
|
ulv: {
|
||||||
|
type: "int32",
|
||||||
|
id: 3
|
||||||
|
}
|
||||||
|
}
|
||||||
},
|
},
|
||||||
MoonfantasyTriggerResp: {
|
MoonfantasyTriggerResp: {
|
||||||
fields: {
|
fields: {
|
||||||
|
@ -9,18 +9,27 @@ enum ChatChannel {
|
|||||||
System = 4; //系统频道
|
System = 4; //系统频道
|
||||||
}
|
}
|
||||||
|
|
||||||
|
//聊天消息类型
|
||||||
|
enum ChatType {
|
||||||
|
Text = 0; //文泵聊天消息
|
||||||
|
Moonfantasy = 1; //月子秘境消息
|
||||||
|
}
|
||||||
|
|
||||||
message DBChat {
|
message DBChat {
|
||||||
string id =1; //主键id
|
string id = 1; //@go_tags(`bson:"_id"`) ID
|
||||||
ChatChannel channel = 2; //频道
|
ChatChannel channel = 2; //频道
|
||||||
string suid =3; //发送用户id
|
ChatType ctype = 3; //消息类型
|
||||||
int32 slv = 4; //发送者等级
|
string suid = 4; //发送用户id
|
||||||
string ruid = 5; //接收用户id channel == Private 有效
|
int32 slv = 5; //发送者等级
|
||||||
int32 channelId = 6; //跨服频道 频道Id
|
string ruid = 6; //接收用户id channel == Private 有效
|
||||||
string unionId = 7; //工会id
|
int32 channelId = 7; //跨服频道 频道Id
|
||||||
string stag = 8; //区服id
|
string unionId = 8; //工会id
|
||||||
string avatar = 9; //用户头像
|
string stag = 9; //区服id
|
||||||
string uname = 10; //用户名
|
string avatar = 10; //用户头像
|
||||||
string content = 11; //内容
|
string uname = 11; //用户名
|
||||||
int64 ctime = 12; //创建时间
|
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"`) 聊天附加数据
|
||||||
}
|
}
|
@ -3,15 +3,23 @@ option go_package = ".;pb";
|
|||||||
import "chat_db.proto";
|
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 {
|
message ChatChanageChannelResp {
|
||||||
int32 channelId = 1;
|
int32 channelId = 1;
|
||||||
@ -25,7 +33,9 @@ message ChatGetListReq {
|
|||||||
}
|
}
|
||||||
|
|
||||||
//请求聊天消息 回应
|
//请求聊天消息 回应
|
||||||
message ChatGetListResp { repeated DBChat chats = 1; }
|
message ChatGetListResp {
|
||||||
|
repeated DBChat chats = 1;
|
||||||
|
}
|
||||||
|
|
||||||
//消息发送请求
|
//消息发送请求
|
||||||
message ChatSendReq {
|
message ChatSendReq {
|
||||||
|
@ -2,7 +2,11 @@ syntax = "proto3";
|
|||||||
option go_package = ".;pb";
|
option go_package = ".;pb";
|
||||||
|
|
||||||
///触发秘境
|
///触发秘境
|
||||||
message MoonfantasyTriggerReq {}
|
message MoonfantasyTriggerReq {
|
||||||
|
string avatar = 1; //用户头像
|
||||||
|
string uname = 2; //用户名
|
||||||
|
int32 ulv = 3; //用户等级
|
||||||
|
}
|
||||||
|
|
||||||
///触发秘境
|
///触发秘境
|
||||||
message MoonfantasyTriggerResp {
|
message MoonfantasyTriggerResp {
|
||||||
|
Loading…
Reference in New Issue
Block a user