diff --git a/pb/vars/vars.pb.go b/pb/vars/vars.pb.go new file mode 100644 index 0000000..49b2f76 --- /dev/null +++ b/pb/vars/vars.pb.go @@ -0,0 +1,368 @@ +// Code generated by protoc-gen-go. DO NOT EDIT. +// versions: +// protoc-gen-go v1.27.1 +// protoc v3.19.4 +// source: vars/vars.proto + +package pbVars + +import ( + 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) +) + +type Platform int32 + +const ( + Platform_Bilibili Platform = 0 // B站 + Platform_Huya Platform = 1 // 虎牙 + Platform_Douyu Platform = 2 // 斗鱼 + Platform_Tiktok Platform = 3 // 抖音 +) + +// Enum value maps for Platform. +var ( + Platform_name = map[int32]string{ + 0: "Bilibili", + 1: "Huya", + 2: "Douyu", + 3: "Tiktok", + } + Platform_value = map[string]int32{ + "Bilibili": 0, + "Huya": 1, + "Douyu": 2, + "Tiktok": 3, + } +) + +func (x Platform) Enum() *Platform { + p := new(Platform) + *p = x + return p +} + +func (x Platform) String() string { + return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) +} + +func (Platform) Descriptor() protoreflect.EnumDescriptor { + return file_vars_vars_proto_enumTypes[0].Descriptor() +} + +func (Platform) Type() protoreflect.EnumType { + return &file_vars_vars_proto_enumTypes[0] +} + +func (x Platform) Number() protoreflect.EnumNumber { + return protoreflect.EnumNumber(x) +} + +// Deprecated: Use Platform.Descriptor instead. +func (Platform) EnumDescriptor() ([]byte, []int) { + return file_vars_vars_proto_rawDescGZIP(), []int{0} +} + +type UserCoinChangedReason int32 + +const ( + ///// 消费 + UserCoinChangedReason_Pay UserCoinChangedReason = 0 // 通用消费 + UserCoinChangedReason_BuyBattleFood UserCoinChangedReason = 1 // 购买粮草 + UserCoinChangedReason_BuyEliteUnit UserCoinChangedReason = 2 // 购买精英单位 + UserCoinChangedReason_BuyTitle UserCoinChangedReason = 3 // 购买称号 + ///// 礼物 + UserCoinChangedReason_SendGift UserCoinChangedReason = 4 // 赠送礼物 + UserCoinChangedReason_BuyNobility UserCoinChangedReason = 5 // 购买贵族 + ///// 领取 + UserCoinChangedReason_DrawGiftPack UserCoinChangedReason = 10 // 领取礼包 + UserCoinChangedReason_CheckIn UserCoinChangedReason = 11 // 签到打卡 + ///// 游戏事件 + UserCoinChangedReason_EventRankSubmit UserCoinChangedReason = 20 // 排行榜结算变动 + UserCoinChangedReason_EventBattleEnd UserCoinChangedReason = 21 // 战局结束奖励 + ///// 其它事件 + UserCoinChangedReason_Transfer UserCoinChangedReason = 30 // 转账 +) + +// Enum value maps for UserCoinChangedReason. +var ( + UserCoinChangedReason_name = map[int32]string{ + 0: "Pay", + 1: "BuyBattleFood", + 2: "BuyEliteUnit", + 3: "BuyTitle", + 4: "SendGift", + 5: "BuyNobility", + 10: "DrawGiftPack", + 11: "CheckIn", + 20: "EventRankSubmit", + 21: "EventBattleEnd", + 30: "Transfer", + } + UserCoinChangedReason_value = map[string]int32{ + "Pay": 0, + "BuyBattleFood": 1, + "BuyEliteUnit": 2, + "BuyTitle": 3, + "SendGift": 4, + "BuyNobility": 5, + "DrawGiftPack": 10, + "CheckIn": 11, + "EventRankSubmit": 20, + "EventBattleEnd": 21, + "Transfer": 30, + } +) + +func (x UserCoinChangedReason) Enum() *UserCoinChangedReason { + p := new(UserCoinChangedReason) + *p = x + return p +} + +func (x UserCoinChangedReason) String() string { + return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) +} + +func (UserCoinChangedReason) Descriptor() protoreflect.EnumDescriptor { + return file_vars_vars_proto_enumTypes[1].Descriptor() +} + +func (UserCoinChangedReason) Type() protoreflect.EnumType { + return &file_vars_vars_proto_enumTypes[1] +} + +func (x UserCoinChangedReason) Number() protoreflect.EnumNumber { + return protoreflect.EnumNumber(x) +} + +// Deprecated: Use UserCoinChangedReason.Descriptor instead. +func (UserCoinChangedReason) EnumDescriptor() ([]byte, []int) { + return file_vars_vars_proto_rawDescGZIP(), []int{1} +} + +type Goods int32 + +const ( + Goods_Title Goods = 0 // 称号 + Goods_Elite Goods = 1 // 精英单位 +) + +// Enum value maps for Goods. +var ( + Goods_name = map[int32]string{ + 0: "Title", + 1: "Elite", + } + Goods_value = map[string]int32{ + "Title": 0, + "Elite": 1, + } +) + +func (x Goods) Enum() *Goods { + p := new(Goods) + *p = x + return p +} + +func (x Goods) String() string { + return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) +} + +func (Goods) Descriptor() protoreflect.EnumDescriptor { + return file_vars_vars_proto_enumTypes[2].Descriptor() +} + +func (Goods) Type() protoreflect.EnumType { + return &file_vars_vars_proto_enumTypes[2] +} + +func (x Goods) Number() protoreflect.EnumNumber { + return protoreflect.EnumNumber(x) +} + +// Deprecated: Use Goods.Descriptor instead. +func (Goods) EnumDescriptor() ([]byte, []int) { + return file_vars_vars_proto_rawDescGZIP(), []int{2} +} + +type RankType int32 + +const ( + RankType_Unknown RankType = 0 + RankType_Damage RankType = 1 // 伤害榜 + RankType_DeDamage RankType = 2 // 受伤榜 + RankType_General RankType = 3 // 名将榜 + RankType_DeGeneral RankType = 4 // 落马榜 + RankType_KillUnit RankType = 5 // 小兵击杀 + RankType_DeKillUnit RankType = 6 // 小兵被杀 + RankType_KillPlayer RankType = 7 // 击杀玩家 + RankType_DeKillPlayer RankType = 8 // 被杀榜 + RankType_Win RankType = 9 // 获胜榜 + RankType_Lost RankType = 10 // 战败榜 + RankType_FirstBlood RankType = 11 // 一血榜 + RankType_DeFirstBlood RankType = 12 // 被拿一血榜 +) + +// Enum value maps for RankType. +var ( + RankType_name = map[int32]string{ + 0: "Unknown", + 1: "Damage", + 2: "DeDamage", + 3: "General", + 4: "DeGeneral", + 5: "KillUnit", + 6: "DeKillUnit", + 7: "KillPlayer", + 8: "DeKillPlayer", + 9: "Win", + 10: "Lost", + 11: "FirstBlood", + 12: "DeFirstBlood", + } + RankType_value = map[string]int32{ + "Unknown": 0, + "Damage": 1, + "DeDamage": 2, + "General": 3, + "DeGeneral": 4, + "KillUnit": 5, + "DeKillUnit": 6, + "KillPlayer": 7, + "DeKillPlayer": 8, + "Win": 9, + "Lost": 10, + "FirstBlood": 11, + "DeFirstBlood": 12, + } +) + +func (x RankType) Enum() *RankType { + p := new(RankType) + *p = x + return p +} + +func (x RankType) String() string { + return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) +} + +func (RankType) Descriptor() protoreflect.EnumDescriptor { + return file_vars_vars_proto_enumTypes[3].Descriptor() +} + +func (RankType) Type() protoreflect.EnumType { + return &file_vars_vars_proto_enumTypes[3] +} + +func (x RankType) Number() protoreflect.EnumNumber { + return protoreflect.EnumNumber(x) +} + +// Deprecated: Use RankType.Descriptor instead. +func (RankType) EnumDescriptor() ([]byte, []int) { + return file_vars_vars_proto_rawDescGZIP(), []int{3} +} + +var File_vars_vars_proto protoreflect.FileDescriptor + +var file_vars_vars_proto_rawDesc = []byte{ + 0x0a, 0x0f, 0x76, 0x61, 0x72, 0x73, 0x2f, 0x76, 0x61, 0x72, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, + 0x6f, 0x12, 0x07, 0x70, 0x62, 0x2e, 0x76, 0x61, 0x72, 0x73, 0x2a, 0x39, 0x0a, 0x08, 0x50, 0x6c, + 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x12, 0x0c, 0x0a, 0x08, 0x42, 0x69, 0x6c, 0x69, 0x62, 0x69, + 0x6c, 0x69, 0x10, 0x00, 0x12, 0x08, 0x0a, 0x04, 0x48, 0x75, 0x79, 0x61, 0x10, 0x01, 0x12, 0x09, + 0x0a, 0x05, 0x44, 0x6f, 0x75, 0x79, 0x75, 0x10, 0x02, 0x12, 0x0a, 0x0a, 0x06, 0x54, 0x69, 0x6b, + 0x74, 0x6f, 0x6b, 0x10, 0x03, 0x2a, 0xc8, 0x01, 0x0a, 0x15, 0x55, 0x73, 0x65, 0x72, 0x43, 0x6f, + 0x69, 0x6e, 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x64, 0x52, 0x65, 0x61, 0x73, 0x6f, 0x6e, 0x12, + 0x07, 0x0a, 0x03, 0x50, 0x61, 0x79, 0x10, 0x00, 0x12, 0x11, 0x0a, 0x0d, 0x42, 0x75, 0x79, 0x42, + 0x61, 0x74, 0x74, 0x6c, 0x65, 0x46, 0x6f, 0x6f, 0x64, 0x10, 0x01, 0x12, 0x10, 0x0a, 0x0c, 0x42, + 0x75, 0x79, 0x45, 0x6c, 0x69, 0x74, 0x65, 0x55, 0x6e, 0x69, 0x74, 0x10, 0x02, 0x12, 0x0c, 0x0a, + 0x08, 0x42, 0x75, 0x79, 0x54, 0x69, 0x74, 0x6c, 0x65, 0x10, 0x03, 0x12, 0x0c, 0x0a, 0x08, 0x53, + 0x65, 0x6e, 0x64, 0x47, 0x69, 0x66, 0x74, 0x10, 0x04, 0x12, 0x0f, 0x0a, 0x0b, 0x42, 0x75, 0x79, + 0x4e, 0x6f, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x10, 0x05, 0x12, 0x10, 0x0a, 0x0c, 0x44, 0x72, + 0x61, 0x77, 0x47, 0x69, 0x66, 0x74, 0x50, 0x61, 0x63, 0x6b, 0x10, 0x0a, 0x12, 0x0b, 0x0a, 0x07, + 0x43, 0x68, 0x65, 0x63, 0x6b, 0x49, 0x6e, 0x10, 0x0b, 0x12, 0x13, 0x0a, 0x0f, 0x45, 0x76, 0x65, + 0x6e, 0x74, 0x52, 0x61, 0x6e, 0x6b, 0x53, 0x75, 0x62, 0x6d, 0x69, 0x74, 0x10, 0x14, 0x12, 0x12, + 0x0a, 0x0e, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x42, 0x61, 0x74, 0x74, 0x6c, 0x65, 0x45, 0x6e, 0x64, + 0x10, 0x15, 0x12, 0x0c, 0x0a, 0x08, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x66, 0x65, 0x72, 0x10, 0x1e, + 0x2a, 0x1d, 0x0a, 0x05, 0x47, 0x6f, 0x6f, 0x64, 0x73, 0x12, 0x09, 0x0a, 0x05, 0x54, 0x69, 0x74, + 0x6c, 0x65, 0x10, 0x00, 0x12, 0x09, 0x0a, 0x05, 0x45, 0x6c, 0x69, 0x74, 0x65, 0x10, 0x01, 0x2a, + 0xc2, 0x01, 0x0a, 0x08, 0x52, 0x61, 0x6e, 0x6b, 0x54, 0x79, 0x70, 0x65, 0x12, 0x0b, 0x0a, 0x07, + 0x55, 0x6e, 0x6b, 0x6e, 0x6f, 0x77, 0x6e, 0x10, 0x00, 0x12, 0x0a, 0x0a, 0x06, 0x44, 0x61, 0x6d, + 0x61, 0x67, 0x65, 0x10, 0x01, 0x12, 0x0c, 0x0a, 0x08, 0x44, 0x65, 0x44, 0x61, 0x6d, 0x61, 0x67, + 0x65, 0x10, 0x02, 0x12, 0x0b, 0x0a, 0x07, 0x47, 0x65, 0x6e, 0x65, 0x72, 0x61, 0x6c, 0x10, 0x03, + 0x12, 0x0d, 0x0a, 0x09, 0x44, 0x65, 0x47, 0x65, 0x6e, 0x65, 0x72, 0x61, 0x6c, 0x10, 0x04, 0x12, + 0x0c, 0x0a, 0x08, 0x4b, 0x69, 0x6c, 0x6c, 0x55, 0x6e, 0x69, 0x74, 0x10, 0x05, 0x12, 0x0e, 0x0a, + 0x0a, 0x44, 0x65, 0x4b, 0x69, 0x6c, 0x6c, 0x55, 0x6e, 0x69, 0x74, 0x10, 0x06, 0x12, 0x0e, 0x0a, + 0x0a, 0x4b, 0x69, 0x6c, 0x6c, 0x50, 0x6c, 0x61, 0x79, 0x65, 0x72, 0x10, 0x07, 0x12, 0x10, 0x0a, + 0x0c, 0x44, 0x65, 0x4b, 0x69, 0x6c, 0x6c, 0x50, 0x6c, 0x61, 0x79, 0x65, 0x72, 0x10, 0x08, 0x12, + 0x07, 0x0a, 0x03, 0x57, 0x69, 0x6e, 0x10, 0x09, 0x12, 0x08, 0x0a, 0x04, 0x4c, 0x6f, 0x73, 0x74, + 0x10, 0x0a, 0x12, 0x0e, 0x0a, 0x0a, 0x46, 0x69, 0x72, 0x73, 0x74, 0x42, 0x6c, 0x6f, 0x6f, 0x64, + 0x10, 0x0b, 0x12, 0x10, 0x0a, 0x0c, 0x44, 0x65, 0x46, 0x69, 0x72, 0x73, 0x74, 0x42, 0x6c, 0x6f, + 0x6f, 0x64, 0x10, 0x0c, 0x42, 0x19, 0x5a, 0x17, 0x64, 0x63, 0x67, 0x2f, 0x67, 0x61, 0x6d, 0x65, + 0x2f, 0x70, 0x62, 0x2f, 0x76, 0x61, 0x72, 0x73, 0x3b, 0x70, 0x62, 0x56, 0x61, 0x72, 0x73, 0x62, + 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, +} + +var ( + file_vars_vars_proto_rawDescOnce sync.Once + file_vars_vars_proto_rawDescData = file_vars_vars_proto_rawDesc +) + +func file_vars_vars_proto_rawDescGZIP() []byte { + file_vars_vars_proto_rawDescOnce.Do(func() { + file_vars_vars_proto_rawDescData = protoimpl.X.CompressGZIP(file_vars_vars_proto_rawDescData) + }) + return file_vars_vars_proto_rawDescData +} + +var file_vars_vars_proto_enumTypes = make([]protoimpl.EnumInfo, 4) +var file_vars_vars_proto_goTypes = []interface{}{ + (Platform)(0), // 0: pb.vars.Platform + (UserCoinChangedReason)(0), // 1: pb.vars.UserCoinChangedReason + (Goods)(0), // 2: pb.vars.Goods + (RankType)(0), // 3: pb.vars.RankType +} +var file_vars_vars_proto_depIdxs = []int32{ + 0, // [0:0] is the sub-list for method output_type + 0, // [0:0] is the sub-list for method input_type + 0, // [0:0] is the sub-list for extension type_name + 0, // [0:0] is the sub-list for extension extendee + 0, // [0:0] is the sub-list for field type_name +} + +func init() { file_vars_vars_proto_init() } +func file_vars_vars_proto_init() { + if File_vars_vars_proto != nil { + return + } + type x struct{} + out := protoimpl.TypeBuilder{ + File: protoimpl.DescBuilder{ + GoPackagePath: reflect.TypeOf(x{}).PkgPath(), + RawDescriptor: file_vars_vars_proto_rawDesc, + NumEnums: 4, + NumMessages: 0, + NumExtensions: 0, + NumServices: 0, + }, + GoTypes: file_vars_vars_proto_goTypes, + DependencyIndexes: file_vars_vars_proto_depIdxs, + EnumInfos: file_vars_vars_proto_enumTypes, + }.Build() + File_vars_vars_proto = out.File + file_vars_vars_proto_rawDesc = nil + file_vars_vars_proto_goTypes = nil + file_vars_vars_proto_depIdxs = nil +}