// message结构的属性名请使用 驼峰小写字母开始 // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.36.8 // protoc v6.31.1 // source: charge.proto package pb import ( protoreflect "google.golang.org/protobuf/reflect/protoreflect" protoimpl "google.golang.org/protobuf/runtime/protoimpl" reflect "reflect" sync "sync" unsafe "unsafe" ) 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 ChargeData struct { state protoimpl.MessageState `protogen:"open.v1"` // 周月卡信息 key: 充值项id value: 过期时间戳(毫秒) Cards map[int32]*Card `protobuf:"bytes,1,rep,name=Cards,proto3" json:"Cards,omitempty" protobuf_key:"varint,1,opt,name=key" protobuf_val:"bytes,2,opt,name=value"` // 金币商城充值记录,用来判断首充 Golds []int32 `protobuf:"varint,2,rep,packed,name=Golds,proto3" json:"Golds,omitempty"` unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache } func (x *ChargeData) Reset() { *x = ChargeData{} mi := &file_charge_proto_msgTypes[0] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } func (x *ChargeData) String() string { return protoimpl.X.MessageStringOf(x) } func (*ChargeData) ProtoMessage() {} func (x *ChargeData) ProtoReflect() protoreflect.Message { mi := &file_charge_proto_msgTypes[0] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) } return ms } return mi.MessageOf(x) } // Deprecated: Use ChargeData.ProtoReflect.Descriptor instead. func (*ChargeData) Descriptor() ([]byte, []int) { return file_charge_proto_rawDescGZIP(), []int{0} } func (x *ChargeData) GetCards() map[int32]*Card { if x != nil { return x.Cards } return nil } func (x *ChargeData) GetGolds() []int32 { if x != nil { return x.Golds } return nil } // 周月卡信息 type Card struct { state protoimpl.MessageState `protogen:"open.v1"` // 过期时间戳(毫秒) ExpireTime int64 `protobuf:"varint,1,opt,name=expireTime,proto3" json:"expireTime,omitempty"` // 今日是否已领取 IsReceive bool `protobuf:"varint,2,opt,name=isReceive,proto3" json:"isReceive,omitempty"` unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache } func (x *Card) Reset() { *x = Card{} mi := &file_charge_proto_msgTypes[1] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } func (x *Card) String() string { return protoimpl.X.MessageStringOf(x) } func (*Card) ProtoMessage() {} func (x *Card) ProtoReflect() protoreflect.Message { mi := &file_charge_proto_msgTypes[1] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) } return ms } return mi.MessageOf(x) } // Deprecated: Use Card.ProtoReflect.Descriptor instead. func (*Card) Descriptor() ([]byte, []int) { return file_charge_proto_rawDescGZIP(), []int{1} } func (x *Card) GetExpireTime() int64 { if x != nil { return x.ExpireTime } return 0 } func (x *Card) GetIsReceive() bool { if x != nil { return x.IsReceive } return false } // 充值订单创建 type ChargeCreate struct { state protoimpl.MessageState `protogen:"open.v1"` // 充值项id ChargeID int32 `protobuf:"varint,1,opt,name=chargeID,proto3" json:"chargeID,omitempty"` // 充值项参数 ChargeParams int32 `protobuf:"varint,2,opt,name=chargeParams,proto3" json:"chargeParams,omitempty"` unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache } func (x *ChargeCreate) Reset() { *x = ChargeCreate{} mi := &file_charge_proto_msgTypes[2] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } func (x *ChargeCreate) String() string { return protoimpl.X.MessageStringOf(x) } func (*ChargeCreate) ProtoMessage() {} func (x *ChargeCreate) ProtoReflect() protoreflect.Message { mi := &file_charge_proto_msgTypes[2] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) } return ms } return mi.MessageOf(x) } // Deprecated: Use ChargeCreate.ProtoReflect.Descriptor instead. func (*ChargeCreate) Descriptor() ([]byte, []int) { return file_charge_proto_rawDescGZIP(), []int{2} } func (x *ChargeCreate) GetChargeID() int32 { if x != nil { return x.ChargeID } return 0 } func (x *ChargeCreate) GetChargeParams() int32 { if x != nil { return x.ChargeParams } return 0 } // 充值订单创建响应结果 type ChargeCreateResponse struct { state protoimpl.MessageState `protogen:"open.v1"` // 充值项id ChargeID int32 `protobuf:"varint,1,opt,name=chargeID,proto3" json:"chargeID,omitempty"` // 游戏订单id OrderID int64 `protobuf:"varint,2,opt,name=orderID,proto3" json:"orderID,omitempty"` // 返回参数 Params map[string]string `protobuf:"bytes,3,rep,name=params,proto3" json:"params,omitempty" protobuf_key:"bytes,1,opt,name=key" protobuf_val:"bytes,2,opt,name=value"` unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache } func (x *ChargeCreateResponse) Reset() { *x = ChargeCreateResponse{} mi := &file_charge_proto_msgTypes[3] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } func (x *ChargeCreateResponse) String() string { return protoimpl.X.MessageStringOf(x) } func (*ChargeCreateResponse) ProtoMessage() {} func (x *ChargeCreateResponse) ProtoReflect() protoreflect.Message { mi := &file_charge_proto_msgTypes[3] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) } return ms } return mi.MessageOf(x) } // Deprecated: Use ChargeCreateResponse.ProtoReflect.Descriptor instead. func (*ChargeCreateResponse) Descriptor() ([]byte, []int) { return file_charge_proto_rawDescGZIP(), []int{3} } func (x *ChargeCreateResponse) GetChargeID() int32 { if x != nil { return x.ChargeID } return 0 } func (x *ChargeCreateResponse) GetOrderID() int64 { if x != nil { return x.OrderID } return 0 } func (x *ChargeCreateResponse) GetParams() map[string]string { if x != nil { return x.Params } return nil } var File_charge_proto protoreflect.FileDescriptor const file_charge_proto_rawDesc = "" + "\n" + "\fcharge.proto\x12\x02pb\"\x97\x01\n" + "\n" + "ChargeData\x12/\n" + "\x05Cards\x18\x01 \x03(\v2\x19.pb.ChargeData.CardsEntryR\x05Cards\x12\x14\n" + "\x05Golds\x18\x02 \x03(\x05R\x05Golds\x1aB\n" + "\n" + "CardsEntry\x12\x10\n" + "\x03key\x18\x01 \x01(\x05R\x03key\x12\x1e\n" + "\x05value\x18\x02 \x01(\v2\b.pb.CardR\x05value:\x028\x01\"D\n" + "\x04Card\x12\x1e\n" + "\n" + "expireTime\x18\x01 \x01(\x03R\n" + "expireTime\x12\x1c\n" + "\tisReceive\x18\x02 \x01(\bR\tisReceive\"N\n" + "\fChargeCreate\x12\x1a\n" + "\bchargeID\x18\x01 \x01(\x05R\bchargeID\x12\"\n" + "\fchargeParams\x18\x02 \x01(\x05R\fchargeParams\"\xc5\x01\n" + "\x14ChargeCreateResponse\x12\x1a\n" + "\bchargeID\x18\x01 \x01(\x05R\bchargeID\x12\x18\n" + "\aorderID\x18\x02 \x01(\x03R\aorderID\x12<\n" + "\x06params\x18\x03 \x03(\v2$.pb.ChargeCreateResponse.ParamsEntryR\x06params\x1a9\n" + "\vParamsEntry\x12\x10\n" + "\x03key\x18\x01 \x01(\tR\x03key\x12\x14\n" + "\x05value\x18\x02 \x01(\tR\x05value:\x028\x01B\x05Z\x03/pbb\x06proto3" var ( file_charge_proto_rawDescOnce sync.Once file_charge_proto_rawDescData []byte ) func file_charge_proto_rawDescGZIP() []byte { file_charge_proto_rawDescOnce.Do(func() { file_charge_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_charge_proto_rawDesc), len(file_charge_proto_rawDesc))) }) return file_charge_proto_rawDescData } var file_charge_proto_msgTypes = make([]protoimpl.MessageInfo, 6) var file_charge_proto_goTypes = []any{ (*ChargeData)(nil), // 0: pb.ChargeData (*Card)(nil), // 1: pb.Card (*ChargeCreate)(nil), // 2: pb.ChargeCreate (*ChargeCreateResponse)(nil), // 3: pb.ChargeCreateResponse nil, // 4: pb.ChargeData.CardsEntry nil, // 5: pb.ChargeCreateResponse.ParamsEntry } var file_charge_proto_depIdxs = []int32{ 4, // 0: pb.ChargeData.Cards:type_name -> pb.ChargeData.CardsEntry 5, // 1: pb.ChargeCreateResponse.params:type_name -> pb.ChargeCreateResponse.ParamsEntry 1, // 2: pb.ChargeData.CardsEntry.value:type_name -> pb.Card 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 } func init() { file_charge_proto_init() } func file_charge_proto_init() { if File_charge_proto != nil { return } type x struct{} out := protoimpl.TypeBuilder{ File: protoimpl.DescBuilder{ GoPackagePath: reflect.TypeOf(x{}).PkgPath(), RawDescriptor: unsafe.Slice(unsafe.StringData(file_charge_proto_rawDesc), len(file_charge_proto_rawDesc)), NumEnums: 0, NumMessages: 6, NumExtensions: 0, NumServices: 0, }, GoTypes: file_charge_proto_goTypes, DependencyIndexes: file_charge_proto_depIdxs, MessageInfos: file_charge_proto_msgTypes, }.Build() File_charge_proto = out.File file_charge_proto_goTypes = nil file_charge_proto_depIdxs = nil }