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.
47 lines
783 B
Protocol Buffer
47 lines
783 B
Protocol Buffer
syntax = "proto3";
|
|
|
|
package pb;
|
|
|
|
option go_package = "/pbMq";
|
|
|
|
enum Platform {
|
|
bilibili = 0; // B站
|
|
huya = 1; // 虎牙
|
|
douyu = 2; // 斗鱼
|
|
douyin = 3; // 抖音
|
|
}
|
|
|
|
message MqGuardBuy {
|
|
string platform = 1;
|
|
int64 liveRoomId = 2;
|
|
int64 uid = 3;
|
|
string uname = 4;
|
|
int32 guardLevel = 5;
|
|
int32 num = 6;
|
|
int64 price = 7;
|
|
int64 giftId = 8;
|
|
string giftName = 9;
|
|
int64 startTime = 10;
|
|
int64 endTime = 11;
|
|
}
|
|
|
|
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;
|
|
} |