活动类型枚举定义
This commit is contained in:
parent
a71bf2b3ee
commit
cca1bee9c5
@ -20,6 +20,83 @@ const (
|
||||
_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
|
||||
)
|
||||
|
||||
type HdType int32
|
||||
|
||||
const (
|
||||
HdType_null HdType = 0 //无效类型
|
||||
HdType_HdTypeWarorder HdType = 1 //圣桃战令类型
|
||||
HdType_HdTypePay HdType = 2 //圣桃充值礼包
|
||||
HdType_KFSevenTask HdType = 3 //开服任务
|
||||
HdType_XSFundPhysical HdType = 4 //现时活动 体力基金
|
||||
HdType_XSFundRecruit HdType = 5 //现时活动 招募基金
|
||||
HdType_XSFundExp HdType = 6 //现时活动 经验基金
|
||||
HdType_HdLevel HdType = 7 //开服等级活动
|
||||
HdType_HdTypeSign HdType = 8 //七日签到
|
||||
HdType_AddUpRecharge HdType = 10 //累计充值
|
||||
// 特殊类型活动 只受活动开启限制 具体玩法 走excel 配置
|
||||
HdType_HdTypeTurntable HdType = 1001 //大转盘
|
||||
HdType_HdCelebration HdType = 1002 // 庆典活动
|
||||
)
|
||||
|
||||
// Enum value maps for HdType.
|
||||
var (
|
||||
HdType_name = map[int32]string{
|
||||
0: "null",
|
||||
1: "HdTypeWarorder",
|
||||
2: "HdTypePay",
|
||||
3: "KFSevenTask",
|
||||
4: "XSFundPhysical",
|
||||
5: "XSFundRecruit",
|
||||
6: "XSFundExp",
|
||||
7: "HdLevel",
|
||||
8: "HdTypeSign",
|
||||
10: "AddUpRecharge",
|
||||
1001: "HdTypeTurntable",
|
||||
1002: "HdCelebration",
|
||||
}
|
||||
HdType_value = map[string]int32{
|
||||
"null": 0,
|
||||
"HdTypeWarorder": 1,
|
||||
"HdTypePay": 2,
|
||||
"KFSevenTask": 3,
|
||||
"XSFundPhysical": 4,
|
||||
"XSFundRecruit": 5,
|
||||
"XSFundExp": 6,
|
||||
"HdLevel": 7,
|
||||
"HdTypeSign": 8,
|
||||
"AddUpRecharge": 10,
|
||||
"HdTypeTurntable": 1001,
|
||||
"HdCelebration": 1002,
|
||||
}
|
||||
)
|
||||
|
||||
func (x HdType) Enum() *HdType {
|
||||
p := new(HdType)
|
||||
*p = x
|
||||
return p
|
||||
}
|
||||
|
||||
func (x HdType) String() string {
|
||||
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
|
||||
}
|
||||
|
||||
func (HdType) Descriptor() protoreflect.EnumDescriptor {
|
||||
return file_activity_activity_db_proto_enumTypes[0].Descriptor()
|
||||
}
|
||||
|
||||
func (HdType) Type() protoreflect.EnumType {
|
||||
return &file_activity_activity_db_proto_enumTypes[0]
|
||||
}
|
||||
|
||||
func (x HdType) Number() protoreflect.EnumNumber {
|
||||
return protoreflect.EnumNumber(x)
|
||||
}
|
||||
|
||||
// Deprecated: Use HdType.Descriptor instead.
|
||||
func (HdType) EnumDescriptor() ([]byte, []int) {
|
||||
return file_activity_activity_db_proto_rawDescGZIP(), []int{0}
|
||||
}
|
||||
|
||||
type Arr struct {
|
||||
state protoimpl.MessageState
|
||||
sizeCache protoimpl.SizeCache
|
||||
@ -464,8 +541,22 @@ var file_activity_activity_db_proto_rawDesc = []byte{
|
||||
0x0b, 0x47, 0x6f, 0x74, 0x61, 0x72, 0x72, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03,
|
||||
0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x05, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x14,
|
||||
0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x05, 0x52, 0x05, 0x76,
|
||||
0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x42, 0x06, 0x5a, 0x04, 0x2e, 0x3b, 0x70, 0x62,
|
||||
0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
|
||||
0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x2a, 0xd6, 0x01, 0x0a, 0x06, 0x48, 0x64, 0x54,
|
||||
0x79, 0x70, 0x65, 0x12, 0x08, 0x0a, 0x04, 0x6e, 0x75, 0x6c, 0x6c, 0x10, 0x00, 0x12, 0x12, 0x0a,
|
||||
0x0e, 0x48, 0x64, 0x54, 0x79, 0x70, 0x65, 0x57, 0x61, 0x72, 0x6f, 0x72, 0x64, 0x65, 0x72, 0x10,
|
||||
0x01, 0x12, 0x0d, 0x0a, 0x09, 0x48, 0x64, 0x54, 0x79, 0x70, 0x65, 0x50, 0x61, 0x79, 0x10, 0x02,
|
||||
0x12, 0x0f, 0x0a, 0x0b, 0x4b, 0x46, 0x53, 0x65, 0x76, 0x65, 0x6e, 0x54, 0x61, 0x73, 0x6b, 0x10,
|
||||
0x03, 0x12, 0x12, 0x0a, 0x0e, 0x58, 0x53, 0x46, 0x75, 0x6e, 0x64, 0x50, 0x68, 0x79, 0x73, 0x69,
|
||||
0x63, 0x61, 0x6c, 0x10, 0x04, 0x12, 0x11, 0x0a, 0x0d, 0x58, 0x53, 0x46, 0x75, 0x6e, 0x64, 0x52,
|
||||
0x65, 0x63, 0x72, 0x75, 0x69, 0x74, 0x10, 0x05, 0x12, 0x0d, 0x0a, 0x09, 0x58, 0x53, 0x46, 0x75,
|
||||
0x6e, 0x64, 0x45, 0x78, 0x70, 0x10, 0x06, 0x12, 0x0b, 0x0a, 0x07, 0x48, 0x64, 0x4c, 0x65, 0x76,
|
||||
0x65, 0x6c, 0x10, 0x07, 0x12, 0x0e, 0x0a, 0x0a, 0x48, 0x64, 0x54, 0x79, 0x70, 0x65, 0x53, 0x69,
|
||||
0x67, 0x6e, 0x10, 0x08, 0x12, 0x11, 0x0a, 0x0d, 0x41, 0x64, 0x64, 0x55, 0x70, 0x52, 0x65, 0x63,
|
||||
0x68, 0x61, 0x72, 0x67, 0x65, 0x10, 0x0a, 0x12, 0x14, 0x0a, 0x0f, 0x48, 0x64, 0x54, 0x79, 0x70,
|
||||
0x65, 0x54, 0x75, 0x72, 0x6e, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x10, 0xe9, 0x07, 0x12, 0x12, 0x0a,
|
||||
0x0d, 0x48, 0x64, 0x43, 0x65, 0x6c, 0x65, 0x62, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x10, 0xea,
|
||||
0x07, 0x42, 0x06, 0x5a, 0x04, 0x2e, 0x3b, 0x70, 0x62, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f,
|
||||
0x33,
|
||||
}
|
||||
|
||||
var (
|
||||
@ -480,20 +571,22 @@ func file_activity_activity_db_proto_rawDescGZIP() []byte {
|
||||
return file_activity_activity_db_proto_rawDescData
|
||||
}
|
||||
|
||||
var file_activity_activity_db_proto_enumTypes = make([]protoimpl.EnumInfo, 1)
|
||||
var file_activity_activity_db_proto_msgTypes = make([]protoimpl.MessageInfo, 5)
|
||||
var file_activity_activity_db_proto_goTypes = []interface{}{
|
||||
(*Arr)(nil), // 0: Arr
|
||||
(*ActivityInfo)(nil), // 1: ActivityInfo
|
||||
(*DBHuodong)(nil), // 2: DBHuodong
|
||||
(*DBActivityData)(nil), // 3: DBActivityData
|
||||
nil, // 4: DBActivityData.GotarrEntry
|
||||
(*UserAssets)(nil), // 5: UserAssets
|
||||
(HdType)(0), // 0: HdType
|
||||
(*Arr)(nil), // 1: Arr
|
||||
(*ActivityInfo)(nil), // 2: ActivityInfo
|
||||
(*DBHuodong)(nil), // 3: DBHuodong
|
||||
(*DBActivityData)(nil), // 4: DBActivityData
|
||||
nil, // 5: DBActivityData.GotarrEntry
|
||||
(*UserAssets)(nil), // 6: UserAssets
|
||||
}
|
||||
var file_activity_activity_db_proto_depIdxs = []int32{
|
||||
5, // 0: Arr.prize:type_name -> UserAssets
|
||||
0, // 1: ActivityInfo.prize:type_name -> Arr
|
||||
1, // 2: DBHuodong.data:type_name -> ActivityInfo
|
||||
4, // 3: DBActivityData.gotarr:type_name -> DBActivityData.GotarrEntry
|
||||
6, // 0: Arr.prize:type_name -> UserAssets
|
||||
1, // 1: ActivityInfo.prize:type_name -> Arr
|
||||
2, // 2: DBHuodong.data:type_name -> ActivityInfo
|
||||
5, // 3: DBActivityData.gotarr:type_name -> DBActivityData.GotarrEntry
|
||||
4, // [4:4] is the sub-list for method output_type
|
||||
4, // [4:4] is the sub-list for method input_type
|
||||
4, // [4:4] is the sub-list for extension type_name
|
||||
@ -562,13 +655,14 @@ func file_activity_activity_db_proto_init() {
|
||||
File: protoimpl.DescBuilder{
|
||||
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
|
||||
RawDescriptor: file_activity_activity_db_proto_rawDesc,
|
||||
NumEnums: 0,
|
||||
NumEnums: 1,
|
||||
NumMessages: 5,
|
||||
NumExtensions: 0,
|
||||
NumServices: 0,
|
||||
},
|
||||
GoTypes: file_activity_activity_db_proto_goTypes,
|
||||
DependencyIndexes: file_activity_activity_db_proto_depIdxs,
|
||||
EnumInfos: file_activity_activity_db_proto_enumTypes,
|
||||
MessageInfos: file_activity_activity_db_proto_msgTypes,
|
||||
}.Build()
|
||||
File_activity_activity_db_proto = out.File
|
||||
|
Loading…
Reference in New Issue
Block a user