syntax = "proto3"; package pb.common; option go_package = "dcg/game/pb/common;pbCommon"; // PbUser 用户 message PbUser { int64 uId = 1; // 用户id string uname = 2; // 用户名 string avatar = 3; // 头像 int32 nobilityLevel = 4; // 贵族等级 int64 integral = 5; // 用户当前积分 } // UserIntegralChanged 用户积分变更 push -> user.integral message UserIntegralChanged { pb.common.PbUser user = 1; int64 change = 2; // 变更量 int64 integral = 3; // 现有量 } // DanmakuMsg 普通弹幕消息 push -> live.danmaku message DanmakuMsg { pb.common.PbUser user = 1; string content = 2; } // 赠送礼物 push -> live.gift message GiftMsg{ pb.common.PbUser user = 1; int64 giftId = 2; int64 num = 3; string giftName = 4; int64 price = 5; // 单价 bool isPaid = 6; // 是否收费礼物 }