go_dreamfactory/pb/proto/chat/chat_db.proto
2022-07-20 14:01:59 +08:00

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