| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222 |
- // 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 ChargeCreate struct {
- state protoimpl.MessageState `protogen:"open.v1"`
- // 充值项id
- ChargeID int32 `protobuf:"varint,1,opt,name=chargeID,proto3" json:"chargeID,omitempty"`
- // 充值项类型
- ChargeType int32 `protobuf:"varint,2,opt,name=chargeType,proto3" json:"chargeType,omitempty"`
- // 充值项参数
- ChargeParams int32 `protobuf:"varint,3,opt,name=chargeParams,proto3" json:"chargeParams,omitempty"`
- unknownFields protoimpl.UnknownFields
- sizeCache protoimpl.SizeCache
- }
- func (x *ChargeCreate) Reset() {
- *x = ChargeCreate{}
- mi := &file_charge_proto_msgTypes[0]
- 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[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 ChargeCreate.ProtoReflect.Descriptor instead.
- func (*ChargeCreate) Descriptor() ([]byte, []int) {
- return file_charge_proto_rawDescGZIP(), []int{0}
- }
- func (x *ChargeCreate) GetChargeID() int32 {
- if x != nil {
- return x.ChargeID
- }
- return 0
- }
- func (x *ChargeCreate) GetChargeType() int32 {
- if x != nil {
- return x.ChargeType
- }
- 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,4,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[1]
- 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[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 ChargeCreateResponse.ProtoReflect.Descriptor instead.
- func (*ChargeCreateResponse) Descriptor() ([]byte, []int) {
- return file_charge_proto_rawDescGZIP(), []int{1}
- }
- 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\"n\n" +
- "\fChargeCreate\x12\x1a\n" +
- "\bchargeID\x18\x01 \x01(\x05R\bchargeID\x12\x1e\n" +
- "\n" +
- "chargeType\x18\x02 \x01(\x05R\n" +
- "chargeType\x12\"\n" +
- "\fchargeParams\x18\x03 \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\x04 \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, 3)
- var file_charge_proto_goTypes = []any{
- (*ChargeCreate)(nil), // 0: pb.ChargeCreate
- (*ChargeCreateResponse)(nil), // 1: pb.ChargeCreateResponse
- nil, // 2: pb.ChargeCreateResponse.ParamsEntry
- }
- var file_charge_proto_depIdxs = []int32{
- 2, // 0: pb.ChargeCreateResponse.params:type_name -> pb.ChargeCreateResponse.ParamsEntry
- 1, // [1:1] is the sub-list for method output_type
- 1, // [1:1] is the sub-list for method input_type
- 1, // [1:1] is the sub-list for extension type_name
- 1, // [1:1] is the sub-list for extension extendee
- 0, // [0:1] 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: 3,
- 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
- }
|