|
|
|
@ -100,7 +100,7 @@ func (x *PbUser) GetIntegral() int64 {
|
|
|
|
|
return 0
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// UserIntegralChanged 用户积分变更 push -> user.integral
|
|
|
|
|
// UserIntegralChanged 用户积分变更 push -> user.integral.change
|
|
|
|
|
type UserIntegralChanged struct {
|
|
|
|
|
state protoimpl.MessageState
|
|
|
|
|
sizeCache protoimpl.SizeCache
|
|
|
|
@ -164,6 +164,270 @@ func (x *UserIntegralChanged) GetIntegral() int64 {
|
|
|
|
|
return 0
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// ChangeUserIntegral 更新用户积分 request -> user.integral.change
|
|
|
|
|
type ChangeUserIntegralReq 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"` // 更新积分量,负数为消耗,正数为增加
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (x *ChangeUserIntegralReq) Reset() {
|
|
|
|
|
*x = ChangeUserIntegralReq{}
|
|
|
|
|
if protoimpl.UnsafeEnabled {
|
|
|
|
|
mi := &file_common_common_proto_msgTypes[2]
|
|
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
|
|
|
ms.StoreMessageInfo(mi)
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (x *ChangeUserIntegralReq) String() string {
|
|
|
|
|
return protoimpl.X.MessageStringOf(x)
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (*ChangeUserIntegralReq) ProtoMessage() {}
|
|
|
|
|
|
|
|
|
|
func (x *ChangeUserIntegralReq) 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 ChangeUserIntegralReq.ProtoReflect.Descriptor instead.
|
|
|
|
|
func (*ChangeUserIntegralReq) Descriptor() ([]byte, []int) {
|
|
|
|
|
return file_common_common_proto_rawDescGZIP(), []int{2}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (x *ChangeUserIntegralReq) GetUserId() int64 {
|
|
|
|
|
if x != nil {
|
|
|
|
|
return x.UserId
|
|
|
|
|
}
|
|
|
|
|
return 0
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (x *ChangeUserIntegralReq) GetChange() int64 {
|
|
|
|
|
if x != nil {
|
|
|
|
|
return x.Change
|
|
|
|
|
}
|
|
|
|
|
return 0
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// ChangeUserIntegralResp 用户积分更新返回
|
|
|
|
|
type ChangeUserIntegralResp struct {
|
|
|
|
|
state protoimpl.MessageState
|
|
|
|
|
sizeCache protoimpl.SizeCache
|
|
|
|
|
unknownFields protoimpl.UnknownFields
|
|
|
|
|
|
|
|
|
|
Success bool `protobuf:"varint,1,opt,name=success,proto3" json:"success,omitempty"` // 是否更新成功
|
|
|
|
|
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"` // 本次更新积分量
|
|
|
|
|
Integral int64 `protobuf:"varint,5,opt,name=integral,proto3" json:"integral,omitempty"` // 当前剩余积分
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (x *ChangeUserIntegralResp) Reset() {
|
|
|
|
|
*x = ChangeUserIntegralResp{}
|
|
|
|
|
if protoimpl.UnsafeEnabled {
|
|
|
|
|
mi := &file_common_common_proto_msgTypes[3]
|
|
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
|
|
|
ms.StoreMessageInfo(mi)
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (x *ChangeUserIntegralResp) String() string {
|
|
|
|
|
return protoimpl.X.MessageStringOf(x)
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (*ChangeUserIntegralResp) ProtoMessage() {}
|
|
|
|
|
|
|
|
|
|
func (x *ChangeUserIntegralResp) 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 ChangeUserIntegralResp.ProtoReflect.Descriptor instead.
|
|
|
|
|
func (*ChangeUserIntegralResp) Descriptor() ([]byte, []int) {
|
|
|
|
|
return file_common_common_proto_rawDescGZIP(), []int{3}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (x *ChangeUserIntegralResp) GetSuccess() bool {
|
|
|
|
|
if x != nil {
|
|
|
|
|
return x.Success
|
|
|
|
|
}
|
|
|
|
|
return false
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (x *ChangeUserIntegralResp) GetMsg() string {
|
|
|
|
|
if x != nil {
|
|
|
|
|
return x.Msg
|
|
|
|
|
}
|
|
|
|
|
return ""
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (x *ChangeUserIntegralResp) GetUserId() int64 {
|
|
|
|
|
if x != nil {
|
|
|
|
|
return x.UserId
|
|
|
|
|
}
|
|
|
|
|
return 0
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (x *ChangeUserIntegralResp) GetChange() int64 {
|
|
|
|
|
if x != nil {
|
|
|
|
|
return x.Change
|
|
|
|
|
}
|
|
|
|
|
return 0
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (x *ChangeUserIntegralResp) GetIntegral() int64 {
|
|
|
|
|
if x != nil {
|
|
|
|
|
return x.Integral
|
|
|
|
|
}
|
|
|
|
|
return 0
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// CheckInMsg 每日打卡 push -> user.checkIn
|
|
|
|
|
type CheckInMsg struct {
|
|
|
|
|
state protoimpl.MessageState
|
|
|
|
|
sizeCache protoimpl.SizeCache
|
|
|
|
|
unknownFields protoimpl.UnknownFields
|
|
|
|
|
|
|
|
|
|
User *PbUser `protobuf:"bytes,1,opt,name=user,proto3" json:"user,omitempty"` // 最新积分放置在user中
|
|
|
|
|
Success bool `protobuf:"varint,2,opt,name=success,proto3" json:"success,omitempty"` // 打卡成功与否
|
|
|
|
|
Msg string `protobuf:"bytes,3,opt,name=msg,proto3" json:"msg,omitempty"` // 打卡消息: [打卡成功,快乐玩耍吧! | 今天已打过卡了!]
|
|
|
|
|
IntegralChange int64 `protobuf:"varint,4,opt,name=integralChange,proto3" json:"integralChange,omitempty"` // 积分变动
|
|
|
|
|
IsCritical bool `protobuf:"varint,5,opt,name=isCritical,proto3" json:"isCritical,omitempty"` // 是否发生了打卡积分奖励暴击
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (x *CheckInMsg) Reset() {
|
|
|
|
|
*x = CheckInMsg{}
|
|
|
|
|
if protoimpl.UnsafeEnabled {
|
|
|
|
|
mi := &file_common_common_proto_msgTypes[4]
|
|
|
|
|
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[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 CheckInMsg.ProtoReflect.Descriptor instead.
|
|
|
|
|
func (*CheckInMsg) Descriptor() ([]byte, []int) {
|
|
|
|
|
return file_common_common_proto_rawDescGZIP(), []int{4}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (x *CheckInMsg) GetUser() *PbUser {
|
|
|
|
|
if x != nil {
|
|
|
|
|
return x.User
|
|
|
|
|
}
|
|
|
|
|
return nil
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (x *CheckInMsg) GetSuccess() bool {
|
|
|
|
|
if x != nil {
|
|
|
|
|
return x.Success
|
|
|
|
|
}
|
|
|
|
|
return false
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (x *CheckInMsg) GetMsg() string {
|
|
|
|
|
if x != nil {
|
|
|
|
|
return x.Msg
|
|
|
|
|
}
|
|
|
|
|
return ""
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (x *CheckInMsg) GetIntegralChange() int64 {
|
|
|
|
|
if x != nil {
|
|
|
|
|
return x.IntegralChange
|
|
|
|
|
}
|
|
|
|
|
return 0
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (x *CheckInMsg) GetIsCritical() bool {
|
|
|
|
|
if x != nil {
|
|
|
|
|
return x.IsCritical
|
|
|
|
|
}
|
|
|
|
|
return false
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// QueryIntegralMsg 用户查询信息通知 push -> user.query
|
|
|
|
|
type UserQueryMsg struct {
|
|
|
|
|
state protoimpl.MessageState
|
|
|
|
|
sizeCache protoimpl.SizeCache
|
|
|
|
|
unknownFields protoimpl.UnknownFields
|
|
|
|
|
|
|
|
|
|
User *PbUser `protobuf:"bytes,1,opt,name=user,proto3" json:"user,omitempty"`
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (x *UserQueryMsg) Reset() {
|
|
|
|
|
*x = UserQueryMsg{}
|
|
|
|
|
if protoimpl.UnsafeEnabled {
|
|
|
|
|
mi := &file_common_common_proto_msgTypes[5]
|
|
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
|
|
|
ms.StoreMessageInfo(mi)
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (x *UserQueryMsg) String() string {
|
|
|
|
|
return protoimpl.X.MessageStringOf(x)
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (*UserQueryMsg) ProtoMessage() {}
|
|
|
|
|
|
|
|
|
|
func (x *UserQueryMsg) 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 UserQueryMsg.ProtoReflect.Descriptor instead.
|
|
|
|
|
func (*UserQueryMsg) Descriptor() ([]byte, []int) {
|
|
|
|
|
return file_common_common_proto_rawDescGZIP(), []int{5}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (x *UserQueryMsg) GetUser() *PbUser {
|
|
|
|
|
if x != nil {
|
|
|
|
|
return x.User
|
|
|
|
|
}
|
|
|
|
|
return nil
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// DanmakuMsg 普通弹幕消息 push -> live.danmaku
|
|
|
|
|
type DanmakuMsg struct {
|
|
|
|
|
state protoimpl.MessageState
|
|
|
|
@ -177,7 +441,7 @@ type DanmakuMsg struct {
|
|
|
|
|
func (x *DanmakuMsg) Reset() {
|
|
|
|
|
*x = DanmakuMsg{}
|
|
|
|
|
if protoimpl.UnsafeEnabled {
|
|
|
|
|
mi := &file_common_common_proto_msgTypes[2]
|
|
|
|
|
mi := &file_common_common_proto_msgTypes[6]
|
|
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
|
|
|
ms.StoreMessageInfo(mi)
|
|
|
|
|
}
|
|
|
|
@ -190,7 +454,7 @@ func (x *DanmakuMsg) String() string {
|
|
|
|
|
func (*DanmakuMsg) ProtoMessage() {}
|
|
|
|
|
|
|
|
|
|
func (x *DanmakuMsg) ProtoReflect() protoreflect.Message {
|
|
|
|
|
mi := &file_common_common_proto_msgTypes[2]
|
|
|
|
|
mi := &file_common_common_proto_msgTypes[6]
|
|
|
|
|
if protoimpl.UnsafeEnabled && x != nil {
|
|
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
|
|
|
if ms.LoadMessageInfo() == nil {
|
|
|
|
@ -203,7 +467,7 @@ func (x *DanmakuMsg) ProtoReflect() protoreflect.Message {
|
|
|
|
|
|
|
|
|
|
// Deprecated: Use DanmakuMsg.ProtoReflect.Descriptor instead.
|
|
|
|
|
func (*DanmakuMsg) Descriptor() ([]byte, []int) {
|
|
|
|
|
return file_common_common_proto_rawDescGZIP(), []int{2}
|
|
|
|
|
return file_common_common_proto_rawDescGZIP(), []int{6}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (x *DanmakuMsg) GetUser() *PbUser {
|
|
|
|
@ -220,7 +484,7 @@ func (x *DanmakuMsg) GetContent() string {
|
|
|
|
|
return ""
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// 赠送礼物 push -> game.gift
|
|
|
|
|
// 赠送礼物 push -> live.gift
|
|
|
|
|
type GiftMsg struct {
|
|
|
|
|
state protoimpl.MessageState
|
|
|
|
|
sizeCache protoimpl.SizeCache
|
|
|
|
@ -237,7 +501,7 @@ type GiftMsg struct {
|
|
|
|
|
func (x *GiftMsg) Reset() {
|
|
|
|
|
*x = GiftMsg{}
|
|
|
|
|
if protoimpl.UnsafeEnabled {
|
|
|
|
|
mi := &file_common_common_proto_msgTypes[3]
|
|
|
|
|
mi := &file_common_common_proto_msgTypes[7]
|
|
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
|
|
|
ms.StoreMessageInfo(mi)
|
|
|
|
|
}
|
|
|
|
@ -250,7 +514,7 @@ func (x *GiftMsg) String() string {
|
|
|
|
|
func (*GiftMsg) ProtoMessage() {}
|
|
|
|
|
|
|
|
|
|
func (x *GiftMsg) ProtoReflect() protoreflect.Message {
|
|
|
|
|
mi := &file_common_common_proto_msgTypes[3]
|
|
|
|
|
mi := &file_common_common_proto_msgTypes[7]
|
|
|
|
|
if protoimpl.UnsafeEnabled && x != nil {
|
|
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
|
|
|
if ms.LoadMessageInfo() == nil {
|
|
|
|
@ -263,7 +527,7 @@ func (x *GiftMsg) ProtoReflect() protoreflect.Message {
|
|
|
|
|
|
|
|
|
|
// Deprecated: Use GiftMsg.ProtoReflect.Descriptor instead.
|
|
|
|
|
func (*GiftMsg) Descriptor() ([]byte, []int) {
|
|
|
|
|
return file_common_common_proto_rawDescGZIP(), []int{3}
|
|
|
|
|
return file_common_common_proto_rawDescGZIP(), []int{7}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (x *GiftMsg) GetUser() *PbUser {
|
|
|
|
@ -329,24 +593,52 @@ var file_common_common_proto_rawDesc = []byte{
|
|
|
|
|
0x68, 0x61, 0x6e, 0x67, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x03, 0x52, 0x06, 0x63, 0x68, 0x61,
|
|
|
|
|
0x6e, 0x67, 0x65, 0x12, 0x1a, 0x0a, 0x08, 0x69, 0x6e, 0x74, 0x65, 0x67, 0x72, 0x61, 0x6c, 0x18,
|
|
|
|
|
0x03, 0x20, 0x01, 0x28, 0x03, 0x52, 0x08, 0x69, 0x6e, 0x74, 0x65, 0x67, 0x72, 0x61, 0x6c, 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,
|
|
|
|
|
0x47, 0x0a, 0x15, 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x55, 0x73, 0x65, 0x72, 0x49, 0x6e, 0x74,
|
|
|
|
|
0x65, 0x67, 0x72, 0x61, 0x6c, 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, 0x22, 0x90, 0x01, 0x0a, 0x16, 0x43, 0x68, 0x61,
|
|
|
|
|
0x6e, 0x67, 0x65, 0x55, 0x73, 0x65, 0x72, 0x49, 0x6e, 0x74, 0x65, 0x67, 0x72, 0x61, 0x6c, 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, 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, 0x12,
|
|
|
|
|
0x1a, 0x0a, 0x08, 0x69, 0x6e, 0x74, 0x65, 0x67, 0x72, 0x61, 0x6c, 0x18, 0x05, 0x20, 0x01, 0x28,
|
|
|
|
|
0x03, 0x52, 0x08, 0x69, 0x6e, 0x74, 0x65, 0x67, 0x72, 0x61, 0x6c, 0x22, 0xa7, 0x01, 0x0a, 0x0a,
|
|
|
|
|
0x43, 0x68, 0x65, 0x63, 0x6b, 0x49, 0x6e, 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,
|
|
|
|
|
0x72, 0x12, 0x18, 0x0a, 0x07, 0x73, 0x75, 0x63, 0x63, 0x65, 0x73, 0x73, 0x18, 0x02, 0x20, 0x01,
|
|
|
|
|
0x28, 0x08, 0x52, 0x07, 0x73, 0x75, 0x63, 0x63, 0x65, 0x73, 0x73, 0x12, 0x10, 0x0a, 0x03, 0x6d,
|
|
|
|
|
0x73, 0x67, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6d, 0x73, 0x67, 0x12, 0x26, 0x0a,
|
|
|
|
|
0x0e, 0x69, 0x6e, 0x74, 0x65, 0x67, 0x72, 0x61, 0x6c, 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x18,
|
|
|
|
|
0x04, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0e, 0x69, 0x6e, 0x74, 0x65, 0x67, 0x72, 0x61, 0x6c, 0x43,
|
|
|
|
|
0x68, 0x61, 0x6e, 0x67, 0x65, 0x12, 0x1e, 0x0a, 0x0a, 0x69, 0x73, 0x43, 0x72, 0x69, 0x74, 0x69,
|
|
|
|
|
0x63, 0x61, 0x6c, 0x18, 0x05, 0x20, 0x01, 0x28, 0x08, 0x52, 0x0a, 0x69, 0x73, 0x43, 0x72, 0x69,
|
|
|
|
|
0x74, 0x69, 0x63, 0x61, 0x6c, 0x22, 0x35, 0x0a, 0x0c, 0x55, 0x73, 0x65, 0x72, 0x51, 0x75, 0x65,
|
|
|
|
|
0x72, 0x79, 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, 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 (
|
|
|
|
@ -361,22 +653,28 @@ func file_common_common_proto_rawDescGZIP() []byte {
|
|
|
|
|
return file_common_common_proto_rawDescData
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
var file_common_common_proto_msgTypes = make([]protoimpl.MessageInfo, 4)
|
|
|
|
|
var file_common_common_proto_msgTypes = make([]protoimpl.MessageInfo, 8)
|
|
|
|
|
var file_common_common_proto_goTypes = []interface{}{
|
|
|
|
|
(*PbUser)(nil), // 0: pb.common.PbUser
|
|
|
|
|
(*UserIntegralChanged)(nil), // 1: pb.common.UserIntegralChanged
|
|
|
|
|
(*DanmakuMsg)(nil), // 2: pb.common.DanmakuMsg
|
|
|
|
|
(*GiftMsg)(nil), // 3: pb.common.GiftMsg
|
|
|
|
|
(*PbUser)(nil), // 0: pb.common.PbUser
|
|
|
|
|
(*UserIntegralChanged)(nil), // 1: pb.common.UserIntegralChanged
|
|
|
|
|
(*ChangeUserIntegralReq)(nil), // 2: pb.common.ChangeUserIntegralReq
|
|
|
|
|
(*ChangeUserIntegralResp)(nil), // 3: pb.common.ChangeUserIntegralResp
|
|
|
|
|
(*CheckInMsg)(nil), // 4: pb.common.CheckInMsg
|
|
|
|
|
(*UserQueryMsg)(nil), // 5: pb.common.UserQueryMsg
|
|
|
|
|
(*DanmakuMsg)(nil), // 6: pb.common.DanmakuMsg
|
|
|
|
|
(*GiftMsg)(nil), // 7: pb.common.GiftMsg
|
|
|
|
|
}
|
|
|
|
|
var file_common_common_proto_depIdxs = []int32{
|
|
|
|
|
0, // 0: pb.common.UserIntegralChanged.user:type_name -> pb.common.PbUser
|
|
|
|
|
0, // 1: pb.common.DanmakuMsg.user:type_name -> pb.common.PbUser
|
|
|
|
|
0, // 2: pb.common.GiftMsg.user:type_name -> pb.common.PbUser
|
|
|
|
|
3, // [3:3] is the sub-list for method output_type
|
|
|
|
|
3, // [3:3] is the sub-list for method input_type
|
|
|
|
|
3, // [3:3] is the sub-list for extension type_name
|
|
|
|
|
3, // [3:3] is the sub-list for extension extendee
|
|
|
|
|
0, // [0:3] is the sub-list for field type_name
|
|
|
|
|
0, // 1: pb.common.CheckInMsg.user:type_name -> pb.common.PbUser
|
|
|
|
|
0, // 2: pb.common.UserQueryMsg.user:type_name -> pb.common.PbUser
|
|
|
|
|
0, // 3: pb.common.DanmakuMsg.user:type_name -> pb.common.PbUser
|
|
|
|
|
0, // 4: pb.common.GiftMsg.user:type_name -> pb.common.PbUser
|
|
|
|
|
5, // [5:5] is the sub-list for method output_type
|
|
|
|
|
5, // [5:5] is the sub-list for method input_type
|
|
|
|
|
5, // [5:5] is the sub-list for extension type_name
|
|
|
|
|
5, // [5:5] is the sub-list for extension extendee
|
|
|
|
|
0, // [0:5] is the sub-list for field type_name
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func init() { file_common_common_proto_init() }
|
|
|
|
@ -410,7 +708,7 @@ func file_common_common_proto_init() {
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
file_common_common_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} {
|
|
|
|
|
switch v := v.(*DanmakuMsg); i {
|
|
|
|
|
switch v := v.(*ChangeUserIntegralReq); i {
|
|
|
|
|
case 0:
|
|
|
|
|
return &v.state
|
|
|
|
|
case 1:
|
|
|
|
@ -422,6 +720,54 @@ func file_common_common_proto_init() {
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
file_common_common_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} {
|
|
|
|
|
switch v := v.(*ChangeUserIntegralResp); 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.(*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[5].Exporter = func(v interface{}, i int) interface{} {
|
|
|
|
|
switch v := v.(*UserQueryMsg); 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.(*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[7].Exporter = func(v interface{}, i int) interface{} {
|
|
|
|
|
switch v := v.(*GiftMsg); i {
|
|
|
|
|
case 0:
|
|
|
|
|
return &v.state
|
|
|
|
@ -440,7 +786,7 @@ func file_common_common_proto_init() {
|
|
|
|
|
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
|
|
|
|
|
RawDescriptor: file_common_common_proto_rawDesc,
|
|
|
|
|
NumEnums: 0,
|
|
|
|
|
NumMessages: 4,
|
|
|
|
|
NumMessages: 8,
|
|
|
|
|
NumExtensions: 0,
|
|
|
|
|
NumServices: 0,
|
|
|
|
|
},
|
|
|
|
|