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.
33 lines
526 B
Protocol Buffer
33 lines
526 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 price = 8;
|
|
bool isPaid = 9;
|
|
} |