go_dreamfactory/pb/proto/chat/chat_db.proto
2022-07-19 18:09:45 +08:00

24 lines
784 B
Protocol Buffer

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 areaId = 5; //跨服频道Id
string unionId = 6; //工会id
int32 headid = 7; //用户头像
string uname = 8; //用户名
string content = 9; //内容
int64 ctime = 10; //创建时间
}