// Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.36.11 // protoc v3.19.4 // source: payment/payment.proto package payment import ( _ "google.golang.org/genproto/googleapis/api/annotations" 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 Response struct { state protoimpl.MessageState `protogen:"open.v1"` Code int32 `protobuf:"varint,1,opt,name=code,proto3" json:"code,omitempty"` Msg string `protobuf:"bytes,2,opt,name=msg,proto3" json:"msg,omitempty"` Data string `protobuf:"bytes,3,opt,name=data,proto3" json:"data,omitempty"` unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache } func (x *Response) Reset() { *x = Response{} mi := &file_payment_payment_proto_msgTypes[0] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } func (x *Response) String() string { return protoimpl.X.MessageStringOf(x) } func (*Response) ProtoMessage() {} func (x *Response) ProtoReflect() protoreflect.Message { mi := &file_payment_payment_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 Response.ProtoReflect.Descriptor instead. func (*Response) Descriptor() ([]byte, []int) { return file_payment_payment_proto_rawDescGZIP(), []int{0} } func (x *Response) GetCode() int32 { if x != nil { return x.Code } return 0 } func (x *Response) GetMsg() string { if x != nil { return x.Msg } return "" } func (x *Response) GetData() string { if x != nil { return x.Data } return "" } type PayReq struct { state protoimpl.MessageState `protogen:"open.v1"` OrderSn string `protobuf:"bytes,1,opt,name=order_sn,json=orderSn,proto3" json:"order_sn,omitempty"` Client string `protobuf:"bytes,2,opt,name=client,proto3" json:"client,omitempty"` Channel string `protobuf:"bytes,3,opt,name=channel,proto3" json:"channel,omitempty"` Openid string `protobuf:"bytes,4,opt,name=openid,proto3" json:"openid,omitempty"` unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache } func (x *PayReq) Reset() { *x = PayReq{} mi := &file_payment_payment_proto_msgTypes[1] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } func (x *PayReq) String() string { return protoimpl.X.MessageStringOf(x) } func (*PayReq) ProtoMessage() {} func (x *PayReq) ProtoReflect() protoreflect.Message { mi := &file_payment_payment_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 PayReq.ProtoReflect.Descriptor instead. func (*PayReq) Descriptor() ([]byte, []int) { return file_payment_payment_proto_rawDescGZIP(), []int{1} } func (x *PayReq) GetOrderSn() string { if x != nil { return x.OrderSn } return "" } func (x *PayReq) GetClient() string { if x != nil { return x.Client } return "" } func (x *PayReq) GetChannel() string { if x != nil { return x.Channel } return "" } func (x *PayReq) GetOpenid() string { if x != nil { return x.Openid } return "" } type QueryReq struct { state protoimpl.MessageState `protogen:"open.v1"` OrderSn string `protobuf:"bytes,1,opt,name=order_sn,json=orderSn,proto3" json:"order_sn,omitempty"` Channel string `protobuf:"bytes,2,opt,name=channel,proto3" json:"channel,omitempty"` unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache } func (x *QueryReq) Reset() { *x = QueryReq{} mi := &file_payment_payment_proto_msgTypes[2] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } func (x *QueryReq) String() string { return protoimpl.X.MessageStringOf(x) } func (*QueryReq) ProtoMessage() {} func (x *QueryReq) ProtoReflect() protoreflect.Message { mi := &file_payment_payment_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 QueryReq.ProtoReflect.Descriptor instead. func (*QueryReq) Descriptor() ([]byte, []int) { return file_payment_payment_proto_rawDescGZIP(), []int{2} } func (x *QueryReq) GetOrderSn() string { if x != nil { return x.OrderSn } return "" } func (x *QueryReq) GetChannel() string { if x != nil { return x.Channel } return "" } type CloseReq struct { state protoimpl.MessageState `protogen:"open.v1"` OrderSn string `protobuf:"bytes,1,opt,name=order_sn,json=orderSn,proto3" json:"order_sn,omitempty"` Channel string `protobuf:"bytes,2,opt,name=channel,proto3" json:"channel,omitempty"` unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache } func (x *CloseReq) Reset() { *x = CloseReq{} mi := &file_payment_payment_proto_msgTypes[3] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } func (x *CloseReq) String() string { return protoimpl.X.MessageStringOf(x) } func (*CloseReq) ProtoMessage() {} func (x *CloseReq) ProtoReflect() protoreflect.Message { mi := &file_payment_payment_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 CloseReq.ProtoReflect.Descriptor instead. func (*CloseReq) Descriptor() ([]byte, []int) { return file_payment_payment_proto_rawDescGZIP(), []int{3} } func (x *CloseReq) GetOrderSn() string { if x != nil { return x.OrderSn } return "" } func (x *CloseReq) GetChannel() string { if x != nil { return x.Channel } return "" } type RefundReq struct { state protoimpl.MessageState `protogen:"open.v1"` OrderSn string `protobuf:"bytes,1,opt,name=order_sn,json=orderSn,proto3" json:"order_sn,omitempty"` Channel string `protobuf:"bytes,2,opt,name=channel,proto3" json:"channel,omitempty"` Amount string `protobuf:"bytes,3,opt,name=amount,proto3" json:"amount,omitempty"` // 元,字符串避免浮点误差 Reason string `protobuf:"bytes,4,opt,name=reason,proto3" json:"reason,omitempty"` unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache } func (x *RefundReq) Reset() { *x = RefundReq{} mi := &file_payment_payment_proto_msgTypes[4] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } func (x *RefundReq) String() string { return protoimpl.X.MessageStringOf(x) } func (*RefundReq) ProtoMessage() {} func (x *RefundReq) ProtoReflect() protoreflect.Message { mi := &file_payment_payment_proto_msgTypes[4] 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 RefundReq.ProtoReflect.Descriptor instead. func (*RefundReq) Descriptor() ([]byte, []int) { return file_payment_payment_proto_rawDescGZIP(), []int{4} } func (x *RefundReq) GetOrderSn() string { if x != nil { return x.OrderSn } return "" } func (x *RefundReq) GetChannel() string { if x != nil { return x.Channel } return "" } func (x *RefundReq) GetAmount() string { if x != nil { return x.Amount } return "" } func (x *RefundReq) GetReason() string { if x != nil { return x.Reason } return "" } type NotifyReq struct { state protoimpl.MessageState `protogen:"open.v1"` Channel string `protobuf:"bytes,1,opt,name=channel,proto3" json:"channel,omitempty"` Headers map[string]string `protobuf:"bytes,2,rep,name=headers,proto3" json:"headers,omitempty" protobuf_key:"bytes,1,opt,name=key" protobuf_val:"bytes,2,opt,name=value"` Body []byte `protobuf:"bytes,3,opt,name=body,proto3" json:"body,omitempty"` unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache } func (x *NotifyReq) Reset() { *x = NotifyReq{} mi := &file_payment_payment_proto_msgTypes[5] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } func (x *NotifyReq) String() string { return protoimpl.X.MessageStringOf(x) } func (*NotifyReq) ProtoMessage() {} func (x *NotifyReq) ProtoReflect() protoreflect.Message { mi := &file_payment_payment_proto_msgTypes[5] 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 NotifyReq.ProtoReflect.Descriptor instead. func (*NotifyReq) Descriptor() ([]byte, []int) { return file_payment_payment_proto_rawDescGZIP(), []int{5} } func (x *NotifyReq) GetChannel() string { if x != nil { return x.Channel } return "" } func (x *NotifyReq) GetHeaders() map[string]string { if x != nil { return x.Headers } return nil } func (x *NotifyReq) GetBody() []byte { if x != nil { return x.Body } return nil } var File_payment_payment_proto protoreflect.FileDescriptor const file_payment_payment_proto_rawDesc = "" + "\n" + "\x15payment/payment.proto\x12\apayment\x1a\x1cgoogle/api/annotations.proto\"D\n" + "\bResponse\x12\x12\n" + "\x04code\x18\x01 \x01(\x05R\x04code\x12\x10\n" + "\x03msg\x18\x02 \x01(\tR\x03msg\x12\x12\n" + "\x04data\x18\x03 \x01(\tR\x04data\"m\n" + "\x06PayReq\x12\x19\n" + "\border_sn\x18\x01 \x01(\tR\aorderSn\x12\x16\n" + "\x06client\x18\x02 \x01(\tR\x06client\x12\x18\n" + "\achannel\x18\x03 \x01(\tR\achannel\x12\x16\n" + "\x06openid\x18\x04 \x01(\tR\x06openid\"?\n" + "\bQueryReq\x12\x19\n" + "\border_sn\x18\x01 \x01(\tR\aorderSn\x12\x18\n" + "\achannel\x18\x02 \x01(\tR\achannel\"?\n" + "\bCloseReq\x12\x19\n" + "\border_sn\x18\x01 \x01(\tR\aorderSn\x12\x18\n" + "\achannel\x18\x02 \x01(\tR\achannel\"p\n" + "\tRefundReq\x12\x19\n" + "\border_sn\x18\x01 \x01(\tR\aorderSn\x12\x18\n" + "\achannel\x18\x02 \x01(\tR\achannel\x12\x16\n" + "\x06amount\x18\x03 \x01(\tR\x06amount\x12\x16\n" + "\x06reason\x18\x04 \x01(\tR\x06reason\"\xb0\x01\n" + "\tNotifyReq\x12\x18\n" + "\achannel\x18\x01 \x01(\tR\achannel\x129\n" + "\aheaders\x18\x02 \x03(\v2\x1f.payment.NotifyReq.HeadersEntryR\aheaders\x12\x12\n" + "\x04body\x18\x03 \x01(\fR\x04body\x1a:\n" + "\fHeadersEntry\x12\x10\n" + "\x03key\x18\x01 \x01(\tR\x03key\x12\x14\n" + "\x05value\x18\x02 \x01(\tR\x05value:\x028\x012\xa0\x03\n" + "\aPayment\x12I\n" + "\x03Pay\x12\x0f.payment.PayReq\x1a\x11.payment.Response\"\x1e\x82\xd3\xe4\x93\x02\x18:\x01*\"\x13/api/v3/payment/pay\x12O\n" + "\x05Query\x12\x11.payment.QueryReq\x1a\x11.payment.Response\" \x82\xd3\xe4\x93\x02\x1a:\x01*\"\x15/api/v3/payment/query\x12O\n" + "\x05Close\x12\x11.payment.CloseReq\x1a\x11.payment.Response\" \x82\xd3\xe4\x93\x02\x1a:\x01*\"\x15/api/v3/payment/close\x12R\n" + "\x06Notify\x12\x12.payment.NotifyReq\x1a\x11.payment.Response\"!\x82\xd3\xe4\x93\x02\x1b:\x01*\"\x16/api/v3/payment/notify\x12T\n" + "\x06Refund\x12\x12.payment.RefundReq\x1a\x11.payment.Response\"#\x82\xd3\xe4\x93\x02\x1d:\x01*\"\x18/admin/v3/payment/refundB\x1bZ\x19lone-services/rpc/paymentb\x06proto3" var ( file_payment_payment_proto_rawDescOnce sync.Once file_payment_payment_proto_rawDescData []byte ) func file_payment_payment_proto_rawDescGZIP() []byte { file_payment_payment_proto_rawDescOnce.Do(func() { file_payment_payment_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_payment_payment_proto_rawDesc), len(file_payment_payment_proto_rawDesc))) }) return file_payment_payment_proto_rawDescData } var file_payment_payment_proto_msgTypes = make([]protoimpl.MessageInfo, 7) var file_payment_payment_proto_goTypes = []any{ (*Response)(nil), // 0: payment.Response (*PayReq)(nil), // 1: payment.PayReq (*QueryReq)(nil), // 2: payment.QueryReq (*CloseReq)(nil), // 3: payment.CloseReq (*RefundReq)(nil), // 4: payment.RefundReq (*NotifyReq)(nil), // 5: payment.NotifyReq nil, // 6: payment.NotifyReq.HeadersEntry } var file_payment_payment_proto_depIdxs = []int32{ 6, // 0: payment.NotifyReq.headers:type_name -> payment.NotifyReq.HeadersEntry 1, // 1: payment.Payment.Pay:input_type -> payment.PayReq 2, // 2: payment.Payment.Query:input_type -> payment.QueryReq 3, // 3: payment.Payment.Close:input_type -> payment.CloseReq 5, // 4: payment.Payment.Notify:input_type -> payment.NotifyReq 4, // 5: payment.Payment.Refund:input_type -> payment.RefundReq 0, // 6: payment.Payment.Pay:output_type -> payment.Response 0, // 7: payment.Payment.Query:output_type -> payment.Response 0, // 8: payment.Payment.Close:output_type -> payment.Response 0, // 9: payment.Payment.Notify:output_type -> payment.Response 0, // 10: payment.Payment.Refund:output_type -> payment.Response 6, // [6:11] is the sub-list for method output_type 1, // [1:6] 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_payment_payment_proto_init() } func file_payment_payment_proto_init() { if File_payment_payment_proto != nil { return } type x struct{} out := protoimpl.TypeBuilder{ File: protoimpl.DescBuilder{ GoPackagePath: reflect.TypeOf(x{}).PkgPath(), RawDescriptor: unsafe.Slice(unsafe.StringData(file_payment_payment_proto_rawDesc), len(file_payment_payment_proto_rawDesc)), NumEnums: 0, NumMessages: 7, NumExtensions: 0, NumServices: 1, }, GoTypes: file_payment_payment_proto_goTypes, DependencyIndexes: file_payment_payment_proto_depIdxs, MessageInfos: file_payment_payment_proto_msgTypes, }.Build() File_payment_payment_proto = out.File file_payment_payment_proto_goTypes = nil file_payment_payment_proto_depIdxs = nil }