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.
65 lines
1.7 KiB
Protocol Buffer
65 lines
1.7 KiB
Protocol Buffer
syntax = "proto3";
|
|
|
|
package pb;
|
|
|
|
option go_package = "/pbMq";
|
|
|
|
enum Platform {
|
|
bilibili = 0; // B站
|
|
huya = 1; // 虎牙
|
|
douyu = 2; // 斗鱼
|
|
douyin = 3; // 抖音
|
|
}
|
|
|
|
message MqNobilityBuy {
|
|
string platform = 1; // 平台
|
|
int64 liveRoomId = 2; // 直播间ID
|
|
int64 uid = 3; // 用户ID
|
|
string uname = 4; // 用户名
|
|
string avatar = 5; // 头像
|
|
string msgId = 6; // 消息唯一ID
|
|
int64 nobilityLevel = 7; // 贵族等级
|
|
int64 price = 8; // 平台price
|
|
int64 startTime = 9; // 开始时间
|
|
int64 endTime = 10; // 过期时间
|
|
|
|
bool fansMedalWearingStatus = 11; // 牌子佩戴状态
|
|
string fansMedalName = 12; // 粉丝牌子名
|
|
int64 fansMedalLevel = 13; // 粉丝牌子等级
|
|
}
|
|
|
|
message MqDanmaku {
|
|
string platform = 1; // 平台
|
|
int64 liveRoomId = 2; // 直播间ID
|
|
int64 uid = 3; // 用户ID
|
|
string uname = 4; // 用户名
|
|
string avatar = 5; // 头像
|
|
string msg = 6; // 内容
|
|
string msgId = 7; // 消息唯一ID
|
|
int64 timestamp = 8; // 发送时间
|
|
int64 nobilityLevel = 9; // 贵族等级
|
|
bool fansMedalWearingStatus = 10; // 牌子佩戴状态
|
|
string fansMedalName = 11; // 粉丝牌子名
|
|
int64 fansMedalLevel = 12; // 粉丝牌子等级
|
|
}
|
|
|
|
message MqGift {
|
|
string platform = 1;
|
|
int64 liveRoomId = 2;
|
|
int64 uid = 3;
|
|
string uname = 4;
|
|
string avatar = 5; // 头像
|
|
|
|
int64 giftId = 6;
|
|
string giftName = 7;
|
|
int64 giftNum = 8;
|
|
int64 price = 9;
|
|
bool isPaid = 10;
|
|
|
|
string msgId = 11; // 消息唯一ID
|
|
int64 timestamp = 12; // 收礼时间
|
|
int64 nobilityLevel = 13; // 贵族等级
|
|
bool fansMedalWearingStatus = 14; // 牌子佩戴状态
|
|
string fansMedalName = 15; // 粉丝牌子名
|
|
int64 fansMedalLevel = 16; // 粉丝牌子等级
|
|
} |