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
846 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;
}
message MqRewardPool {
int64 welfarePool = 1; // 福利池,与战局无关
int64 battleId = 2; // 战局ID
int64 initReward = 3; // 初始奖池
int64 giftReward = 4; // 礼物奖池
int64 battleReward = 5; // 战斗奖池
int64 otherReward = 6; // 其它奖池
int64 allRewards = 10; // 所有奖池
}