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.
|
|
|
syntax = "proto3";
|
|
|
|
|
|
|
|
package pb;
|
|
|
|
|
|
|
|
import "vars/vars.proto";
|
|
|
|
|
|
|
|
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;
|
|
|
|
}
|
|
|
|
|
|
|
|
message MqRewardPool {
|
|
|
|
int64 welfarePool = 1; // 福利池,与战局无关
|
|
|
|
int64 battleId = 2; // 战局ID
|
|
|
|
int64 initReward = 3; // 初始奖池
|
|
|
|
int64 giftReward = 4; // 礼物奖池
|
|
|
|
int64 battleReward = 5; // 战斗奖池
|
|
|
|
int64 otherReward = 6; // 其它奖池
|
|
|
|
int64 allRewards = 10; // 所有奖池
|
|
|
|
}
|
|
|
|
|
|
|
|
// 用户金币变动通知
|
|
|
|
message MqUserCoinChanged {
|
|
|
|
int64 userId = 1;
|
|
|
|
string username = 2;
|
|
|
|
string avatar = 3;
|
|
|
|
|
|
|
|
pb.vars.UserCoinChangedReason reason = 4; // 变动原因
|
|
|
|
|
|
|
|
int64 change = 10; // 变动量
|
|
|
|
int64 current = 11; // 当前量
|
|
|
|
}
|