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.
82 lines
2.2 KiB
Protocol Buffer
82 lines
2.2 KiB
Protocol Buffer
syntax = "proto3";
|
|
|
|
package pb;
|
|
|
|
import "vars/vars.proto";
|
|
|
|
option go_package = "/pbMq";
|
|
|
|
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; // 粉丝牌子等级
|
|
}
|
|
|
|
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; // 当前量
|
|
} |