You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

43 lines
716 B
Protocol Buffer

syntax = "proto3";
package pb;
option go_package = "/pbMq";
enum Platform {
bilibili = 0; // B站
huya = 1; // 虎牙
douyu = 2; // 斗鱼
douyin = 3; // 抖音
// 更多以后再说
}
message MqDanmaku {
string platform = 1;
int64 liveRoomId = 2;
int64 uid = 3;
string uname = 4;
string content = 5;
int64 sendTime = 6;
}
message MqGift {
string platform = 1;
int64 liveRoomId = 2;
int64 uid = 3;
string uname = 4;
int64 giftId = 5;
int64 num = 6;
string giftName = 7;
int64 totalCoin = 8;
int64 sendTime = 9;
}
// MqUserInfoUpdate 用户信息更新
message MqUserInfoUpdate {
int64 userId = 1; // 用户ID
}
// MqRankUpdate 排行榜更新
message MqRankUpdate {
}