|
|
// Code generated by protoc-gen-go. DO NOT EDIT.
|
|
|
// versions:
|
|
|
// protoc-gen-go v1.27.1
|
|
|
// protoc v3.19.4
|
|
|
// source: common/common.proto
|
|
|
|
|
|
package pbCommon
|
|
|
|
|
|
import (
|
|
|
vars "dcg/game/pb/vars"
|
|
|
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
|
|
|
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
|
|
|
reflect "reflect"
|
|
|
sync "sync"
|
|
|
)
|
|
|
|
|
|
const (
|
|
|
// Verify that this generated code is sufficiently up-to-date.
|
|
|
_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
|
|
|
// Verify that runtime/protoimpl is sufficiently up-to-date.
|
|
|
_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
|
|
|
)
|
|
|
|
|
|
// PbUser 用户
|
|
|
type PbUser struct {
|
|
|
state protoimpl.MessageState
|
|
|
sizeCache protoimpl.SizeCache
|
|
|
unknownFields protoimpl.UnknownFields
|
|
|
|
|
|
UserId int64 `protobuf:"varint,1,opt,name=userId,proto3" json:"userId,omitempty"` // 用户id
|
|
|
Username string `protobuf:"bytes,2,opt,name=username,proto3" json:"username,omitempty"` // 用户名
|
|
|
Avatar string `protobuf:"bytes,3,opt,name=avatar,proto3" json:"avatar,omitempty"` // 头像
|
|
|
Platform string `protobuf:"bytes,4,opt,name=platform,proto3" json:"platform,omitempty"` // 平台
|
|
|
FansMedalWearingStatus bool `protobuf:"varint,5,opt,name=fansMedalWearingStatus,proto3" json:"fansMedalWearingStatus,omitempty"` // 牌子佩戴状态
|
|
|
FansMedalName string `protobuf:"bytes,6,opt,name=fansMedalName,proto3" json:"fansMedalName,omitempty"` // 粉丝牌子名
|
|
|
FansMedalLevel int64 `protobuf:"varint,7,opt,name=fansMedalLevel,proto3" json:"fansMedalLevel,omitempty"` // 粉丝牌子等级
|
|
|
}
|
|
|
|
|
|
func (x *PbUser) Reset() {
|
|
|
*x = PbUser{}
|
|
|
if protoimpl.UnsafeEnabled {
|
|
|
mi := &file_common_common_proto_msgTypes[0]
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
|
ms.StoreMessageInfo(mi)
|
|
|
}
|
|
|
}
|
|
|
|
|
|
func (x *PbUser) String() string {
|
|
|
return protoimpl.X.MessageStringOf(x)
|
|
|
}
|
|
|
|
|
|
func (*PbUser) ProtoMessage() {}
|
|
|
|
|
|
func (x *PbUser) ProtoReflect() protoreflect.Message {
|
|
|
mi := &file_common_common_proto_msgTypes[0]
|
|
|
if protoimpl.UnsafeEnabled && x != nil {
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
|
if ms.LoadMessageInfo() == nil {
|
|
|
ms.StoreMessageInfo(mi)
|
|
|
}
|
|
|
return ms
|
|
|
}
|
|
|
return mi.MessageOf(x)
|
|
|
}
|
|
|
|
|
|
// Deprecated: Use PbUser.ProtoReflect.Descriptor instead.
|
|
|
func (*PbUser) Descriptor() ([]byte, []int) {
|
|
|
return file_common_common_proto_rawDescGZIP(), []int{0}
|
|
|
}
|
|
|
|
|
|
func (x *PbUser) GetUserId() int64 {
|
|
|
if x != nil {
|
|
|
return x.UserId
|
|
|
}
|
|
|
return 0
|
|
|
}
|
|
|
|
|
|
func (x *PbUser) GetUsername() string {
|
|
|
if x != nil {
|
|
|
return x.Username
|
|
|
}
|
|
|
return ""
|
|
|
}
|
|
|
|
|
|
func (x *PbUser) GetAvatar() string {
|
|
|
if x != nil {
|
|
|
return x.Avatar
|
|
|
}
|
|
|
return ""
|
|
|
}
|
|
|
|
|
|
func (x *PbUser) GetPlatform() string {
|
|
|
if x != nil {
|
|
|
return x.Platform
|
|
|
}
|
|
|
return ""
|
|
|
}
|
|
|
|
|
|
func (x *PbUser) GetFansMedalWearingStatus() bool {
|
|
|
if x != nil {
|
|
|
return x.FansMedalWearingStatus
|
|
|
}
|
|
|
return false
|
|
|
}
|
|
|
|
|
|
func (x *PbUser) GetFansMedalName() string {
|
|
|
if x != nil {
|
|
|
return x.FansMedalName
|
|
|
}
|
|
|
return ""
|
|
|
}
|
|
|
|
|
|
func (x *PbUser) GetFansMedalLevel() int64 {
|
|
|
if x != nil {
|
|
|
return x.FansMedalLevel
|
|
|
}
|
|
|
return 0
|
|
|
}
|
|
|
|
|
|
// GameStatusReq 游戏状态控制 game.status
|
|
|
type GameStatusReq struct {
|
|
|
state protoimpl.MessageState
|
|
|
sizeCache protoimpl.SizeCache
|
|
|
unknownFields protoimpl.UnknownFields
|
|
|
|
|
|
Status int32 `protobuf:"varint,1,opt,name=status,proto3" json:"status,omitempty"` // 1开始新战局 2结束战局
|
|
|
Timestamp int64 `protobuf:"varint,2,opt,name=timestamp,proto3" json:"timestamp,omitempty"` // 时间戳
|
|
|
}
|
|
|
|
|
|
func (x *GameStatusReq) Reset() {
|
|
|
*x = GameStatusReq{}
|
|
|
if protoimpl.UnsafeEnabled {
|
|
|
mi := &file_common_common_proto_msgTypes[1]
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
|
ms.StoreMessageInfo(mi)
|
|
|
}
|
|
|
}
|
|
|
|
|
|
func (x *GameStatusReq) String() string {
|
|
|
return protoimpl.X.MessageStringOf(x)
|
|
|
}
|
|
|
|
|
|
func (*GameStatusReq) ProtoMessage() {}
|
|
|
|
|
|
func (x *GameStatusReq) ProtoReflect() protoreflect.Message {
|
|
|
mi := &file_common_common_proto_msgTypes[1]
|
|
|
if protoimpl.UnsafeEnabled && x != nil {
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
|
if ms.LoadMessageInfo() == nil {
|
|
|
ms.StoreMessageInfo(mi)
|
|
|
}
|
|
|
return ms
|
|
|
}
|
|
|
return mi.MessageOf(x)
|
|
|
}
|
|
|
|
|
|
// Deprecated: Use GameStatusReq.ProtoReflect.Descriptor instead.
|
|
|
func (*GameStatusReq) Descriptor() ([]byte, []int) {
|
|
|
return file_common_common_proto_rawDescGZIP(), []int{1}
|
|
|
}
|
|
|
|
|
|
func (x *GameStatusReq) GetStatus() int32 {
|
|
|
if x != nil {
|
|
|
return x.Status
|
|
|
}
|
|
|
return 0
|
|
|
}
|
|
|
|
|
|
func (x *GameStatusReq) GetTimestamp() int64 {
|
|
|
if x != nil {
|
|
|
return x.Timestamp
|
|
|
}
|
|
|
return 0
|
|
|
}
|
|
|
|
|
|
// GameStatusResp 游戏状态控制返回值
|
|
|
type GameStatusResp struct {
|
|
|
state protoimpl.MessageState
|
|
|
sizeCache protoimpl.SizeCache
|
|
|
unknownFields protoimpl.UnknownFields
|
|
|
|
|
|
Success bool `protobuf:"varint,1,opt,name=success,proto3" json:"success,omitempty"`
|
|
|
BattleId int64 `protobuf:"varint,2,opt,name=battleId,proto3" json:"battleId,omitempty"` // 战局ID | 上一场战局ID(结束时)
|
|
|
Timestamp int64 `protobuf:"varint,3,opt,name=timestamp,proto3" json:"timestamp,omitempty"` // 时间戳
|
|
|
}
|
|
|
|
|
|
func (x *GameStatusResp) Reset() {
|
|
|
*x = GameStatusResp{}
|
|
|
if protoimpl.UnsafeEnabled {
|
|
|
mi := &file_common_common_proto_msgTypes[2]
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
|
ms.StoreMessageInfo(mi)
|
|
|
}
|
|
|
}
|
|
|
|
|
|
func (x *GameStatusResp) String() string {
|
|
|
return protoimpl.X.MessageStringOf(x)
|
|
|
}
|
|
|
|
|
|
func (*GameStatusResp) ProtoMessage() {}
|
|
|
|
|
|
func (x *GameStatusResp) ProtoReflect() protoreflect.Message {
|
|
|
mi := &file_common_common_proto_msgTypes[2]
|
|
|
if protoimpl.UnsafeEnabled && x != nil {
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
|
if ms.LoadMessageInfo() == nil {
|
|
|
ms.StoreMessageInfo(mi)
|
|
|
}
|
|
|
return ms
|
|
|
}
|
|
|
return mi.MessageOf(x)
|
|
|
}
|
|
|
|
|
|
// Deprecated: Use GameStatusResp.ProtoReflect.Descriptor instead.
|
|
|
func (*GameStatusResp) Descriptor() ([]byte, []int) {
|
|
|
return file_common_common_proto_rawDescGZIP(), []int{2}
|
|
|
}
|
|
|
|
|
|
func (x *GameStatusResp) GetSuccess() bool {
|
|
|
if x != nil {
|
|
|
return x.Success
|
|
|
}
|
|
|
return false
|
|
|
}
|
|
|
|
|
|
func (x *GameStatusResp) GetBattleId() int64 {
|
|
|
if x != nil {
|
|
|
return x.BattleId
|
|
|
}
|
|
|
return 0
|
|
|
}
|
|
|
|
|
|
func (x *GameStatusResp) GetTimestamp() int64 {
|
|
|
if x != nil {
|
|
|
return x.Timestamp
|
|
|
}
|
|
|
return 0
|
|
|
}
|
|
|
|
|
|
// UserCoinChangedMsg 用户弹币变更通知 push -> user.coin.change
|
|
|
type UserCoinChangedMsg struct {
|
|
|
state protoimpl.MessageState
|
|
|
sizeCache protoimpl.SizeCache
|
|
|
unknownFields protoimpl.UnknownFields
|
|
|
|
|
|
User *PbUser `protobuf:"bytes,1,opt,name=user,proto3" json:"user,omitempty"`
|
|
|
Reason vars.UserCoinChangedReason `protobuf:"varint,2,opt,name=reason,proto3,enum=pb.vars.UserCoinChangedReason" json:"reason,omitempty"` // 变动原因
|
|
|
Change int64 `protobuf:"varint,10,opt,name=change,proto3" json:"change,omitempty"` // 变动量
|
|
|
Current int64 `protobuf:"varint,11,opt,name=current,proto3" json:"current,omitempty"` // 当前量
|
|
|
}
|
|
|
|
|
|
func (x *UserCoinChangedMsg) Reset() {
|
|
|
*x = UserCoinChangedMsg{}
|
|
|
if protoimpl.UnsafeEnabled {
|
|
|
mi := &file_common_common_proto_msgTypes[3]
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
|
ms.StoreMessageInfo(mi)
|
|
|
}
|
|
|
}
|
|
|
|
|
|
func (x *UserCoinChangedMsg) String() string {
|
|
|
return protoimpl.X.MessageStringOf(x)
|
|
|
}
|
|
|
|
|
|
func (*UserCoinChangedMsg) ProtoMessage() {}
|
|
|
|
|
|
func (x *UserCoinChangedMsg) ProtoReflect() protoreflect.Message {
|
|
|
mi := &file_common_common_proto_msgTypes[3]
|
|
|
if protoimpl.UnsafeEnabled && x != nil {
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
|
if ms.LoadMessageInfo() == nil {
|
|
|
ms.StoreMessageInfo(mi)
|
|
|
}
|
|
|
return ms
|
|
|
}
|
|
|
return mi.MessageOf(x)
|
|
|
}
|
|
|
|
|
|
// Deprecated: Use UserCoinChangedMsg.ProtoReflect.Descriptor instead.
|
|
|
func (*UserCoinChangedMsg) Descriptor() ([]byte, []int) {
|
|
|
return file_common_common_proto_rawDescGZIP(), []int{3}
|
|
|
}
|
|
|
|
|
|
func (x *UserCoinChangedMsg) GetUser() *PbUser {
|
|
|
if x != nil {
|
|
|
return x.User
|
|
|
}
|
|
|
return nil
|
|
|
}
|
|
|
|
|
|
func (x *UserCoinChangedMsg) GetReason() vars.UserCoinChangedReason {
|
|
|
if x != nil {
|
|
|
return x.Reason
|
|
|
}
|
|
|
return vars.UserCoinChangedReason(0)
|
|
|
}
|
|
|
|
|
|
func (x *UserCoinChangedMsg) GetChange() int64 {
|
|
|
if x != nil {
|
|
|
return x.Change
|
|
|
}
|
|
|
return 0
|
|
|
}
|
|
|
|
|
|
func (x *UserCoinChangedMsg) GetCurrent() int64 {
|
|
|
if x != nil {
|
|
|
return x.Current
|
|
|
}
|
|
|
return 0
|
|
|
}
|
|
|
|
|
|
// ChangeUserCoinReq 更新用户弹币 request -> user.coin.change
|
|
|
type ChangeUserCoinReq struct {
|
|
|
state protoimpl.MessageState
|
|
|
sizeCache protoimpl.SizeCache
|
|
|
unknownFields protoimpl.UnknownFields
|
|
|
|
|
|
UserId int64 `protobuf:"varint,1,opt,name=userId,proto3" json:"userId,omitempty"` // 用户ID
|
|
|
Change int64 `protobuf:"varint,2,opt,name=change,proto3" json:"change,omitempty"` // 更新量,负数为消耗,正数为增加
|
|
|
Reason vars.UserCoinChangedReason `protobuf:"varint,3,opt,name=reason,proto3,enum=pb.vars.UserCoinChangedReason" json:"reason,omitempty"` // 变更原因
|
|
|
}
|
|
|
|
|
|
func (x *ChangeUserCoinReq) Reset() {
|
|
|
*x = ChangeUserCoinReq{}
|
|
|
if protoimpl.UnsafeEnabled {
|
|
|
mi := &file_common_common_proto_msgTypes[4]
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
|
ms.StoreMessageInfo(mi)
|
|
|
}
|
|
|
}
|
|
|
|
|
|
func (x *ChangeUserCoinReq) String() string {
|
|
|
return protoimpl.X.MessageStringOf(x)
|
|
|
}
|
|
|
|
|
|
func (*ChangeUserCoinReq) ProtoMessage() {}
|
|
|
|
|
|
func (x *ChangeUserCoinReq) ProtoReflect() protoreflect.Message {
|
|
|
mi := &file_common_common_proto_msgTypes[4]
|
|
|
if protoimpl.UnsafeEnabled && x != nil {
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
|
if ms.LoadMessageInfo() == nil {
|
|
|
ms.StoreMessageInfo(mi)
|
|
|
}
|
|
|
return ms
|
|
|
}
|
|
|
return mi.MessageOf(x)
|
|
|
}
|
|
|
|
|
|
// Deprecated: Use ChangeUserCoinReq.ProtoReflect.Descriptor instead.
|
|
|
func (*ChangeUserCoinReq) Descriptor() ([]byte, []int) {
|
|
|
return file_common_common_proto_rawDescGZIP(), []int{4}
|
|
|
}
|
|
|
|
|
|
func (x *ChangeUserCoinReq) GetUserId() int64 {
|
|
|
if x != nil {
|
|
|
return x.UserId
|
|
|
}
|
|
|
return 0
|
|
|
}
|
|
|
|
|
|
func (x *ChangeUserCoinReq) GetChange() int64 {
|
|
|
if x != nil {
|
|
|
return x.Change
|
|
|
}
|
|
|
return 0
|
|
|
}
|
|
|
|
|
|
func (x *ChangeUserCoinReq) GetReason() vars.UserCoinChangedReason {
|
|
|
if x != nil {
|
|
|
return x.Reason
|
|
|
}
|
|
|
return vars.UserCoinChangedReason(0)
|
|
|
}
|
|
|
|
|
|
// ChangeUserCoinResp 用户金币更新返回 response -> user.coin.change
|
|
|
type ChangeUserCoinResp struct {
|
|
|
state protoimpl.MessageState
|
|
|
sizeCache protoimpl.SizeCache
|
|
|
unknownFields protoimpl.UnknownFields
|
|
|
|
|
|
Code int32 `protobuf:"varint,1,opt,name=code,proto3" json:"code,omitempty"` // code, 200表示成功,其余根据对照表
|
|
|
Msg string `protobuf:"bytes,2,opt,name=msg,proto3" json:"msg,omitempty"` // 消息
|
|
|
UserId int64 `protobuf:"varint,3,opt,name=userId,proto3" json:"userId,omitempty"` // 用户ID
|
|
|
Change int64 `protobuf:"varint,4,opt,name=change,proto3" json:"change,omitempty"` // 变更量
|
|
|
}
|
|
|
|
|
|
func (x *ChangeUserCoinResp) Reset() {
|
|
|
*x = ChangeUserCoinResp{}
|
|
|
if protoimpl.UnsafeEnabled {
|
|
|
mi := &file_common_common_proto_msgTypes[5]
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
|
ms.StoreMessageInfo(mi)
|
|
|
}
|
|
|
}
|
|
|
|
|
|
func (x *ChangeUserCoinResp) String() string {
|
|
|
return protoimpl.X.MessageStringOf(x)
|
|
|
}
|
|
|
|
|
|
func (*ChangeUserCoinResp) ProtoMessage() {}
|
|
|
|
|
|
func (x *ChangeUserCoinResp) ProtoReflect() protoreflect.Message {
|
|
|
mi := &file_common_common_proto_msgTypes[5]
|
|
|
if protoimpl.UnsafeEnabled && x != nil {
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
|
if ms.LoadMessageInfo() == nil {
|
|
|
ms.StoreMessageInfo(mi)
|
|
|
}
|
|
|
return ms
|
|
|
}
|
|
|
return mi.MessageOf(x)
|
|
|
}
|
|
|
|
|
|
// Deprecated: Use ChangeUserCoinResp.ProtoReflect.Descriptor instead.
|
|
|
func (*ChangeUserCoinResp) Descriptor() ([]byte, []int) {
|
|
|
return file_common_common_proto_rawDescGZIP(), []int{5}
|
|
|
}
|
|
|
|
|
|
func (x *ChangeUserCoinResp) GetCode() int32 {
|
|
|
if x != nil {
|
|
|
return x.Code
|
|
|
}
|
|
|
return 0
|
|
|
}
|
|
|
|
|
|
func (x *ChangeUserCoinResp) GetMsg() string {
|
|
|
if x != nil {
|
|
|
return x.Msg
|
|
|
}
|
|
|
return ""
|
|
|
}
|
|
|
|
|
|
func (x *ChangeUserCoinResp) GetUserId() int64 {
|
|
|
if x != nil {
|
|
|
return x.UserId
|
|
|
}
|
|
|
return 0
|
|
|
}
|
|
|
|
|
|
func (x *ChangeUserCoinResp) GetChange() int64 {
|
|
|
if x != nil {
|
|
|
return x.Change
|
|
|
}
|
|
|
return 0
|
|
|
}
|
|
|
|
|
|
// CheckInMsg 每日打卡 push -> user.checkIn
|
|
|
type CheckInMsg struct {
|
|
|
state protoimpl.MessageState
|
|
|
sizeCache protoimpl.SizeCache
|
|
|
unknownFields protoimpl.UnknownFields
|
|
|
|
|
|
Code int32 `protobuf:"varint,1,opt,name=code,proto3" json:"code,omitempty"` // code, 200表示成功,其余根据对照表
|
|
|
Msg string `protobuf:"bytes,2,opt,name=msg,proto3" json:"msg,omitempty"` // 消息 [打卡成功,快乐玩耍吧! | 今天已打过卡了!]
|
|
|
User *PbUser `protobuf:"bytes,3,opt,name=user,proto3" json:"user,omitempty"`
|
|
|
CoinChange int64 `protobuf:"varint,4,opt,name=coinChange,proto3" json:"coinChange,omitempty"` // 弹币变动
|
|
|
CurrentCoin int64 `protobuf:"varint,5,opt,name=currentCoin,proto3" json:"currentCoin,omitempty"` // 当前金币
|
|
|
IsCritical bool `protobuf:"varint,10,opt,name=isCritical,proto3" json:"isCritical,omitempty"` // 是否欧皇附体
|
|
|
}
|
|
|
|
|
|
func (x *CheckInMsg) Reset() {
|
|
|
*x = CheckInMsg{}
|
|
|
if protoimpl.UnsafeEnabled {
|
|
|
mi := &file_common_common_proto_msgTypes[6]
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
|
ms.StoreMessageInfo(mi)
|
|
|
}
|
|
|
}
|
|
|
|
|
|
func (x *CheckInMsg) String() string {
|
|
|
return protoimpl.X.MessageStringOf(x)
|
|
|
}
|
|
|
|
|
|
func (*CheckInMsg) ProtoMessage() {}
|
|
|
|
|
|
func (x *CheckInMsg) ProtoReflect() protoreflect.Message {
|
|
|
mi := &file_common_common_proto_msgTypes[6]
|
|
|
if protoimpl.UnsafeEnabled && x != nil {
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
|
if ms.LoadMessageInfo() == nil {
|
|
|
ms.StoreMessageInfo(mi)
|
|
|
}
|
|
|
return ms
|
|
|
}
|
|
|
return mi.MessageOf(x)
|
|
|
}
|
|
|
|
|
|
// Deprecated: Use CheckInMsg.ProtoReflect.Descriptor instead.
|
|
|
func (*CheckInMsg) Descriptor() ([]byte, []int) {
|
|
|
return file_common_common_proto_rawDescGZIP(), []int{6}
|
|
|
}
|
|
|
|
|
|
func (x *CheckInMsg) GetCode() int32 {
|
|
|
if x != nil {
|
|
|
return x.Code
|
|
|
}
|
|
|
return 0
|
|
|
}
|
|
|
|
|
|
func (x *CheckInMsg) GetMsg() string {
|
|
|
if x != nil {
|
|
|
return x.Msg
|
|
|
}
|
|
|
return ""
|
|
|
}
|
|
|
|
|
|
func (x *CheckInMsg) GetUser() *PbUser {
|
|
|
if x != nil {
|
|
|
return x.User
|
|
|
}
|
|
|
return nil
|
|
|
}
|
|
|
|
|
|
func (x *CheckInMsg) GetCoinChange() int64 {
|
|
|
if x != nil {
|
|
|
return x.CoinChange
|
|
|
}
|
|
|
return 0
|
|
|
}
|
|
|
|
|
|
func (x *CheckInMsg) GetCurrentCoin() int64 {
|
|
|
if x != nil {
|
|
|
return x.CurrentCoin
|
|
|
}
|
|
|
return 0
|
|
|
}
|
|
|
|
|
|
func (x *CheckInMsg) GetIsCritical() bool {
|
|
|
if x != nil {
|
|
|
return x.IsCritical
|
|
|
}
|
|
|
return false
|
|
|
}
|
|
|
|
|
|
// GiftPackMsg 领取礼包消息 push -> user.giftPack 命令(新手礼包|福利|低保|其它礼包)
|
|
|
type GiftPackMsg struct {
|
|
|
state protoimpl.MessageState
|
|
|
sizeCache protoimpl.SizeCache
|
|
|
unknownFields protoimpl.UnknownFields
|
|
|
|
|
|
Code int32 `protobuf:"varint,1,opt,name=code,proto3" json:"code,omitempty"` // code, 200表示成功,其余根据对照表
|
|
|
Msg string `protobuf:"bytes,2,opt,name=msg,proto3" json:"msg,omitempty"` // 领取消息: [成功无msg | 已经领过礼包了xxx ]
|
|
|
User *PbUser `protobuf:"bytes,3,opt,name=user,proto3" json:"user,omitempty"`
|
|
|
Coin int64 `protobuf:"varint,4,opt,name=coin,proto3" json:"coin,omitempty"` // 领取到的金币数
|
|
|
}
|
|
|
|
|
|
func (x *GiftPackMsg) Reset() {
|
|
|
*x = GiftPackMsg{}
|
|
|
if protoimpl.UnsafeEnabled {
|
|
|
mi := &file_common_common_proto_msgTypes[7]
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
|
ms.StoreMessageInfo(mi)
|
|
|
}
|
|
|
}
|
|
|
|
|
|
func (x *GiftPackMsg) String() string {
|
|
|
return protoimpl.X.MessageStringOf(x)
|
|
|
}
|
|
|
|
|
|
func (*GiftPackMsg) ProtoMessage() {}
|
|
|
|
|
|
func (x *GiftPackMsg) ProtoReflect() protoreflect.Message {
|
|
|
mi := &file_common_common_proto_msgTypes[7]
|
|
|
if protoimpl.UnsafeEnabled && x != nil {
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
|
if ms.LoadMessageInfo() == nil {
|
|
|
ms.StoreMessageInfo(mi)
|
|
|
}
|
|
|
return ms
|
|
|
}
|
|
|
return mi.MessageOf(x)
|
|
|
}
|
|
|
|
|
|
// Deprecated: Use GiftPackMsg.ProtoReflect.Descriptor instead.
|
|
|
func (*GiftPackMsg) Descriptor() ([]byte, []int) {
|
|
|
return file_common_common_proto_rawDescGZIP(), []int{7}
|
|
|
}
|
|
|
|
|
|
func (x *GiftPackMsg) GetCode() int32 {
|
|
|
if x != nil {
|
|
|
return x.Code
|
|
|
}
|
|
|
return 0
|
|
|
}
|
|
|
|
|
|
func (x *GiftPackMsg) GetMsg() string {
|
|
|
if x != nil {
|
|
|
return x.Msg
|
|
|
}
|
|
|
return ""
|
|
|
}
|
|
|
|
|
|
func (x *GiftPackMsg) GetUser() *PbUser {
|
|
|
if x != nil {
|
|
|
return x.User
|
|
|
}
|
|
|
return nil
|
|
|
}
|
|
|
|
|
|
func (x *GiftPackMsg) GetCoin() int64 {
|
|
|
if x != nil {
|
|
|
return x.Coin
|
|
|
}
|
|
|
return 0
|
|
|
}
|
|
|
|
|
|
// UserBuyGoodsMsg 用户兑换商品消息 push -> user.buy
|
|
|
type UserBuyGoodsMsg struct {
|
|
|
state protoimpl.MessageState
|
|
|
sizeCache protoimpl.SizeCache
|
|
|
unknownFields protoimpl.UnknownFields
|
|
|
|
|
|
// 500: 兑换精英单位时发生错误,请联系UP主。
|
|
|
// 200: OK
|
|
|
Code int32 `protobuf:"varint,1,opt,name=code,proto3" json:"code,omitempty"`
|
|
|
User *PbUser `protobuf:"bytes,3,opt,name=user,proto3" json:"user,omitempty"`
|
|
|
Goods vars.Goods `protobuf:"varint,4,opt,name=goods,proto3,enum=pb.vars.Goods" json:"goods,omitempty"` // 商品类型
|
|
|
GoodsId int64 `protobuf:"varint,5,opt,name=goodsId,proto3" json:"goodsId,omitempty"` // 商品ID
|
|
|
Count int32 `protobuf:"varint,6,opt,name=count,proto3" json:"count,omitempty"` // 数量 -1表示无限数量
|
|
|
Cost int64 `protobuf:"varint,7,opt,name=cost,proto3" json:"cost,omitempty"` // 花费 0表示无花费
|
|
|
Duration int32 `protobuf:"varint,8,opt,name=duration,proto3" json:"duration,omitempty"` // 持续时长(单位:小时) -1表示无限制
|
|
|
}
|
|
|
|
|
|
func (x *UserBuyGoodsMsg) Reset() {
|
|
|
*x = UserBuyGoodsMsg{}
|
|
|
if protoimpl.UnsafeEnabled {
|
|
|
mi := &file_common_common_proto_msgTypes[8]
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
|
ms.StoreMessageInfo(mi)
|
|
|
}
|
|
|
}
|
|
|
|
|
|
func (x *UserBuyGoodsMsg) String() string {
|
|
|
return protoimpl.X.MessageStringOf(x)
|
|
|
}
|
|
|
|
|
|
func (*UserBuyGoodsMsg) ProtoMessage() {}
|
|
|
|
|
|
func (x *UserBuyGoodsMsg) ProtoReflect() protoreflect.Message {
|
|
|
mi := &file_common_common_proto_msgTypes[8]
|
|
|
if protoimpl.UnsafeEnabled && x != nil {
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
|
if ms.LoadMessageInfo() == nil {
|
|
|
ms.StoreMessageInfo(mi)
|
|
|
}
|
|
|
return ms
|
|
|
}
|
|
|
return mi.MessageOf(x)
|
|
|
}
|
|
|
|
|
|
// Deprecated: Use UserBuyGoodsMsg.ProtoReflect.Descriptor instead.
|
|
|
func (*UserBuyGoodsMsg) Descriptor() ([]byte, []int) {
|
|
|
return file_common_common_proto_rawDescGZIP(), []int{8}
|
|
|
}
|
|
|
|
|
|
func (x *UserBuyGoodsMsg) GetCode() int32 {
|
|
|
if x != nil {
|
|
|
return x.Code
|
|
|
}
|
|
|
return 0
|
|
|
}
|
|
|
|
|
|
func (x *UserBuyGoodsMsg) GetUser() *PbUser {
|
|
|
if x != nil {
|
|
|
return x.User
|
|
|
}
|
|
|
return nil
|
|
|
}
|
|
|
|
|
|
func (x *UserBuyGoodsMsg) GetGoods() vars.Goods {
|
|
|
if x != nil {
|
|
|
return x.Goods
|
|
|
}
|
|
|
return vars.Goods(0)
|
|
|
}
|
|
|
|
|
|
func (x *UserBuyGoodsMsg) GetGoodsId() int64 {
|
|
|
if x != nil {
|
|
|
return x.GoodsId
|
|
|
}
|
|
|
return 0
|
|
|
}
|
|
|
|
|
|
func (x *UserBuyGoodsMsg) GetCount() int32 {
|
|
|
if x != nil {
|
|
|
return x.Count
|
|
|
}
|
|
|
return 0
|
|
|
}
|
|
|
|
|
|
func (x *UserBuyGoodsMsg) GetCost() int64 {
|
|
|
if x != nil {
|
|
|
return x.Cost
|
|
|
}
|
|
|
return 0
|
|
|
}
|
|
|
|
|
|
func (x *UserBuyGoodsMsg) GetDuration() int32 {
|
|
|
if x != nil {
|
|
|
return x.Duration
|
|
|
}
|
|
|
return 0
|
|
|
}
|
|
|
|
|
|
// TitleItem 称号
|
|
|
type TitleItem struct {
|
|
|
state protoimpl.MessageState
|
|
|
sizeCache protoimpl.SizeCache
|
|
|
unknownFields protoimpl.UnknownFields
|
|
|
|
|
|
Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` // ID
|
|
|
Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` // 称号名
|
|
|
Sort int32 `protobuf:"varint,3,opt,name=sort,proto3" json:"sort,omitempty"` // 排序号
|
|
|
Remain int32 `protobuf:"varint,4,opt,name=remain,proto3" json:"remain,omitempty"` // 剩余时长(单位:小时)
|
|
|
}
|
|
|
|
|
|
func (x *TitleItem) Reset() {
|
|
|
*x = TitleItem{}
|
|
|
if protoimpl.UnsafeEnabled {
|
|
|
mi := &file_common_common_proto_msgTypes[9]
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
|
ms.StoreMessageInfo(mi)
|
|
|
}
|
|
|
}
|
|
|
|
|
|
func (x *TitleItem) String() string {
|
|
|
return protoimpl.X.MessageStringOf(x)
|
|
|
}
|
|
|
|
|
|
func (*TitleItem) ProtoMessage() {}
|
|
|
|
|
|
func (x *TitleItem) ProtoReflect() protoreflect.Message {
|
|
|
mi := &file_common_common_proto_msgTypes[9]
|
|
|
if protoimpl.UnsafeEnabled && x != nil {
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
|
if ms.LoadMessageInfo() == nil {
|
|
|
ms.StoreMessageInfo(mi)
|
|
|
}
|
|
|
return ms
|
|
|
}
|
|
|
return mi.MessageOf(x)
|
|
|
}
|
|
|
|
|
|
// Deprecated: Use TitleItem.ProtoReflect.Descriptor instead.
|
|
|
func (*TitleItem) Descriptor() ([]byte, []int) {
|
|
|
return file_common_common_proto_rawDescGZIP(), []int{9}
|
|
|
}
|
|
|
|
|
|
func (x *TitleItem) GetId() int64 {
|
|
|
if x != nil {
|
|
|
return x.Id
|
|
|
}
|
|
|
return 0
|
|
|
}
|
|
|
|
|
|
func (x *TitleItem) GetName() string {
|
|
|
if x != nil {
|
|
|
return x.Name
|
|
|
}
|
|
|
return ""
|
|
|
}
|
|
|
|
|
|
func (x *TitleItem) GetSort() int32 {
|
|
|
if x != nil {
|
|
|
return x.Sort
|
|
|
}
|
|
|
return 0
|
|
|
}
|
|
|
|
|
|
func (x *TitleItem) GetRemain() int32 {
|
|
|
if x != nil {
|
|
|
return x.Remain
|
|
|
}
|
|
|
return 0
|
|
|
}
|
|
|
|
|
|
// DanmakuMsg 普通弹幕消息 push -> live.danmaku
|
|
|
type DanmakuMsg struct {
|
|
|
state protoimpl.MessageState
|
|
|
sizeCache protoimpl.SizeCache
|
|
|
unknownFields protoimpl.UnknownFields
|
|
|
|
|
|
User *PbUser `protobuf:"bytes,1,opt,name=user,proto3" json:"user,omitempty"`
|
|
|
Content string `protobuf:"bytes,2,opt,name=content,proto3" json:"content,omitempty"`
|
|
|
}
|
|
|
|
|
|
func (x *DanmakuMsg) Reset() {
|
|
|
*x = DanmakuMsg{}
|
|
|
if protoimpl.UnsafeEnabled {
|
|
|
mi := &file_common_common_proto_msgTypes[10]
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
|
ms.StoreMessageInfo(mi)
|
|
|
}
|
|
|
}
|
|
|
|
|
|
func (x *DanmakuMsg) String() string {
|
|
|
return protoimpl.X.MessageStringOf(x)
|
|
|
}
|
|
|
|
|
|
func (*DanmakuMsg) ProtoMessage() {}
|
|
|
|
|
|
func (x *DanmakuMsg) ProtoReflect() protoreflect.Message {
|
|
|
mi := &file_common_common_proto_msgTypes[10]
|
|
|
if protoimpl.UnsafeEnabled && x != nil {
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
|
if ms.LoadMessageInfo() == nil {
|
|
|
ms.StoreMessageInfo(mi)
|
|
|
}
|
|
|
return ms
|
|
|
}
|
|
|
return mi.MessageOf(x)
|
|
|
}
|
|
|
|
|
|
// Deprecated: Use DanmakuMsg.ProtoReflect.Descriptor instead.
|
|
|
func (*DanmakuMsg) Descriptor() ([]byte, []int) {
|
|
|
return file_common_common_proto_rawDescGZIP(), []int{10}
|
|
|
}
|
|
|
|
|
|
func (x *DanmakuMsg) GetUser() *PbUser {
|
|
|
if x != nil {
|
|
|
return x.User
|
|
|
}
|
|
|
return nil
|
|
|
}
|
|
|
|
|
|
func (x *DanmakuMsg) GetContent() string {
|
|
|
if x != nil {
|
|
|
return x.Content
|
|
|
}
|
|
|
return ""
|
|
|
}
|
|
|
|
|
|
// 赠送礼物 push -> live.gift.common | live.gift.nobility
|
|
|
type GiftMsg struct {
|
|
|
state protoimpl.MessageState
|
|
|
sizeCache protoimpl.SizeCache
|
|
|
unknownFields protoimpl.UnknownFields
|
|
|
|
|
|
User *PbUser `protobuf:"bytes,1,opt,name=user,proto3" json:"user,omitempty"`
|
|
|
GiftId int64 `protobuf:"varint,2,opt,name=giftId,proto3" json:"giftId,omitempty"`
|
|
|
Num int64 `protobuf:"varint,3,opt,name=num,proto3" json:"num,omitempty"`
|
|
|
GiftName string `protobuf:"bytes,4,opt,name=giftName,proto3" json:"giftName,omitempty"`
|
|
|
Price int64 `protobuf:"varint,5,opt,name=price,proto3" json:"price,omitempty"` // 单价
|
|
|
IsPaid bool `protobuf:"varint,6,opt,name=isPaid,proto3" json:"isPaid,omitempty"` // 是否收费礼物
|
|
|
}
|
|
|
|
|
|
func (x *GiftMsg) Reset() {
|
|
|
*x = GiftMsg{}
|
|
|
if protoimpl.UnsafeEnabled {
|
|
|
mi := &file_common_common_proto_msgTypes[11]
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
|
ms.StoreMessageInfo(mi)
|
|
|
}
|
|
|
}
|
|
|
|
|
|
func (x *GiftMsg) String() string {
|
|
|
return protoimpl.X.MessageStringOf(x)
|
|
|
}
|
|
|
|
|
|
func (*GiftMsg) ProtoMessage() {}
|
|
|
|
|
|
func (x *GiftMsg) ProtoReflect() protoreflect.Message {
|
|
|
mi := &file_common_common_proto_msgTypes[11]
|
|
|
if protoimpl.UnsafeEnabled && x != nil {
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
|
if ms.LoadMessageInfo() == nil {
|
|
|
ms.StoreMessageInfo(mi)
|
|
|
}
|
|
|
return ms
|
|
|
}
|
|
|
return mi.MessageOf(x)
|
|
|
}
|
|
|
|
|
|
// Deprecated: Use GiftMsg.ProtoReflect.Descriptor instead.
|
|
|
func (*GiftMsg) Descriptor() ([]byte, []int) {
|
|
|
return file_common_common_proto_rawDescGZIP(), []int{11}
|
|
|
}
|
|
|
|
|
|
func (x *GiftMsg) GetUser() *PbUser {
|
|
|
if x != nil {
|
|
|
return x.User
|
|
|
}
|
|
|
return nil
|
|
|
}
|
|
|
|
|
|
func (x *GiftMsg) GetGiftId() int64 {
|
|
|
if x != nil {
|
|
|
return x.GiftId
|
|
|
}
|
|
|
return 0
|
|
|
}
|
|
|
|
|
|
func (x *GiftMsg) GetNum() int64 {
|
|
|
if x != nil {
|
|
|
return x.Num
|
|
|
}
|
|
|
return 0
|
|
|
}
|
|
|
|
|
|
func (x *GiftMsg) GetGiftName() string {
|
|
|
if x != nil {
|
|
|
return x.GiftName
|
|
|
}
|
|
|
return ""
|
|
|
}
|
|
|
|
|
|
func (x *GiftMsg) GetPrice() int64 {
|
|
|
if x != nil {
|
|
|
return x.Price
|
|
|
}
|
|
|
return 0
|
|
|
}
|
|
|
|
|
|
func (x *GiftMsg) GetIsPaid() bool {
|
|
|
if x != nil {
|
|
|
return x.IsPaid
|
|
|
}
|
|
|
return false
|
|
|
}
|
|
|
|
|
|
var File_common_common_proto protoreflect.FileDescriptor
|
|
|
|
|
|
var file_common_common_proto_rawDesc = []byte{
|
|
|
0x0a, 0x13, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2f, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e,
|
|
|
0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x09, 0x70, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e,
|
|
|
0x1a, 0x0f, 0x76, 0x61, 0x72, 0x73, 0x2f, 0x76, 0x61, 0x72, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74,
|
|
|
0x6f, 0x22, 0xf6, 0x01, 0x0a, 0x06, 0x50, 0x62, 0x55, 0x73, 0x65, 0x72, 0x12, 0x16, 0x0a, 0x06,
|
|
|
0x75, 0x73, 0x65, 0x72, 0x49, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x06, 0x75, 0x73,
|
|
|
0x65, 0x72, 0x49, 0x64, 0x12, 0x1a, 0x0a, 0x08, 0x75, 0x73, 0x65, 0x72, 0x6e, 0x61, 0x6d, 0x65,
|
|
|
0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x75, 0x73, 0x65, 0x72, 0x6e, 0x61, 0x6d, 0x65,
|
|
|
0x12, 0x16, 0x0a, 0x06, 0x61, 0x76, 0x61, 0x74, 0x61, 0x72, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09,
|
|
|
0x52, 0x06, 0x61, 0x76, 0x61, 0x74, 0x61, 0x72, 0x12, 0x1a, 0x0a, 0x08, 0x70, 0x6c, 0x61, 0x74,
|
|
|
0x66, 0x6f, 0x72, 0x6d, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x70, 0x6c, 0x61, 0x74,
|
|
|
0x66, 0x6f, 0x72, 0x6d, 0x12, 0x36, 0x0a, 0x16, 0x66, 0x61, 0x6e, 0x73, 0x4d, 0x65, 0x64, 0x61,
|
|
|
0x6c, 0x57, 0x65, 0x61, 0x72, 0x69, 0x6e, 0x67, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x18, 0x05,
|
|
|
0x20, 0x01, 0x28, 0x08, 0x52, 0x16, 0x66, 0x61, 0x6e, 0x73, 0x4d, 0x65, 0x64, 0x61, 0x6c, 0x57,
|
|
|
0x65, 0x61, 0x72, 0x69, 0x6e, 0x67, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x24, 0x0a, 0x0d,
|
|
|
0x66, 0x61, 0x6e, 0x73, 0x4d, 0x65, 0x64, 0x61, 0x6c, 0x4e, 0x61, 0x6d, 0x65, 0x18, 0x06, 0x20,
|
|
|
0x01, 0x28, 0x09, 0x52, 0x0d, 0x66, 0x61, 0x6e, 0x73, 0x4d, 0x65, 0x64, 0x61, 0x6c, 0x4e, 0x61,
|
|
|
0x6d, 0x65, 0x12, 0x26, 0x0a, 0x0e, 0x66, 0x61, 0x6e, 0x73, 0x4d, 0x65, 0x64, 0x61, 0x6c, 0x4c,
|
|
|
0x65, 0x76, 0x65, 0x6c, 0x18, 0x07, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0e, 0x66, 0x61, 0x6e, 0x73,
|
|
|
0x4d, 0x65, 0x64, 0x61, 0x6c, 0x4c, 0x65, 0x76, 0x65, 0x6c, 0x22, 0x45, 0x0a, 0x0d, 0x47, 0x61,
|
|
|
0x6d, 0x65, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x52, 0x65, 0x71, 0x12, 0x16, 0x0a, 0x06, 0x73,
|
|
|
0x74, 0x61, 0x74, 0x75, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x05, 0x52, 0x06, 0x73, 0x74, 0x61,
|
|
|
0x74, 0x75, 0x73, 0x12, 0x1c, 0x0a, 0x09, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70,
|
|
|
0x18, 0x02, 0x20, 0x01, 0x28, 0x03, 0x52, 0x09, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d,
|
|
|
0x70, 0x22, 0x64, 0x0a, 0x0e, 0x47, 0x61, 0x6d, 0x65, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x52,
|
|
|
0x65, 0x73, 0x70, 0x12, 0x18, 0x0a, 0x07, 0x73, 0x75, 0x63, 0x63, 0x65, 0x73, 0x73, 0x18, 0x01,
|
|
|
0x20, 0x01, 0x28, 0x08, 0x52, 0x07, 0x73, 0x75, 0x63, 0x63, 0x65, 0x73, 0x73, 0x12, 0x1a, 0x0a,
|
|
|
0x08, 0x62, 0x61, 0x74, 0x74, 0x6c, 0x65, 0x49, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x03, 0x52,
|
|
|
0x08, 0x62, 0x61, 0x74, 0x74, 0x6c, 0x65, 0x49, 0x64, 0x12, 0x1c, 0x0a, 0x09, 0x74, 0x69, 0x6d,
|
|
|
0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x18, 0x03, 0x20, 0x01, 0x28, 0x03, 0x52, 0x09, 0x74, 0x69,
|
|
|
0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x22, 0xa5, 0x01, 0x0a, 0x12, 0x55, 0x73, 0x65, 0x72,
|
|
|
0x43, 0x6f, 0x69, 0x6e, 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x64, 0x4d, 0x73, 0x67, 0x12, 0x25,
|
|
|
0x0a, 0x04, 0x75, 0x73, 0x65, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x11, 0x2e, 0x70,
|
|
|
0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x50, 0x62, 0x55, 0x73, 0x65, 0x72, 0x52,
|
|
|
0x04, 0x75, 0x73, 0x65, 0x72, 0x12, 0x36, 0x0a, 0x06, 0x72, 0x65, 0x61, 0x73, 0x6f, 0x6e, 0x18,
|
|
|
0x02, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x1e, 0x2e, 0x70, 0x62, 0x2e, 0x76, 0x61, 0x72, 0x73, 0x2e,
|
|
|
0x55, 0x73, 0x65, 0x72, 0x43, 0x6f, 0x69, 0x6e, 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x64, 0x52,
|
|
|
0x65, 0x61, 0x73, 0x6f, 0x6e, 0x52, 0x06, 0x72, 0x65, 0x61, 0x73, 0x6f, 0x6e, 0x12, 0x16, 0x0a,
|
|
|
0x06, 0x63, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x18, 0x0a, 0x20, 0x01, 0x28, 0x03, 0x52, 0x06, 0x63,
|
|
|
0x68, 0x61, 0x6e, 0x67, 0x65, 0x12, 0x18, 0x0a, 0x07, 0x63, 0x75, 0x72, 0x72, 0x65, 0x6e, 0x74,
|
|
|
0x18, 0x0b, 0x20, 0x01, 0x28, 0x03, 0x52, 0x07, 0x63, 0x75, 0x72, 0x72, 0x65, 0x6e, 0x74, 0x22,
|
|
|
0x7b, 0x0a, 0x11, 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x55, 0x73, 0x65, 0x72, 0x43, 0x6f, 0x69,
|
|
|
0x6e, 0x52, 0x65, 0x71, 0x12, 0x16, 0x0a, 0x06, 0x75, 0x73, 0x65, 0x72, 0x49, 0x64, 0x18, 0x01,
|
|
|
0x20, 0x01, 0x28, 0x03, 0x52, 0x06, 0x75, 0x73, 0x65, 0x72, 0x49, 0x64, 0x12, 0x16, 0x0a, 0x06,
|
|
|
0x63, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x03, 0x52, 0x06, 0x63, 0x68,
|
|
|
0x61, 0x6e, 0x67, 0x65, 0x12, 0x36, 0x0a, 0x06, 0x72, 0x65, 0x61, 0x73, 0x6f, 0x6e, 0x18, 0x03,
|
|
|
0x20, 0x01, 0x28, 0x0e, 0x32, 0x1e, 0x2e, 0x70, 0x62, 0x2e, 0x76, 0x61, 0x72, 0x73, 0x2e, 0x55,
|
|
|
0x73, 0x65, 0x72, 0x43, 0x6f, 0x69, 0x6e, 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x64, 0x52, 0x65,
|
|
|
0x61, 0x73, 0x6f, 0x6e, 0x52, 0x06, 0x72, 0x65, 0x61, 0x73, 0x6f, 0x6e, 0x22, 0x6a, 0x0a, 0x12,
|
|
|
0x43, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x55, 0x73, 0x65, 0x72, 0x43, 0x6f, 0x69, 0x6e, 0x52, 0x65,
|
|
|
0x73, 0x70, 0x12, 0x12, 0x0a, 0x04, 0x63, 0x6f, 0x64, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x05,
|
|
|
0x52, 0x04, 0x63, 0x6f, 0x64, 0x65, 0x12, 0x10, 0x0a, 0x03, 0x6d, 0x73, 0x67, 0x18, 0x02, 0x20,
|
|
|
0x01, 0x28, 0x09, 0x52, 0x03, 0x6d, 0x73, 0x67, 0x12, 0x16, 0x0a, 0x06, 0x75, 0x73, 0x65, 0x72,
|
|
|
0x49, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x03, 0x52, 0x06, 0x75, 0x73, 0x65, 0x72, 0x49, 0x64,
|
|
|
0x12, 0x16, 0x0a, 0x06, 0x63, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x03,
|
|
|
0x52, 0x06, 0x63, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x22, 0xbb, 0x01, 0x0a, 0x0a, 0x43, 0x68, 0x65,
|
|
|
0x63, 0x6b, 0x49, 0x6e, 0x4d, 0x73, 0x67, 0x12, 0x12, 0x0a, 0x04, 0x63, 0x6f, 0x64, 0x65, 0x18,
|
|
|
0x01, 0x20, 0x01, 0x28, 0x05, 0x52, 0x04, 0x63, 0x6f, 0x64, 0x65, 0x12, 0x10, 0x0a, 0x03, 0x6d,
|
|
|
0x73, 0x67, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6d, 0x73, 0x67, 0x12, 0x25, 0x0a,
|
|
|
0x04, 0x75, 0x73, 0x65, 0x72, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x11, 0x2e, 0x70, 0x62,
|
|
|
0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x50, 0x62, 0x55, 0x73, 0x65, 0x72, 0x52, 0x04,
|
|
|
0x75, 0x73, 0x65, 0x72, 0x12, 0x1e, 0x0a, 0x0a, 0x63, 0x6f, 0x69, 0x6e, 0x43, 0x68, 0x61, 0x6e,
|
|
|
0x67, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0a, 0x63, 0x6f, 0x69, 0x6e, 0x43, 0x68,
|
|
|
0x61, 0x6e, 0x67, 0x65, 0x12, 0x20, 0x0a, 0x0b, 0x63, 0x75, 0x72, 0x72, 0x65, 0x6e, 0x74, 0x43,
|
|
|
0x6f, 0x69, 0x6e, 0x18, 0x05, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0b, 0x63, 0x75, 0x72, 0x72, 0x65,
|
|
|
0x6e, 0x74, 0x43, 0x6f, 0x69, 0x6e, 0x12, 0x1e, 0x0a, 0x0a, 0x69, 0x73, 0x43, 0x72, 0x69, 0x74,
|
|
|
0x69, 0x63, 0x61, 0x6c, 0x18, 0x0a, 0x20, 0x01, 0x28, 0x08, 0x52, 0x0a, 0x69, 0x73, 0x43, 0x72,
|
|
|
0x69, 0x74, 0x69, 0x63, 0x61, 0x6c, 0x22, 0x6e, 0x0a, 0x0b, 0x47, 0x69, 0x66, 0x74, 0x50, 0x61,
|
|
|
0x63, 0x6b, 0x4d, 0x73, 0x67, 0x12, 0x12, 0x0a, 0x04, 0x63, 0x6f, 0x64, 0x65, 0x18, 0x01, 0x20,
|
|
|
0x01, 0x28, 0x05, 0x52, 0x04, 0x63, 0x6f, 0x64, 0x65, 0x12, 0x10, 0x0a, 0x03, 0x6d, 0x73, 0x67,
|
|
|
0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6d, 0x73, 0x67, 0x12, 0x25, 0x0a, 0x04, 0x75,
|
|
|
0x73, 0x65, 0x72, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x11, 0x2e, 0x70, 0x62, 0x2e, 0x63,
|
|
|
0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x50, 0x62, 0x55, 0x73, 0x65, 0x72, 0x52, 0x04, 0x75, 0x73,
|
|
|
0x65, 0x72, 0x12, 0x12, 0x0a, 0x04, 0x63, 0x6f, 0x69, 0x6e, 0x18, 0x04, 0x20, 0x01, 0x28, 0x03,
|
|
|
0x52, 0x04, 0x63, 0x6f, 0x69, 0x6e, 0x22, 0xd2, 0x01, 0x0a, 0x0f, 0x55, 0x73, 0x65, 0x72, 0x42,
|
|
|
0x75, 0x79, 0x47, 0x6f, 0x6f, 0x64, 0x73, 0x4d, 0x73, 0x67, 0x12, 0x12, 0x0a, 0x04, 0x63, 0x6f,
|
|
|
0x64, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x05, 0x52, 0x04, 0x63, 0x6f, 0x64, 0x65, 0x12, 0x25,
|
|
|
0x0a, 0x04, 0x75, 0x73, 0x65, 0x72, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x11, 0x2e, 0x70,
|
|
|
0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x50, 0x62, 0x55, 0x73, 0x65, 0x72, 0x52,
|
|
|
0x04, 0x75, 0x73, 0x65, 0x72, 0x12, 0x24, 0x0a, 0x05, 0x67, 0x6f, 0x6f, 0x64, 0x73, 0x18, 0x04,
|
|
|
0x20, 0x01, 0x28, 0x0e, 0x32, 0x0e, 0x2e, 0x70, 0x62, 0x2e, 0x76, 0x61, 0x72, 0x73, 0x2e, 0x47,
|
|
|
0x6f, 0x6f, 0x64, 0x73, 0x52, 0x05, 0x67, 0x6f, 0x6f, 0x64, 0x73, 0x12, 0x18, 0x0a, 0x07, 0x67,
|
|
|
0x6f, 0x6f, 0x64, 0x73, 0x49, 0x64, 0x18, 0x05, 0x20, 0x01, 0x28, 0x03, 0x52, 0x07, 0x67, 0x6f,
|
|
|
0x6f, 0x64, 0x73, 0x49, 0x64, 0x12, 0x14, 0x0a, 0x05, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x18, 0x06,
|
|
|
0x20, 0x01, 0x28, 0x05, 0x52, 0x05, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x12, 0x12, 0x0a, 0x04, 0x63,
|
|
|
0x6f, 0x73, 0x74, 0x18, 0x07, 0x20, 0x01, 0x28, 0x03, 0x52, 0x04, 0x63, 0x6f, 0x73, 0x74, 0x12,
|
|
|
0x1a, 0x0a, 0x08, 0x64, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x08, 0x20, 0x01, 0x28,
|
|
|
0x05, 0x52, 0x08, 0x64, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0x5b, 0x0a, 0x09, 0x54,
|
|
|
0x69, 0x74, 0x6c, 0x65, 0x49, 0x74, 0x65, 0x6d, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01,
|
|
|
0x20, 0x01, 0x28, 0x03, 0x52, 0x02, 0x69, 0x64, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65,
|
|
|
0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x12, 0x0a, 0x04,
|
|
|
0x73, 0x6f, 0x72, 0x74, 0x18, 0x03, 0x20, 0x01, 0x28, 0x05, 0x52, 0x04, 0x73, 0x6f, 0x72, 0x74,
|
|
|
0x12, 0x16, 0x0a, 0x06, 0x72, 0x65, 0x6d, 0x61, 0x69, 0x6e, 0x18, 0x04, 0x20, 0x01, 0x28, 0x05,
|
|
|
0x52, 0x06, 0x72, 0x65, 0x6d, 0x61, 0x69, 0x6e, 0x22, 0x4d, 0x0a, 0x0a, 0x44, 0x61, 0x6e, 0x6d,
|
|
|
0x61, 0x6b, 0x75, 0x4d, 0x73, 0x67, 0x12, 0x25, 0x0a, 0x04, 0x75, 0x73, 0x65, 0x72, 0x18, 0x01,
|
|
|
0x20, 0x01, 0x28, 0x0b, 0x32, 0x11, 0x2e, 0x70, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e,
|
|
|
0x2e, 0x50, 0x62, 0x55, 0x73, 0x65, 0x72, 0x52, 0x04, 0x75, 0x73, 0x65, 0x72, 0x12, 0x18, 0x0a,
|
|
|
0x07, 0x63, 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07,
|
|
|
0x63, 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x74, 0x22, 0xa4, 0x01, 0x0a, 0x07, 0x47, 0x69, 0x66, 0x74,
|
|
|
0x4d, 0x73, 0x67, 0x12, 0x25, 0x0a, 0x04, 0x75, 0x73, 0x65, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28,
|
|
|
0x0b, 0x32, 0x11, 0x2e, 0x70, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x50, 0x62,
|
|
|
0x55, 0x73, 0x65, 0x72, 0x52, 0x04, 0x75, 0x73, 0x65, 0x72, 0x12, 0x16, 0x0a, 0x06, 0x67, 0x69,
|
|
|
0x66, 0x74, 0x49, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x03, 0x52, 0x06, 0x67, 0x69, 0x66, 0x74,
|
|
|
0x49, 0x64, 0x12, 0x10, 0x0a, 0x03, 0x6e, 0x75, 0x6d, 0x18, 0x03, 0x20, 0x01, 0x28, 0x03, 0x52,
|
|
|
0x03, 0x6e, 0x75, 0x6d, 0x12, 0x1a, 0x0a, 0x08, 0x67, 0x69, 0x66, 0x74, 0x4e, 0x61, 0x6d, 0x65,
|
|
|
0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x67, 0x69, 0x66, 0x74, 0x4e, 0x61, 0x6d, 0x65,
|
|
|
0x12, 0x14, 0x0a, 0x05, 0x70, 0x72, 0x69, 0x63, 0x65, 0x18, 0x05, 0x20, 0x01, 0x28, 0x03, 0x52,
|
|
|
0x05, 0x70, 0x72, 0x69, 0x63, 0x65, 0x12, 0x16, 0x0a, 0x06, 0x69, 0x73, 0x50, 0x61, 0x69, 0x64,
|
|
|
0x18, 0x06, 0x20, 0x01, 0x28, 0x08, 0x52, 0x06, 0x69, 0x73, 0x50, 0x61, 0x69, 0x64, 0x42, 0x1d,
|
|
|
0x5a, 0x1b, 0x64, 0x63, 0x67, 0x2f, 0x67, 0x61, 0x6d, 0x65, 0x2f, 0x70, 0x62, 0x2f, 0x63, 0x6f,
|
|
|
0x6d, 0x6d, 0x6f, 0x6e, 0x3b, 0x70, 0x62, 0x43, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x62, 0x06, 0x70,
|
|
|
0x72, 0x6f, 0x74, 0x6f, 0x33,
|
|
|
}
|
|
|
|
|
|
var (
|
|
|
file_common_common_proto_rawDescOnce sync.Once
|
|
|
file_common_common_proto_rawDescData = file_common_common_proto_rawDesc
|
|
|
)
|
|
|
|
|
|
func file_common_common_proto_rawDescGZIP() []byte {
|
|
|
file_common_common_proto_rawDescOnce.Do(func() {
|
|
|
file_common_common_proto_rawDescData = protoimpl.X.CompressGZIP(file_common_common_proto_rawDescData)
|
|
|
})
|
|
|
return file_common_common_proto_rawDescData
|
|
|
}
|
|
|
|
|
|
var file_common_common_proto_msgTypes = make([]protoimpl.MessageInfo, 12)
|
|
|
var file_common_common_proto_goTypes = []interface{}{
|
|
|
(*PbUser)(nil), // 0: pb.common.PbUser
|
|
|
(*GameStatusReq)(nil), // 1: pb.common.GameStatusReq
|
|
|
(*GameStatusResp)(nil), // 2: pb.common.GameStatusResp
|
|
|
(*UserCoinChangedMsg)(nil), // 3: pb.common.UserCoinChangedMsg
|
|
|
(*ChangeUserCoinReq)(nil), // 4: pb.common.ChangeUserCoinReq
|
|
|
(*ChangeUserCoinResp)(nil), // 5: pb.common.ChangeUserCoinResp
|
|
|
(*CheckInMsg)(nil), // 6: pb.common.CheckInMsg
|
|
|
(*GiftPackMsg)(nil), // 7: pb.common.GiftPackMsg
|
|
|
(*UserBuyGoodsMsg)(nil), // 8: pb.common.UserBuyGoodsMsg
|
|
|
(*TitleItem)(nil), // 9: pb.common.TitleItem
|
|
|
(*DanmakuMsg)(nil), // 10: pb.common.DanmakuMsg
|
|
|
(*GiftMsg)(nil), // 11: pb.common.GiftMsg
|
|
|
(vars.UserCoinChangedReason)(0), // 12: pb.vars.UserCoinChangedReason
|
|
|
(vars.Goods)(0), // 13: pb.vars.Goods
|
|
|
}
|
|
|
var file_common_common_proto_depIdxs = []int32{
|
|
|
0, // 0: pb.common.UserCoinChangedMsg.user:type_name -> pb.common.PbUser
|
|
|
12, // 1: pb.common.UserCoinChangedMsg.reason:type_name -> pb.vars.UserCoinChangedReason
|
|
|
12, // 2: pb.common.ChangeUserCoinReq.reason:type_name -> pb.vars.UserCoinChangedReason
|
|
|
0, // 3: pb.common.CheckInMsg.user:type_name -> pb.common.PbUser
|
|
|
0, // 4: pb.common.GiftPackMsg.user:type_name -> pb.common.PbUser
|
|
|
0, // 5: pb.common.UserBuyGoodsMsg.user:type_name -> pb.common.PbUser
|
|
|
13, // 6: pb.common.UserBuyGoodsMsg.goods:type_name -> pb.vars.Goods
|
|
|
0, // 7: pb.common.DanmakuMsg.user:type_name -> pb.common.PbUser
|
|
|
0, // 8: pb.common.GiftMsg.user:type_name -> pb.common.PbUser
|
|
|
9, // [9:9] is the sub-list for method output_type
|
|
|
9, // [9:9] is the sub-list for method input_type
|
|
|
9, // [9:9] is the sub-list for extension type_name
|
|
|
9, // [9:9] is the sub-list for extension extendee
|
|
|
0, // [0:9] is the sub-list for field type_name
|
|
|
}
|
|
|
|
|
|
func init() { file_common_common_proto_init() }
|
|
|
func file_common_common_proto_init() {
|
|
|
if File_common_common_proto != nil {
|
|
|
return
|
|
|
}
|
|
|
if !protoimpl.UnsafeEnabled {
|
|
|
file_common_common_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
|
|
|
switch v := v.(*PbUser); i {
|
|
|
case 0:
|
|
|
return &v.state
|
|
|
case 1:
|
|
|
return &v.sizeCache
|
|
|
case 2:
|
|
|
return &v.unknownFields
|
|
|
default:
|
|
|
return nil
|
|
|
}
|
|
|
}
|
|
|
file_common_common_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
|
|
|
switch v := v.(*GameStatusReq); i {
|
|
|
case 0:
|
|
|
return &v.state
|
|
|
case 1:
|
|
|
return &v.sizeCache
|
|
|
case 2:
|
|
|
return &v.unknownFields
|
|
|
default:
|
|
|
return nil
|
|
|
}
|
|
|
}
|
|
|
file_common_common_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} {
|
|
|
switch v := v.(*GameStatusResp); i {
|
|
|
case 0:
|
|
|
return &v.state
|
|
|
case 1:
|
|
|
return &v.sizeCache
|
|
|
case 2:
|
|
|
return &v.unknownFields
|
|
|
default:
|
|
|
return nil
|
|
|
}
|
|
|
}
|
|
|
file_common_common_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} {
|
|
|
switch v := v.(*UserCoinChangedMsg); i {
|
|
|
case 0:
|
|
|
return &v.state
|
|
|
case 1:
|
|
|
return &v.sizeCache
|
|
|
case 2:
|
|
|
return &v.unknownFields
|
|
|
default:
|
|
|
return nil
|
|
|
}
|
|
|
}
|
|
|
file_common_common_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} {
|
|
|
switch v := v.(*ChangeUserCoinReq); i {
|
|
|
case 0:
|
|
|
return &v.state
|
|
|
case 1:
|
|
|
return &v.sizeCache
|
|
|
case 2:
|
|
|
return &v.unknownFields
|
|
|
default:
|
|
|
return nil
|
|
|
}
|
|
|
}
|
|
|
file_common_common_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} {
|
|
|
switch v := v.(*ChangeUserCoinResp); i {
|
|
|
case 0:
|
|
|
return &v.state
|
|
|
case 1:
|
|
|
return &v.sizeCache
|
|
|
case 2:
|
|
|
return &v.unknownFields
|
|
|
default:
|
|
|
return nil
|
|
|
}
|
|
|
}
|
|
|
file_common_common_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} {
|
|
|
switch v := v.(*CheckInMsg); i {
|
|
|
case 0:
|
|
|
return &v.state
|
|
|
case 1:
|
|
|
return &v.sizeCache
|
|
|
case 2:
|
|
|
return &v.unknownFields
|
|
|
default:
|
|
|
return nil
|
|
|
}
|
|
|
}
|
|
|
file_common_common_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} {
|
|
|
switch v := v.(*GiftPackMsg); i {
|
|
|
case 0:
|
|
|
return &v.state
|
|
|
case 1:
|
|
|
return &v.sizeCache
|
|
|
case 2:
|
|
|
return &v.unknownFields
|
|
|
default:
|
|
|
return nil
|
|
|
}
|
|
|
}
|
|
|
file_common_common_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} {
|
|
|
switch v := v.(*UserBuyGoodsMsg); i {
|
|
|
case 0:
|
|
|
return &v.state
|
|
|
case 1:
|
|
|
return &v.sizeCache
|
|
|
case 2:
|
|
|
return &v.unknownFields
|
|
|
default:
|
|
|
return nil
|
|
|
}
|
|
|
}
|
|
|
file_common_common_proto_msgTypes[9].Exporter = func(v interface{}, i int) interface{} {
|
|
|
switch v := v.(*TitleItem); i {
|
|
|
case 0:
|
|
|
return &v.state
|
|
|
case 1:
|
|
|
return &v.sizeCache
|
|
|
case 2:
|
|
|
return &v.unknownFields
|
|
|
default:
|
|
|
return nil
|
|
|
}
|
|
|
}
|
|
|
file_common_common_proto_msgTypes[10].Exporter = func(v interface{}, i int) interface{} {
|
|
|
switch v := v.(*DanmakuMsg); i {
|
|
|
case 0:
|
|
|
return &v.state
|
|
|
case 1:
|
|
|
return &v.sizeCache
|
|
|
case 2:
|
|
|
return &v.unknownFields
|
|
|
default:
|
|
|
return nil
|
|
|
}
|
|
|
}
|
|
|
file_common_common_proto_msgTypes[11].Exporter = func(v interface{}, i int) interface{} {
|
|
|
switch v := v.(*GiftMsg); i {
|
|
|
case 0:
|
|
|
return &v.state
|
|
|
case 1:
|
|
|
return &v.sizeCache
|
|
|
case 2:
|
|
|
return &v.unknownFields
|
|
|
default:
|
|
|
return nil
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
type x struct{}
|
|
|
out := protoimpl.TypeBuilder{
|
|
|
File: protoimpl.DescBuilder{
|
|
|
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
|
|
|
RawDescriptor: file_common_common_proto_rawDesc,
|
|
|
NumEnums: 0,
|
|
|
NumMessages: 12,
|
|
|
NumExtensions: 0,
|
|
|
NumServices: 0,
|
|
|
},
|
|
|
GoTypes: file_common_common_proto_goTypes,
|
|
|
DependencyIndexes: file_common_common_proto_depIdxs,
|
|
|
MessageInfos: file_common_common_proto_msgTypes,
|
|
|
}.Build()
|
|
|
File_common_common_proto = out.File
|
|
|
file_common_common_proto_rawDesc = nil
|
|
|
file_common_common_proto_goTypes = nil
|
|
|
file_common_common_proto_depIdxs = nil
|
|
|
}
|