Compare commits
	
		
			No commits in common. "d83a5253105c77cc2256261b40abd0d664ff4a1f" and "515e88604e8bdc99d25c0c298d4e1adcead24e6c" have entirely different histories.
		
	
	
		
			d83a525310
			...
			515e88604e
		
	
		|  | @ -16,8 +16,8 @@ import 'dart:core' as $core; | |||
| import 'package:grpc/service_api.dart' as $grpc; | ||||
| import 'package:protobuf/protobuf.dart' as $pb; | ||||
| 
 | ||||
| import 'blocks.pb.dart' as $0; | ||||
| import 'payment.pb.dart' as $1; | ||||
| import 'blocks.pb.dart' as $1; | ||||
| import 'payment.pb.dart' as $0; | ||||
| 
 | ||||
| export 'payment.pb.dart'; | ||||
| 
 | ||||
|  | @ -33,48 +33,41 @@ class PaymentClient extends $grpc.Client { | |||
| 
 | ||||
|   PaymentClient(super.channel, {super.options, super.interceptors}); | ||||
| 
 | ||||
|   $grpc.ResponseFuture<$1.PaymentReply> hello( | ||||
|     $0.Empty request, { | ||||
|     $grpc.CallOptions? options, | ||||
|   }) { | ||||
|     return $createUnaryCall(_$hello, request, options: options); | ||||
|   } | ||||
| 
 | ||||
|   /// 获取平台支持的支付网关 | ||||
|   $grpc.ResponseFuture<$1.WayReply> way( | ||||
|     $1.WayRequest request, { | ||||
|   $grpc.ResponseFuture<$0.WayReply> way( | ||||
|     $0.WayRequest request, { | ||||
|     $grpc.CallOptions? options, | ||||
|   }) { | ||||
|     return $createUnaryCall(_$way, request, options: options); | ||||
|   } | ||||
| 
 | ||||
|   /// 获取支付的详情 | ||||
|   $grpc.ResponseFuture<$1.PaymentItem> get( | ||||
|     $0.IdentRequest request, { | ||||
|   $grpc.ResponseFuture<$0.PaymentItem> get( | ||||
|     $1.IdentRequest request, { | ||||
|     $grpc.CallOptions? options, | ||||
|   }) { | ||||
|     return $createUnaryCall(_$get, request, options: options); | ||||
|   } | ||||
| 
 | ||||
|   /// 支付-电商订单 | ||||
|   $grpc.ResponseFuture<$1.PaymentReply> byOrder( | ||||
|     $1.OrderRequest request, { | ||||
|   $grpc.ResponseFuture<$0.PaymentReply> byOrder( | ||||
|     $0.OrderRequest request, { | ||||
|     $grpc.CallOptions? options, | ||||
|   }) { | ||||
|     return $createUnaryCall(_$byOrder, request, options: options); | ||||
|   } | ||||
| 
 | ||||
|   /// 支付-充值 | ||||
|   $grpc.ResponseFuture<$1.PaymentReply> byCharge( | ||||
|     $1.ChargeRequest request, { | ||||
|   $grpc.ResponseFuture<$0.PaymentReply> byCharge( | ||||
|     $0.ChargeRequest request, { | ||||
|     $grpc.CallOptions? options, | ||||
|   }) { | ||||
|     return $createUnaryCall(_$byCharge, request, options: options); | ||||
|   } | ||||
| 
 | ||||
|   /// 回调更新支付的结果和状态 | ||||
|   $grpc.ResponseFuture<$0.StatusReply> callback( | ||||
|     $1.CallbackRequest request, { | ||||
|   $grpc.ResponseFuture<$1.StatusReply> callback( | ||||
|     $0.CallbackRequest request, { | ||||
|     $grpc.CallOptions? options, | ||||
|   }) { | ||||
|     return $createUnaryCall(_$callback, request, options: options); | ||||
|  | @ -82,32 +75,28 @@ class PaymentClient extends $grpc.Client { | |||
| 
 | ||||
|   // method descriptors | ||||
| 
 | ||||
|   static final _$hello = $grpc.ClientMethod<$0.Empty, $1.PaymentReply>( | ||||
|       '/wallet.Payment/Hello', | ||||
|       ($0.Empty value) => value.writeToBuffer(), | ||||
|       $1.PaymentReply.fromBuffer); | ||||
|   static final _$way = $grpc.ClientMethod<$1.WayRequest, $1.WayReply>( | ||||
|   static final _$way = $grpc.ClientMethod<$0.WayRequest, $0.WayReply>( | ||||
|       '/wallet.Payment/Way', | ||||
|       ($1.WayRequest value) => value.writeToBuffer(), | ||||
|       $1.WayReply.fromBuffer); | ||||
|   static final _$get = $grpc.ClientMethod<$0.IdentRequest, $1.PaymentItem>( | ||||
|       ($0.WayRequest value) => value.writeToBuffer(), | ||||
|       $0.WayReply.fromBuffer); | ||||
|   static final _$get = $grpc.ClientMethod<$1.IdentRequest, $0.PaymentItem>( | ||||
|       '/wallet.Payment/Get', | ||||
|       ($0.IdentRequest value) => value.writeToBuffer(), | ||||
|       $1.PaymentItem.fromBuffer); | ||||
|   static final _$byOrder = $grpc.ClientMethod<$1.OrderRequest, $1.PaymentReply>( | ||||
|       ($1.IdentRequest value) => value.writeToBuffer(), | ||||
|       $0.PaymentItem.fromBuffer); | ||||
|   static final _$byOrder = $grpc.ClientMethod<$0.OrderRequest, $0.PaymentReply>( | ||||
|       '/wallet.Payment/ByOrder', | ||||
|       ($1.OrderRequest value) => value.writeToBuffer(), | ||||
|       $1.PaymentReply.fromBuffer); | ||||
|       ($0.OrderRequest value) => value.writeToBuffer(), | ||||
|       $0.PaymentReply.fromBuffer); | ||||
|   static final _$byCharge = | ||||
|       $grpc.ClientMethod<$1.ChargeRequest, $1.PaymentReply>( | ||||
|       $grpc.ClientMethod<$0.ChargeRequest, $0.PaymentReply>( | ||||
|           '/wallet.Payment/ByCharge', | ||||
|           ($1.ChargeRequest value) => value.writeToBuffer(), | ||||
|           $1.PaymentReply.fromBuffer); | ||||
|           ($0.ChargeRequest value) => value.writeToBuffer(), | ||||
|           $0.PaymentReply.fromBuffer); | ||||
|   static final _$callback = | ||||
|       $grpc.ClientMethod<$1.CallbackRequest, $0.StatusReply>( | ||||
|       $grpc.ClientMethod<$0.CallbackRequest, $1.StatusReply>( | ||||
|           '/wallet.Payment/Callback', | ||||
|           ($1.CallbackRequest value) => value.writeToBuffer(), | ||||
|           $0.StatusReply.fromBuffer); | ||||
|           ($0.CallbackRequest value) => value.writeToBuffer(), | ||||
|           $1.StatusReply.fromBuffer); | ||||
| } | ||||
| 
 | ||||
| @$pb.GrpcServiceName('wallet.Payment') | ||||
|  | @ -115,94 +104,79 @@ abstract class PaymentServiceBase extends $grpc.Service { | |||
|   $core.String get $name => 'wallet.Payment'; | ||||
| 
 | ||||
|   PaymentServiceBase() { | ||||
|     $addMethod($grpc.ServiceMethod<$0.Empty, $1.PaymentReply>( | ||||
|         'Hello', | ||||
|         hello_Pre, | ||||
|         false, | ||||
|         false, | ||||
|         ($core.List<$core.int> value) => $0.Empty.fromBuffer(value), | ||||
|         ($1.PaymentReply value) => value.writeToBuffer())); | ||||
|     $addMethod($grpc.ServiceMethod<$1.WayRequest, $1.WayReply>( | ||||
|     $addMethod($grpc.ServiceMethod<$0.WayRequest, $0.WayReply>( | ||||
|         'Way', | ||||
|         way_Pre, | ||||
|         false, | ||||
|         false, | ||||
|         ($core.List<$core.int> value) => $1.WayRequest.fromBuffer(value), | ||||
|         ($1.WayReply value) => value.writeToBuffer())); | ||||
|     $addMethod($grpc.ServiceMethod<$0.IdentRequest, $1.PaymentItem>( | ||||
|         ($core.List<$core.int> value) => $0.WayRequest.fromBuffer(value), | ||||
|         ($0.WayReply value) => value.writeToBuffer())); | ||||
|     $addMethod($grpc.ServiceMethod<$1.IdentRequest, $0.PaymentItem>( | ||||
|         'Get', | ||||
|         get_Pre, | ||||
|         false, | ||||
|         false, | ||||
|         ($core.List<$core.int> value) => $0.IdentRequest.fromBuffer(value), | ||||
|         ($1.PaymentItem value) => value.writeToBuffer())); | ||||
|     $addMethod($grpc.ServiceMethod<$1.OrderRequest, $1.PaymentReply>( | ||||
|         ($core.List<$core.int> value) => $1.IdentRequest.fromBuffer(value), | ||||
|         ($0.PaymentItem value) => value.writeToBuffer())); | ||||
|     $addMethod($grpc.ServiceMethod<$0.OrderRequest, $0.PaymentReply>( | ||||
|         'ByOrder', | ||||
|         byOrder_Pre, | ||||
|         false, | ||||
|         false, | ||||
|         ($core.List<$core.int> value) => $1.OrderRequest.fromBuffer(value), | ||||
|         ($1.PaymentReply value) => value.writeToBuffer())); | ||||
|     $addMethod($grpc.ServiceMethod<$1.ChargeRequest, $1.PaymentReply>( | ||||
|         ($core.List<$core.int> value) => $0.OrderRequest.fromBuffer(value), | ||||
|         ($0.PaymentReply value) => value.writeToBuffer())); | ||||
|     $addMethod($grpc.ServiceMethod<$0.ChargeRequest, $0.PaymentReply>( | ||||
|         'ByCharge', | ||||
|         byCharge_Pre, | ||||
|         false, | ||||
|         false, | ||||
|         ($core.List<$core.int> value) => $1.ChargeRequest.fromBuffer(value), | ||||
|         ($1.PaymentReply value) => value.writeToBuffer())); | ||||
|     $addMethod($grpc.ServiceMethod<$1.CallbackRequest, $0.StatusReply>( | ||||
|         ($core.List<$core.int> value) => $0.ChargeRequest.fromBuffer(value), | ||||
|         ($0.PaymentReply value) => value.writeToBuffer())); | ||||
|     $addMethod($grpc.ServiceMethod<$0.CallbackRequest, $1.StatusReply>( | ||||
|         'Callback', | ||||
|         callback_Pre, | ||||
|         false, | ||||
|         false, | ||||
|         ($core.List<$core.int> value) => $1.CallbackRequest.fromBuffer(value), | ||||
|         ($0.StatusReply value) => value.writeToBuffer())); | ||||
|         ($core.List<$core.int> value) => $0.CallbackRequest.fromBuffer(value), | ||||
|         ($1.StatusReply value) => value.writeToBuffer())); | ||||
|   } | ||||
| 
 | ||||
|   $async.Future<$1.PaymentReply> hello_Pre( | ||||
|       $grpc.ServiceCall $call, $async.Future<$0.Empty> $request) async { | ||||
|     return hello($call, await $request); | ||||
|   } | ||||
| 
 | ||||
|   $async.Future<$1.PaymentReply> hello( | ||||
|       $grpc.ServiceCall call, $0.Empty request); | ||||
| 
 | ||||
|   $async.Future<$1.WayReply> way_Pre( | ||||
|       $grpc.ServiceCall $call, $async.Future<$1.WayRequest> $request) async { | ||||
|   $async.Future<$0.WayReply> way_Pre( | ||||
|       $grpc.ServiceCall $call, $async.Future<$0.WayRequest> $request) async { | ||||
|     return way($call, await $request); | ||||
|   } | ||||
| 
 | ||||
|   $async.Future<$1.WayReply> way($grpc.ServiceCall call, $1.WayRequest request); | ||||
|   $async.Future<$0.WayReply> way($grpc.ServiceCall call, $0.WayRequest request); | ||||
| 
 | ||||
|   $async.Future<$1.PaymentItem> get_Pre( | ||||
|       $grpc.ServiceCall $call, $async.Future<$0.IdentRequest> $request) async { | ||||
|   $async.Future<$0.PaymentItem> get_Pre( | ||||
|       $grpc.ServiceCall $call, $async.Future<$1.IdentRequest> $request) async { | ||||
|     return get($call, await $request); | ||||
|   } | ||||
| 
 | ||||
|   $async.Future<$1.PaymentItem> get( | ||||
|       $grpc.ServiceCall call, $0.IdentRequest request); | ||||
|   $async.Future<$0.PaymentItem> get( | ||||
|       $grpc.ServiceCall call, $1.IdentRequest request); | ||||
| 
 | ||||
|   $async.Future<$1.PaymentReply> byOrder_Pre( | ||||
|       $grpc.ServiceCall $call, $async.Future<$1.OrderRequest> $request) async { | ||||
|   $async.Future<$0.PaymentReply> byOrder_Pre( | ||||
|       $grpc.ServiceCall $call, $async.Future<$0.OrderRequest> $request) async { | ||||
|     return byOrder($call, await $request); | ||||
|   } | ||||
| 
 | ||||
|   $async.Future<$1.PaymentReply> byOrder( | ||||
|       $grpc.ServiceCall call, $1.OrderRequest request); | ||||
|   $async.Future<$0.PaymentReply> byOrder( | ||||
|       $grpc.ServiceCall call, $0.OrderRequest request); | ||||
| 
 | ||||
|   $async.Future<$1.PaymentReply> byCharge_Pre( | ||||
|       $grpc.ServiceCall $call, $async.Future<$1.ChargeRequest> $request) async { | ||||
|   $async.Future<$0.PaymentReply> byCharge_Pre( | ||||
|       $grpc.ServiceCall $call, $async.Future<$0.ChargeRequest> $request) async { | ||||
|     return byCharge($call, await $request); | ||||
|   } | ||||
| 
 | ||||
|   $async.Future<$1.PaymentReply> byCharge( | ||||
|       $grpc.ServiceCall call, $1.ChargeRequest request); | ||||
|   $async.Future<$0.PaymentReply> byCharge( | ||||
|       $grpc.ServiceCall call, $0.ChargeRequest request); | ||||
| 
 | ||||
|   $async.Future<$0.StatusReply> callback_Pre($grpc.ServiceCall $call, | ||||
|       $async.Future<$1.CallbackRequest> $request) async { | ||||
|   $async.Future<$1.StatusReply> callback_Pre($grpc.ServiceCall $call, | ||||
|       $async.Future<$0.CallbackRequest> $request) async { | ||||
|     return callback($call, await $request); | ||||
|   } | ||||
| 
 | ||||
|   $async.Future<$0.StatusReply> callback( | ||||
|       $grpc.ServiceCall call, $1.CallbackRequest request); | ||||
|   $async.Future<$1.StatusReply> callback( | ||||
|       $grpc.ServiceCall call, $0.CallbackRequest request); | ||||
| } | ||||
|  |  | |||
										
											
												File diff suppressed because it is too large
												Load Diff
											
										
									
								
							|  | @ -1,586 +0,0 @@ | |||
| // Code generated by protoc-gen-go. DO NOT EDIT.
 | ||||
| // versions:
 | ||||
| // 	protoc-gen-go v1.36.9
 | ||||
| // 	protoc        (unknown)
 | ||||
| // source: alipay.proto
 | ||||
| 
 | ||||
| package wallet | ||||
| 
 | ||||
| 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 AlipayTradeWapPayRequest struct { | ||||
| 	state              protoimpl.MessageState `protogen:"open.v1"` | ||||
| 	UserIdentification string                 `protobuf:"bytes,1,opt,name=user_identification,json=userIdentification,proto3" json:"user_identification,omitempty"` //用户唯一标识
 | ||||
| 	Amount             int64                  `protobuf:"varint,2,opt,name=amount,proto3" json:"amount,omitempty"`                                                  //充值金额,单位:分
 | ||||
| 	Description        string                 `protobuf:"bytes,3,opt,name=description,proto3" json:"description,omitempty"`                                         //商品描述
 | ||||
| 	NotifyUrl          string                 `protobuf:"bytes,4,opt,name=notify_url,json=notifyUrl,proto3" json:"notify_url,omitempty"`                            //支付回调URL,公网域名须为HTTPS
 | ||||
| 	QuitUrl            string                 `protobuf:"bytes,5,opt,name=quit_url,json=quitUrl,proto3" json:"quit_url,omitempty"`                                  //退出支付时用户返回的URL
 | ||||
| 	unknownFields      protoimpl.UnknownFields | ||||
| 	sizeCache          protoimpl.SizeCache | ||||
| } | ||||
| 
 | ||||
| func (x *AlipayTradeWapPayRequest) Reset() { | ||||
| 	*x = AlipayTradeWapPayRequest{} | ||||
| 	mi := &file_alipay_proto_msgTypes[0] | ||||
| 	ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) | ||||
| 	ms.StoreMessageInfo(mi) | ||||
| } | ||||
| 
 | ||||
| func (x *AlipayTradeWapPayRequest) String() string { | ||||
| 	return protoimpl.X.MessageStringOf(x) | ||||
| } | ||||
| 
 | ||||
| func (*AlipayTradeWapPayRequest) ProtoMessage() {} | ||||
| 
 | ||||
| func (x *AlipayTradeWapPayRequest) ProtoReflect() protoreflect.Message { | ||||
| 	mi := &file_alipay_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 AlipayTradeWapPayRequest.ProtoReflect.Descriptor instead.
 | ||||
| func (*AlipayTradeWapPayRequest) Descriptor() ([]byte, []int) { | ||||
| 	return file_alipay_proto_rawDescGZIP(), []int{0} | ||||
| } | ||||
| 
 | ||||
| func (x *AlipayTradeWapPayRequest) GetUserIdentification() string { | ||||
| 	if x != nil { | ||||
| 		return x.UserIdentification | ||||
| 	} | ||||
| 	return "" | ||||
| } | ||||
| 
 | ||||
| func (x *AlipayTradeWapPayRequest) GetAmount() int64 { | ||||
| 	if x != nil { | ||||
| 		return x.Amount | ||||
| 	} | ||||
| 	return 0 | ||||
| } | ||||
| 
 | ||||
| func (x *AlipayTradeWapPayRequest) GetDescription() string { | ||||
| 	if x != nil { | ||||
| 		return x.Description | ||||
| 	} | ||||
| 	return "" | ||||
| } | ||||
| 
 | ||||
| func (x *AlipayTradeWapPayRequest) GetNotifyUrl() string { | ||||
| 	if x != nil { | ||||
| 		return x.NotifyUrl | ||||
| 	} | ||||
| 	return "" | ||||
| } | ||||
| 
 | ||||
| func (x *AlipayTradeWapPayRequest) GetQuitUrl() string { | ||||
| 	if x != nil { | ||||
| 		return x.QuitUrl | ||||
| 	} | ||||
| 	return "" | ||||
| } | ||||
| 
 | ||||
| type AlipayTradeWapPayReply struct { | ||||
| 	state         protoimpl.MessageState `protogen:"open.v1"` | ||||
| 	PayUrl        string                 `protobuf:"bytes,1,opt,name=pay_url,json=payUrl,proto3" json:"pay_url,omitempty"` //支付链接
 | ||||
| 	unknownFields protoimpl.UnknownFields | ||||
| 	sizeCache     protoimpl.SizeCache | ||||
| } | ||||
| 
 | ||||
| func (x *AlipayTradeWapPayReply) Reset() { | ||||
| 	*x = AlipayTradeWapPayReply{} | ||||
| 	mi := &file_alipay_proto_msgTypes[1] | ||||
| 	ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) | ||||
| 	ms.StoreMessageInfo(mi) | ||||
| } | ||||
| 
 | ||||
| func (x *AlipayTradeWapPayReply) String() string { | ||||
| 	return protoimpl.X.MessageStringOf(x) | ||||
| } | ||||
| 
 | ||||
| func (*AlipayTradeWapPayReply) ProtoMessage() {} | ||||
| 
 | ||||
| func (x *AlipayTradeWapPayReply) ProtoReflect() protoreflect.Message { | ||||
| 	mi := &file_alipay_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 AlipayTradeWapPayReply.ProtoReflect.Descriptor instead.
 | ||||
| func (*AlipayTradeWapPayReply) Descriptor() ([]byte, []int) { | ||||
| 	return file_alipay_proto_rawDescGZIP(), []int{1} | ||||
| } | ||||
| 
 | ||||
| func (x *AlipayTradeWapPayReply) GetPayUrl() string { | ||||
| 	if x != nil { | ||||
| 		return x.PayUrl | ||||
| 	} | ||||
| 	return "" | ||||
| } | ||||
| 
 | ||||
| type AlipayTradePagePayRequest struct { | ||||
| 	state              protoimpl.MessageState `protogen:"open.v1"` | ||||
| 	UserIdentification string                 `protobuf:"bytes,1,opt,name=user_identification,json=userIdentification,proto3" json:"user_identification,omitempty"` //用户唯一标识
 | ||||
| 	Amount             int64                  `protobuf:"varint,2,opt,name=amount,proto3" json:"amount,omitempty"`                                                  //充值金额,单位:分
 | ||||
| 	Description        string                 `protobuf:"bytes,3,opt,name=description,proto3" json:"description,omitempty"`                                         //商品描述
 | ||||
| 	NotifyUrl          string                 `protobuf:"bytes,4,opt,name=notify_url,json=notifyUrl,proto3" json:"notify_url,omitempty"`                            //支付回调URL,公网域名须为HTTPS
 | ||||
| 	ReturnUrl          string                 `protobuf:"bytes,5,opt,name=return_url,json=returnUrl,proto3" json:"return_url,omitempty"`                            //支付成功时返回的URL
 | ||||
| 	unknownFields      protoimpl.UnknownFields | ||||
| 	sizeCache          protoimpl.SizeCache | ||||
| } | ||||
| 
 | ||||
| func (x *AlipayTradePagePayRequest) Reset() { | ||||
| 	*x = AlipayTradePagePayRequest{} | ||||
| 	mi := &file_alipay_proto_msgTypes[2] | ||||
| 	ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) | ||||
| 	ms.StoreMessageInfo(mi) | ||||
| } | ||||
| 
 | ||||
| func (x *AlipayTradePagePayRequest) String() string { | ||||
| 	return protoimpl.X.MessageStringOf(x) | ||||
| } | ||||
| 
 | ||||
| func (*AlipayTradePagePayRequest) ProtoMessage() {} | ||||
| 
 | ||||
| func (x *AlipayTradePagePayRequest) ProtoReflect() protoreflect.Message { | ||||
| 	mi := &file_alipay_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 AlipayTradePagePayRequest.ProtoReflect.Descriptor instead.
 | ||||
| func (*AlipayTradePagePayRequest) Descriptor() ([]byte, []int) { | ||||
| 	return file_alipay_proto_rawDescGZIP(), []int{2} | ||||
| } | ||||
| 
 | ||||
| func (x *AlipayTradePagePayRequest) GetUserIdentification() string { | ||||
| 	if x != nil { | ||||
| 		return x.UserIdentification | ||||
| 	} | ||||
| 	return "" | ||||
| } | ||||
| 
 | ||||
| func (x *AlipayTradePagePayRequest) GetAmount() int64 { | ||||
| 	if x != nil { | ||||
| 		return x.Amount | ||||
| 	} | ||||
| 	return 0 | ||||
| } | ||||
| 
 | ||||
| func (x *AlipayTradePagePayRequest) GetDescription() string { | ||||
| 	if x != nil { | ||||
| 		return x.Description | ||||
| 	} | ||||
| 	return "" | ||||
| } | ||||
| 
 | ||||
| func (x *AlipayTradePagePayRequest) GetNotifyUrl() string { | ||||
| 	if x != nil { | ||||
| 		return x.NotifyUrl | ||||
| 	} | ||||
| 	return "" | ||||
| } | ||||
| 
 | ||||
| func (x *AlipayTradePagePayRequest) GetReturnUrl() string { | ||||
| 	if x != nil { | ||||
| 		return x.ReturnUrl | ||||
| 	} | ||||
| 	return "" | ||||
| } | ||||
| 
 | ||||
| type AlipayTradePagePayReply struct { | ||||
| 	state         protoimpl.MessageState `protogen:"open.v1"` | ||||
| 	PayUrl        string                 `protobuf:"bytes,1,opt,name=pay_url,json=payUrl,proto3" json:"pay_url,omitempty"` //支付链接
 | ||||
| 	unknownFields protoimpl.UnknownFields | ||||
| 	sizeCache     protoimpl.SizeCache | ||||
| } | ||||
| 
 | ||||
| func (x *AlipayTradePagePayReply) Reset() { | ||||
| 	*x = AlipayTradePagePayReply{} | ||||
| 	mi := &file_alipay_proto_msgTypes[3] | ||||
| 	ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) | ||||
| 	ms.StoreMessageInfo(mi) | ||||
| } | ||||
| 
 | ||||
| func (x *AlipayTradePagePayReply) String() string { | ||||
| 	return protoimpl.X.MessageStringOf(x) | ||||
| } | ||||
| 
 | ||||
| func (*AlipayTradePagePayReply) ProtoMessage() {} | ||||
| 
 | ||||
| func (x *AlipayTradePagePayReply) ProtoReflect() protoreflect.Message { | ||||
| 	mi := &file_alipay_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 AlipayTradePagePayReply.ProtoReflect.Descriptor instead.
 | ||||
| func (*AlipayTradePagePayReply) Descriptor() ([]byte, []int) { | ||||
| 	return file_alipay_proto_rawDescGZIP(), []int{3} | ||||
| } | ||||
| 
 | ||||
| func (x *AlipayTradePagePayReply) GetPayUrl() string { | ||||
| 	if x != nil { | ||||
| 		return x.PayUrl | ||||
| 	} | ||||
| 	return "" | ||||
| } | ||||
| 
 | ||||
| type AlipayTradeAppPayRequest struct { | ||||
| 	state              protoimpl.MessageState `protogen:"open.v1"` | ||||
| 	UserIdentification string                 `protobuf:"bytes,1,opt,name=user_identification,json=userIdentification,proto3" json:"user_identification,omitempty"` //用户唯一标识
 | ||||
| 	Amount             int64                  `protobuf:"varint,2,opt,name=amount,proto3" json:"amount,omitempty"`                                                  //充值金额,单位:分
 | ||||
| 	Description        string                 `protobuf:"bytes,3,opt,name=description,proto3" json:"description,omitempty"`                                         //商品描述
 | ||||
| 	NotifyUrl          string                 `protobuf:"bytes,4,opt,name=notify_url,json=notifyUrl,proto3" json:"notify_url,omitempty"`                            //支付回调URL,公网域名须为HTTPS
 | ||||
| 	unknownFields      protoimpl.UnknownFields | ||||
| 	sizeCache          protoimpl.SizeCache | ||||
| } | ||||
| 
 | ||||
| func (x *AlipayTradeAppPayRequest) Reset() { | ||||
| 	*x = AlipayTradeAppPayRequest{} | ||||
| 	mi := &file_alipay_proto_msgTypes[4] | ||||
| 	ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) | ||||
| 	ms.StoreMessageInfo(mi) | ||||
| } | ||||
| 
 | ||||
| func (x *AlipayTradeAppPayRequest) String() string { | ||||
| 	return protoimpl.X.MessageStringOf(x) | ||||
| } | ||||
| 
 | ||||
| func (*AlipayTradeAppPayRequest) ProtoMessage() {} | ||||
| 
 | ||||
| func (x *AlipayTradeAppPayRequest) ProtoReflect() protoreflect.Message { | ||||
| 	mi := &file_alipay_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 AlipayTradeAppPayRequest.ProtoReflect.Descriptor instead.
 | ||||
| func (*AlipayTradeAppPayRequest) Descriptor() ([]byte, []int) { | ||||
| 	return file_alipay_proto_rawDescGZIP(), []int{4} | ||||
| } | ||||
| 
 | ||||
| func (x *AlipayTradeAppPayRequest) GetUserIdentification() string { | ||||
| 	if x != nil { | ||||
| 		return x.UserIdentification | ||||
| 	} | ||||
| 	return "" | ||||
| } | ||||
| 
 | ||||
| func (x *AlipayTradeAppPayRequest) GetAmount() int64 { | ||||
| 	if x != nil { | ||||
| 		return x.Amount | ||||
| 	} | ||||
| 	return 0 | ||||
| } | ||||
| 
 | ||||
| func (x *AlipayTradeAppPayRequest) GetDescription() string { | ||||
| 	if x != nil { | ||||
| 		return x.Description | ||||
| 	} | ||||
| 	return "" | ||||
| } | ||||
| 
 | ||||
| func (x *AlipayTradeAppPayRequest) GetNotifyUrl() string { | ||||
| 	if x != nil { | ||||
| 		return x.NotifyUrl | ||||
| 	} | ||||
| 	return "" | ||||
| } | ||||
| 
 | ||||
| type AlipayTradeAppPayReply struct { | ||||
| 	state         protoimpl.MessageState `protogen:"open.v1"` | ||||
| 	PayParam      string                 `protobuf:"bytes,1,opt,name=pay_param,json=payParam,proto3" json:"pay_param,omitempty"` //调起支付的参数
 | ||||
| 	unknownFields protoimpl.UnknownFields | ||||
| 	sizeCache     protoimpl.SizeCache | ||||
| } | ||||
| 
 | ||||
| func (x *AlipayTradeAppPayReply) Reset() { | ||||
| 	*x = AlipayTradeAppPayReply{} | ||||
| 	mi := &file_alipay_proto_msgTypes[5] | ||||
| 	ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) | ||||
| 	ms.StoreMessageInfo(mi) | ||||
| } | ||||
| 
 | ||||
| func (x *AlipayTradeAppPayReply) String() string { | ||||
| 	return protoimpl.X.MessageStringOf(x) | ||||
| } | ||||
| 
 | ||||
| func (*AlipayTradeAppPayReply) ProtoMessage() {} | ||||
| 
 | ||||
| func (x *AlipayTradeAppPayReply) ProtoReflect() protoreflect.Message { | ||||
| 	mi := &file_alipay_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 AlipayTradeAppPayReply.ProtoReflect.Descriptor instead.
 | ||||
| func (*AlipayTradeAppPayReply) Descriptor() ([]byte, []int) { | ||||
| 	return file_alipay_proto_rawDescGZIP(), []int{5} | ||||
| } | ||||
| 
 | ||||
| func (x *AlipayTradeAppPayReply) GetPayParam() string { | ||||
| 	if x != nil { | ||||
| 		return x.PayParam | ||||
| 	} | ||||
| 	return "" | ||||
| } | ||||
| 
 | ||||
| type AlipayUniTransferRequest struct { | ||||
| 	state              protoimpl.MessageState `protogen:"open.v1"` | ||||
| 	UserIdentification string                 `protobuf:"bytes,1,opt,name=user_identification,json=userIdentification,proto3" json:"user_identification,omitempty"` //用户唯一标识
 | ||||
| 	Amount             int64                  `protobuf:"varint,2,opt,name=amount,proto3" json:"amount,omitempty"`                                                  //提现金额,单位:分
 | ||||
| 	Fee                int64                  `protobuf:"varint,3,opt,name=fee,proto3" json:"fee,omitempty"`                                                        //提现手续费,单位:分
 | ||||
| 	Description        string                 `protobuf:"bytes,4,opt,name=description,proto3" json:"description,omitempty"`                                         //商品描述
 | ||||
| 	unknownFields      protoimpl.UnknownFields | ||||
| 	sizeCache          protoimpl.SizeCache | ||||
| } | ||||
| 
 | ||||
| func (x *AlipayUniTransferRequest) Reset() { | ||||
| 	*x = AlipayUniTransferRequest{} | ||||
| 	mi := &file_alipay_proto_msgTypes[6] | ||||
| 	ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) | ||||
| 	ms.StoreMessageInfo(mi) | ||||
| } | ||||
| 
 | ||||
| func (x *AlipayUniTransferRequest) String() string { | ||||
| 	return protoimpl.X.MessageStringOf(x) | ||||
| } | ||||
| 
 | ||||
| func (*AlipayUniTransferRequest) ProtoMessage() {} | ||||
| 
 | ||||
| func (x *AlipayUniTransferRequest) ProtoReflect() protoreflect.Message { | ||||
| 	mi := &file_alipay_proto_msgTypes[6] | ||||
| 	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 AlipayUniTransferRequest.ProtoReflect.Descriptor instead.
 | ||||
| func (*AlipayUniTransferRequest) Descriptor() ([]byte, []int) { | ||||
| 	return file_alipay_proto_rawDescGZIP(), []int{6} | ||||
| } | ||||
| 
 | ||||
| func (x *AlipayUniTransferRequest) GetUserIdentification() string { | ||||
| 	if x != nil { | ||||
| 		return x.UserIdentification | ||||
| 	} | ||||
| 	return "" | ||||
| } | ||||
| 
 | ||||
| func (x *AlipayUniTransferRequest) GetAmount() int64 { | ||||
| 	if x != nil { | ||||
| 		return x.Amount | ||||
| 	} | ||||
| 	return 0 | ||||
| } | ||||
| 
 | ||||
| func (x *AlipayUniTransferRequest) GetFee() int64 { | ||||
| 	if x != nil { | ||||
| 		return x.Fee | ||||
| 	} | ||||
| 	return 0 | ||||
| } | ||||
| 
 | ||||
| func (x *AlipayUniTransferRequest) GetDescription() string { | ||||
| 	if x != nil { | ||||
| 		return x.Description | ||||
| 	} | ||||
| 	return "" | ||||
| } | ||||
| 
 | ||||
| type AlipayUniTransferReply struct { | ||||
| 	state         protoimpl.MessageState `protogen:"open.v1"` | ||||
| 	unknownFields protoimpl.UnknownFields | ||||
| 	sizeCache     protoimpl.SizeCache | ||||
| } | ||||
| 
 | ||||
| func (x *AlipayUniTransferReply) Reset() { | ||||
| 	*x = AlipayUniTransferReply{} | ||||
| 	mi := &file_alipay_proto_msgTypes[7] | ||||
| 	ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) | ||||
| 	ms.StoreMessageInfo(mi) | ||||
| } | ||||
| 
 | ||||
| func (x *AlipayUniTransferReply) String() string { | ||||
| 	return protoimpl.X.MessageStringOf(x) | ||||
| } | ||||
| 
 | ||||
| func (*AlipayUniTransferReply) ProtoMessage() {} | ||||
| 
 | ||||
| func (x *AlipayUniTransferReply) ProtoReflect() protoreflect.Message { | ||||
| 	mi := &file_alipay_proto_msgTypes[7] | ||||
| 	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 AlipayUniTransferReply.ProtoReflect.Descriptor instead.
 | ||||
| func (*AlipayUniTransferReply) Descriptor() ([]byte, []int) { | ||||
| 	return file_alipay_proto_rawDescGZIP(), []int{7} | ||||
| } | ||||
| 
 | ||||
| var File_alipay_proto protoreflect.FileDescriptor | ||||
| 
 | ||||
| const file_alipay_proto_rawDesc = "" + | ||||
| 	"\n" + | ||||
| 	"\falipay.proto\x12\x06wallet\"\xbf\x01\n" + | ||||
| 	"\x18AlipayTradeWapPayRequest\x12/\n" + | ||||
| 	"\x13user_identification\x18\x01 \x01(\tR\x12userIdentification\x12\x16\n" + | ||||
| 	"\x06amount\x18\x02 \x01(\x03R\x06amount\x12 \n" + | ||||
| 	"\vdescription\x18\x03 \x01(\tR\vdescription\x12\x1d\n" + | ||||
| 	"\n" + | ||||
| 	"notify_url\x18\x04 \x01(\tR\tnotifyUrl\x12\x19\n" + | ||||
| 	"\bquit_url\x18\x05 \x01(\tR\aquitUrl\"1\n" + | ||||
| 	"\x16AlipayTradeWapPayReply\x12\x17\n" + | ||||
| 	"\apay_url\x18\x01 \x01(\tR\x06payUrl\"\xc4\x01\n" + | ||||
| 	"\x19AlipayTradePagePayRequest\x12/\n" + | ||||
| 	"\x13user_identification\x18\x01 \x01(\tR\x12userIdentification\x12\x16\n" + | ||||
| 	"\x06amount\x18\x02 \x01(\x03R\x06amount\x12 \n" + | ||||
| 	"\vdescription\x18\x03 \x01(\tR\vdescription\x12\x1d\n" + | ||||
| 	"\n" + | ||||
| 	"notify_url\x18\x04 \x01(\tR\tnotifyUrl\x12\x1d\n" + | ||||
| 	"\n" + | ||||
| 	"return_url\x18\x05 \x01(\tR\treturnUrl\"2\n" + | ||||
| 	"\x17AlipayTradePagePayReply\x12\x17\n" + | ||||
| 	"\apay_url\x18\x01 \x01(\tR\x06payUrl\"\xa4\x01\n" + | ||||
| 	"\x18AlipayTradeAppPayRequest\x12/\n" + | ||||
| 	"\x13user_identification\x18\x01 \x01(\tR\x12userIdentification\x12\x16\n" + | ||||
| 	"\x06amount\x18\x02 \x01(\x03R\x06amount\x12 \n" + | ||||
| 	"\vdescription\x18\x03 \x01(\tR\vdescription\x12\x1d\n" + | ||||
| 	"\n" + | ||||
| 	"notify_url\x18\x04 \x01(\tR\tnotifyUrl\"5\n" + | ||||
| 	"\x16AlipayTradeAppPayReply\x12\x1b\n" + | ||||
| 	"\tpay_param\x18\x01 \x01(\tR\bpayParam\"\x97\x01\n" + | ||||
| 	"\x18AlipayUniTransferRequest\x12/\n" + | ||||
| 	"\x13user_identification\x18\x01 \x01(\tR\x12userIdentification\x12\x16\n" + | ||||
| 	"\x06amount\x18\x02 \x01(\x03R\x06amount\x12\x10\n" + | ||||
| 	"\x03fee\x18\x03 \x01(\x03R\x03fee\x12 \n" + | ||||
| 	"\vdescription\x18\x04 \x01(\tR\vdescription\"\x18\n" + | ||||
| 	"\x16AlipayUniTransferReply2\xc5\x02\n" + | ||||
| 	"\x06Alipay\x12L\n" + | ||||
| 	"\x06WapPay\x12 .wallet.AlipayTradeWapPayRequest\x1a\x1e.wallet.AlipayTradeWapPayReply\"\x00\x12O\n" + | ||||
| 	"\aPagePay\x12!.wallet.AlipayTradePagePayRequest\x1a\x1f.wallet.AlipayTradePagePayReply\"\x00\x12L\n" + | ||||
| 	"\x06AppPay\x12 .wallet.AlipayTradeAppPayRequest\x1a\x1e.wallet.AlipayTradeAppPayReply\"\x00\x12N\n" + | ||||
| 	"\bTransfer\x12 .wallet.AlipayUniTransferRequest\x1a\x1e.wallet.AlipayUniTransferReply\"\x00B\n" + | ||||
| 	"Z\b.;walletb\x06proto3" | ||||
| 
 | ||||
| var ( | ||||
| 	file_alipay_proto_rawDescOnce sync.Once | ||||
| 	file_alipay_proto_rawDescData []byte | ||||
| ) | ||||
| 
 | ||||
| func file_alipay_proto_rawDescGZIP() []byte { | ||||
| 	file_alipay_proto_rawDescOnce.Do(func() { | ||||
| 		file_alipay_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_alipay_proto_rawDesc), len(file_alipay_proto_rawDesc))) | ||||
| 	}) | ||||
| 	return file_alipay_proto_rawDescData | ||||
| } | ||||
| 
 | ||||
| var file_alipay_proto_msgTypes = make([]protoimpl.MessageInfo, 8) | ||||
| var file_alipay_proto_goTypes = []any{ | ||||
| 	(*AlipayTradeWapPayRequest)(nil),  // 0: wallet.AlipayTradeWapPayRequest
 | ||||
| 	(*AlipayTradeWapPayReply)(nil),    // 1: wallet.AlipayTradeWapPayReply
 | ||||
| 	(*AlipayTradePagePayRequest)(nil), // 2: wallet.AlipayTradePagePayRequest
 | ||||
| 	(*AlipayTradePagePayReply)(nil),   // 3: wallet.AlipayTradePagePayReply
 | ||||
| 	(*AlipayTradeAppPayRequest)(nil),  // 4: wallet.AlipayTradeAppPayRequest
 | ||||
| 	(*AlipayTradeAppPayReply)(nil),    // 5: wallet.AlipayTradeAppPayReply
 | ||||
| 	(*AlipayUniTransferRequest)(nil),  // 6: wallet.AlipayUniTransferRequest
 | ||||
| 	(*AlipayUniTransferReply)(nil),    // 7: wallet.AlipayUniTransferReply
 | ||||
| } | ||||
| var file_alipay_proto_depIdxs = []int32{ | ||||
| 	0, // 0: wallet.Alipay.WapPay:input_type -> wallet.AlipayTradeWapPayRequest
 | ||||
| 	2, // 1: wallet.Alipay.PagePay:input_type -> wallet.AlipayTradePagePayRequest
 | ||||
| 	4, // 2: wallet.Alipay.AppPay:input_type -> wallet.AlipayTradeAppPayRequest
 | ||||
| 	6, // 3: wallet.Alipay.Transfer:input_type -> wallet.AlipayUniTransferRequest
 | ||||
| 	1, // 4: wallet.Alipay.WapPay:output_type -> wallet.AlipayTradeWapPayReply
 | ||||
| 	3, // 5: wallet.Alipay.PagePay:output_type -> wallet.AlipayTradePagePayReply
 | ||||
| 	5, // 6: wallet.Alipay.AppPay:output_type -> wallet.AlipayTradeAppPayReply
 | ||||
| 	7, // 7: wallet.Alipay.Transfer:output_type -> wallet.AlipayUniTransferReply
 | ||||
| 	4, // [4:8] is the sub-list for method output_type
 | ||||
| 	0, // [0:4] 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_alipay_proto_init() } | ||||
| func file_alipay_proto_init() { | ||||
| 	if File_alipay_proto != nil { | ||||
| 		return | ||||
| 	} | ||||
| 	type x struct{} | ||||
| 	out := protoimpl.TypeBuilder{ | ||||
| 		File: protoimpl.DescBuilder{ | ||||
| 			GoPackagePath: reflect.TypeOf(x{}).PkgPath(), | ||||
| 			RawDescriptor: unsafe.Slice(unsafe.StringData(file_alipay_proto_rawDesc), len(file_alipay_proto_rawDesc)), | ||||
| 			NumEnums:      0, | ||||
| 			NumMessages:   8, | ||||
| 			NumExtensions: 0, | ||||
| 			NumServices:   1, | ||||
| 		}, | ||||
| 		GoTypes:           file_alipay_proto_goTypes, | ||||
| 		DependencyIndexes: file_alipay_proto_depIdxs, | ||||
| 		MessageInfos:      file_alipay_proto_msgTypes, | ||||
| 	}.Build() | ||||
| 	File_alipay_proto = out.File | ||||
| 	file_alipay_proto_goTypes = nil | ||||
| 	file_alipay_proto_depIdxs = nil | ||||
| } | ||||
|  | @ -1,243 +0,0 @@ | |||
| // Code generated by protoc-gen-go-grpc. DO NOT EDIT.
 | ||||
| // versions:
 | ||||
| // - protoc-gen-go-grpc v1.5.1
 | ||||
| // - protoc             (unknown)
 | ||||
| // source: alipay.proto
 | ||||
| 
 | ||||
| package wallet | ||||
| 
 | ||||
| import ( | ||||
| 	context "context" | ||||
| 	grpc "google.golang.org/grpc" | ||||
| 	codes "google.golang.org/grpc/codes" | ||||
| 	status "google.golang.org/grpc/status" | ||||
| ) | ||||
| 
 | ||||
| // This is a compile-time assertion to ensure that this generated file
 | ||||
| // is compatible with the grpc package it is being compiled against.
 | ||||
| // Requires gRPC-Go v1.64.0 or later.
 | ||||
| const _ = grpc.SupportPackageIsVersion9 | ||||
| 
 | ||||
| const ( | ||||
| 	Alipay_WapPay_FullMethodName   = "/wallet.Alipay/WapPay" | ||||
| 	Alipay_PagePay_FullMethodName  = "/wallet.Alipay/PagePay" | ||||
| 	Alipay_AppPay_FullMethodName   = "/wallet.Alipay/AppPay" | ||||
| 	Alipay_Transfer_FullMethodName = "/wallet.Alipay/Transfer" | ||||
| ) | ||||
| 
 | ||||
| // AlipayClient is the client API for Alipay service.
 | ||||
| //
 | ||||
| // For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.
 | ||||
| type AlipayClient interface { | ||||
| 	//支付宝wap支付
 | ||||
| 	WapPay(ctx context.Context, in *AlipayTradeWapPayRequest, opts ...grpc.CallOption) (*AlipayTradeWapPayReply, error) | ||||
| 	//支付宝电脑网站支付
 | ||||
| 	PagePay(ctx context.Context, in *AlipayTradePagePayRequest, opts ...grpc.CallOption) (*AlipayTradePagePayReply, error) | ||||
| 	//支付宝APP支付
 | ||||
| 	AppPay(ctx context.Context, in *AlipayTradeAppPayRequest, opts ...grpc.CallOption) (*AlipayTradeAppPayReply, error) | ||||
| 	//支付宝转账到个人支付宝账户
 | ||||
| 	Transfer(ctx context.Context, in *AlipayUniTransferRequest, opts ...grpc.CallOption) (*AlipayUniTransferReply, error) | ||||
| } | ||||
| 
 | ||||
| type alipayClient struct { | ||||
| 	cc grpc.ClientConnInterface | ||||
| } | ||||
| 
 | ||||
| func NewAlipayClient(cc grpc.ClientConnInterface) AlipayClient { | ||||
| 	return &alipayClient{cc} | ||||
| } | ||||
| 
 | ||||
| func (c *alipayClient) WapPay(ctx context.Context, in *AlipayTradeWapPayRequest, opts ...grpc.CallOption) (*AlipayTradeWapPayReply, error) { | ||||
| 	cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) | ||||
| 	out := new(AlipayTradeWapPayReply) | ||||
| 	err := c.cc.Invoke(ctx, Alipay_WapPay_FullMethodName, in, out, cOpts...) | ||||
| 	if err != nil { | ||||
| 		return nil, err | ||||
| 	} | ||||
| 	return out, nil | ||||
| } | ||||
| 
 | ||||
| func (c *alipayClient) PagePay(ctx context.Context, in *AlipayTradePagePayRequest, opts ...grpc.CallOption) (*AlipayTradePagePayReply, error) { | ||||
| 	cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) | ||||
| 	out := new(AlipayTradePagePayReply) | ||||
| 	err := c.cc.Invoke(ctx, Alipay_PagePay_FullMethodName, in, out, cOpts...) | ||||
| 	if err != nil { | ||||
| 		return nil, err | ||||
| 	} | ||||
| 	return out, nil | ||||
| } | ||||
| 
 | ||||
| func (c *alipayClient) AppPay(ctx context.Context, in *AlipayTradeAppPayRequest, opts ...grpc.CallOption) (*AlipayTradeAppPayReply, error) { | ||||
| 	cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) | ||||
| 	out := new(AlipayTradeAppPayReply) | ||||
| 	err := c.cc.Invoke(ctx, Alipay_AppPay_FullMethodName, in, out, cOpts...) | ||||
| 	if err != nil { | ||||
| 		return nil, err | ||||
| 	} | ||||
| 	return out, nil | ||||
| } | ||||
| 
 | ||||
| func (c *alipayClient) Transfer(ctx context.Context, in *AlipayUniTransferRequest, opts ...grpc.CallOption) (*AlipayUniTransferReply, error) { | ||||
| 	cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) | ||||
| 	out := new(AlipayUniTransferReply) | ||||
| 	err := c.cc.Invoke(ctx, Alipay_Transfer_FullMethodName, in, out, cOpts...) | ||||
| 	if err != nil { | ||||
| 		return nil, err | ||||
| 	} | ||||
| 	return out, nil | ||||
| } | ||||
| 
 | ||||
| // AlipayServer is the server API for Alipay service.
 | ||||
| // All implementations must embed UnimplementedAlipayServer
 | ||||
| // for forward compatibility.
 | ||||
| type AlipayServer interface { | ||||
| 	//支付宝wap支付
 | ||||
| 	WapPay(context.Context, *AlipayTradeWapPayRequest) (*AlipayTradeWapPayReply, error) | ||||
| 	//支付宝电脑网站支付
 | ||||
| 	PagePay(context.Context, *AlipayTradePagePayRequest) (*AlipayTradePagePayReply, error) | ||||
| 	//支付宝APP支付
 | ||||
| 	AppPay(context.Context, *AlipayTradeAppPayRequest) (*AlipayTradeAppPayReply, error) | ||||
| 	//支付宝转账到个人支付宝账户
 | ||||
| 	Transfer(context.Context, *AlipayUniTransferRequest) (*AlipayUniTransferReply, error) | ||||
| 	mustEmbedUnimplementedAlipayServer() | ||||
| } | ||||
| 
 | ||||
| // UnimplementedAlipayServer must be embedded to have
 | ||||
| // forward compatible implementations.
 | ||||
| //
 | ||||
| // NOTE: this should be embedded by value instead of pointer to avoid a nil
 | ||||
| // pointer dereference when methods are called.
 | ||||
| type UnimplementedAlipayServer struct{} | ||||
| 
 | ||||
| func (UnimplementedAlipayServer) WapPay(context.Context, *AlipayTradeWapPayRequest) (*AlipayTradeWapPayReply, error) { | ||||
| 	return nil, status.Errorf(codes.Unimplemented, "method WapPay not implemented") | ||||
| } | ||||
| func (UnimplementedAlipayServer) PagePay(context.Context, *AlipayTradePagePayRequest) (*AlipayTradePagePayReply, error) { | ||||
| 	return nil, status.Errorf(codes.Unimplemented, "method PagePay not implemented") | ||||
| } | ||||
| func (UnimplementedAlipayServer) AppPay(context.Context, *AlipayTradeAppPayRequest) (*AlipayTradeAppPayReply, error) { | ||||
| 	return nil, status.Errorf(codes.Unimplemented, "method AppPay not implemented") | ||||
| } | ||||
| func (UnimplementedAlipayServer) Transfer(context.Context, *AlipayUniTransferRequest) (*AlipayUniTransferReply, error) { | ||||
| 	return nil, status.Errorf(codes.Unimplemented, "method Transfer not implemented") | ||||
| } | ||||
| func (UnimplementedAlipayServer) mustEmbedUnimplementedAlipayServer() {} | ||||
| func (UnimplementedAlipayServer) testEmbeddedByValue()                {} | ||||
| 
 | ||||
| // UnsafeAlipayServer may be embedded to opt out of forward compatibility for this service.
 | ||||
| // Use of this interface is not recommended, as added methods to AlipayServer will
 | ||||
| // result in compilation errors.
 | ||||
| type UnsafeAlipayServer interface { | ||||
| 	mustEmbedUnimplementedAlipayServer() | ||||
| } | ||||
| 
 | ||||
| func RegisterAlipayServer(s grpc.ServiceRegistrar, srv AlipayServer) { | ||||
| 	// If the following call pancis, it indicates UnimplementedAlipayServer was
 | ||||
| 	// embedded by pointer and is nil.  This will cause panics if an
 | ||||
| 	// unimplemented method is ever invoked, so we test this at initialization
 | ||||
| 	// time to prevent it from happening at runtime later due to I/O.
 | ||||
| 	if t, ok := srv.(interface{ testEmbeddedByValue() }); ok { | ||||
| 		t.testEmbeddedByValue() | ||||
| 	} | ||||
| 	s.RegisterService(&Alipay_ServiceDesc, srv) | ||||
| } | ||||
| 
 | ||||
| func _Alipay_WapPay_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { | ||||
| 	in := new(AlipayTradeWapPayRequest) | ||||
| 	if err := dec(in); err != nil { | ||||
| 		return nil, err | ||||
| 	} | ||||
| 	if interceptor == nil { | ||||
| 		return srv.(AlipayServer).WapPay(ctx, in) | ||||
| 	} | ||||
| 	info := &grpc.UnaryServerInfo{ | ||||
| 		Server:     srv, | ||||
| 		FullMethod: Alipay_WapPay_FullMethodName, | ||||
| 	} | ||||
| 	handler := func(ctx context.Context, req interface{}) (interface{}, error) { | ||||
| 		return srv.(AlipayServer).WapPay(ctx, req.(*AlipayTradeWapPayRequest)) | ||||
| 	} | ||||
| 	return interceptor(ctx, in, info, handler) | ||||
| } | ||||
| 
 | ||||
| func _Alipay_PagePay_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { | ||||
| 	in := new(AlipayTradePagePayRequest) | ||||
| 	if err := dec(in); err != nil { | ||||
| 		return nil, err | ||||
| 	} | ||||
| 	if interceptor == nil { | ||||
| 		return srv.(AlipayServer).PagePay(ctx, in) | ||||
| 	} | ||||
| 	info := &grpc.UnaryServerInfo{ | ||||
| 		Server:     srv, | ||||
| 		FullMethod: Alipay_PagePay_FullMethodName, | ||||
| 	} | ||||
| 	handler := func(ctx context.Context, req interface{}) (interface{}, error) { | ||||
| 		return srv.(AlipayServer).PagePay(ctx, req.(*AlipayTradePagePayRequest)) | ||||
| 	} | ||||
| 	return interceptor(ctx, in, info, handler) | ||||
| } | ||||
| 
 | ||||
| func _Alipay_AppPay_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { | ||||
| 	in := new(AlipayTradeAppPayRequest) | ||||
| 	if err := dec(in); err != nil { | ||||
| 		return nil, err | ||||
| 	} | ||||
| 	if interceptor == nil { | ||||
| 		return srv.(AlipayServer).AppPay(ctx, in) | ||||
| 	} | ||||
| 	info := &grpc.UnaryServerInfo{ | ||||
| 		Server:     srv, | ||||
| 		FullMethod: Alipay_AppPay_FullMethodName, | ||||
| 	} | ||||
| 	handler := func(ctx context.Context, req interface{}) (interface{}, error) { | ||||
| 		return srv.(AlipayServer).AppPay(ctx, req.(*AlipayTradeAppPayRequest)) | ||||
| 	} | ||||
| 	return interceptor(ctx, in, info, handler) | ||||
| } | ||||
| 
 | ||||
| func _Alipay_Transfer_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { | ||||
| 	in := new(AlipayUniTransferRequest) | ||||
| 	if err := dec(in); err != nil { | ||||
| 		return nil, err | ||||
| 	} | ||||
| 	if interceptor == nil { | ||||
| 		return srv.(AlipayServer).Transfer(ctx, in) | ||||
| 	} | ||||
| 	info := &grpc.UnaryServerInfo{ | ||||
| 		Server:     srv, | ||||
| 		FullMethod: Alipay_Transfer_FullMethodName, | ||||
| 	} | ||||
| 	handler := func(ctx context.Context, req interface{}) (interface{}, error) { | ||||
| 		return srv.(AlipayServer).Transfer(ctx, req.(*AlipayUniTransferRequest)) | ||||
| 	} | ||||
| 	return interceptor(ctx, in, info, handler) | ||||
| } | ||||
| 
 | ||||
| // Alipay_ServiceDesc is the grpc.ServiceDesc for Alipay service.
 | ||||
| // It's only intended for direct use with grpc.RegisterService,
 | ||||
| // and not to be introspected or modified (even as a copy)
 | ||||
| var Alipay_ServiceDesc = grpc.ServiceDesc{ | ||||
| 	ServiceName: "wallet.Alipay", | ||||
| 	HandlerType: (*AlipayServer)(nil), | ||||
| 	Methods: []grpc.MethodDesc{ | ||||
| 		{ | ||||
| 			MethodName: "WapPay", | ||||
| 			Handler:    _Alipay_WapPay_Handler, | ||||
| 		}, | ||||
| 		{ | ||||
| 			MethodName: "PagePay", | ||||
| 			Handler:    _Alipay_PagePay_Handler, | ||||
| 		}, | ||||
| 		{ | ||||
| 			MethodName: "AppPay", | ||||
| 			Handler:    _Alipay_AppPay_Handler, | ||||
| 		}, | ||||
| 		{ | ||||
| 			MethodName: "Transfer", | ||||
| 			Handler:    _Alipay_Transfer_Handler, | ||||
| 		}, | ||||
| 	}, | ||||
| 	Streams:  []grpc.StreamDesc{}, | ||||
| 	Metadata: "alipay.proto", | ||||
| } | ||||
|  | @ -1,390 +0,0 @@ | |||
| // Code generated by protoc-gen-go. DO NOT EDIT.
 | ||||
| // versions:
 | ||||
| // 	protoc-gen-go v1.36.9
 | ||||
| // 	protoc        (unknown)
 | ||||
| // source: blocks.proto
 | ||||
| 
 | ||||
| package wallet | ||||
| 
 | ||||
| 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 FetchRequest struct { | ||||
| 	state         protoimpl.MessageState `protogen:"open.v1"` | ||||
| 	PageNo        int64                  `protobuf:"varint,1,opt,name=page_no,json=pageNo,proto3" json:"page_no,omitempty"`                                                            // 页数
 | ||||
| 	PageSize      int64                  `protobuf:"varint,2,opt,name=page_size,json=pageSize,proto3" json:"page_size,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"` // 条件参数,key=val,eg key:category_id=?,vlaue=11
 | ||||
| 	unknownFields protoimpl.UnknownFields | ||||
| 	sizeCache     protoimpl.SizeCache | ||||
| } | ||||
| 
 | ||||
| func (x *FetchRequest) Reset() { | ||||
| 	*x = FetchRequest{} | ||||
| 	mi := &file_blocks_proto_msgTypes[0] | ||||
| 	ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) | ||||
| 	ms.StoreMessageInfo(mi) | ||||
| } | ||||
| 
 | ||||
| func (x *FetchRequest) String() string { | ||||
| 	return protoimpl.X.MessageStringOf(x) | ||||
| } | ||||
| 
 | ||||
| func (*FetchRequest) ProtoMessage() {} | ||||
| 
 | ||||
| func (x *FetchRequest) ProtoReflect() protoreflect.Message { | ||||
| 	mi := &file_blocks_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 FetchRequest.ProtoReflect.Descriptor instead.
 | ||||
| func (*FetchRequest) Descriptor() ([]byte, []int) { | ||||
| 	return file_blocks_proto_rawDescGZIP(), []int{0} | ||||
| } | ||||
| 
 | ||||
| func (x *FetchRequest) GetPageNo() int64 { | ||||
| 	if x != nil { | ||||
| 		return x.PageNo | ||||
| 	} | ||||
| 	return 0 | ||||
| } | ||||
| 
 | ||||
| func (x *FetchRequest) GetPageSize() int64 { | ||||
| 	if x != nil { | ||||
| 		return x.PageSize | ||||
| 	} | ||||
| 	return 0 | ||||
| } | ||||
| 
 | ||||
| func (x *FetchRequest) GetParams() map[string]string { | ||||
| 	if x != nil { | ||||
| 		return x.Params | ||||
| 	} | ||||
| 	return nil | ||||
| } | ||||
| 
 | ||||
| type IdentRequest struct { | ||||
| 	state         protoimpl.MessageState `protogen:"open.v1"` | ||||
| 	Id            int64                  `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`            // 唯一ID
 | ||||
| 	Identity      string                 `protobuf:"bytes,2,opt,name=identity,proto3" json:"identity,omitempty"` // 唯一码
 | ||||
| 	unknownFields protoimpl.UnknownFields | ||||
| 	sizeCache     protoimpl.SizeCache | ||||
| } | ||||
| 
 | ||||
| func (x *IdentRequest) Reset() { | ||||
| 	*x = IdentRequest{} | ||||
| 	mi := &file_blocks_proto_msgTypes[1] | ||||
| 	ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) | ||||
| 	ms.StoreMessageInfo(mi) | ||||
| } | ||||
| 
 | ||||
| func (x *IdentRequest) String() string { | ||||
| 	return protoimpl.X.MessageStringOf(x) | ||||
| } | ||||
| 
 | ||||
| func (*IdentRequest) ProtoMessage() {} | ||||
| 
 | ||||
| func (x *IdentRequest) ProtoReflect() protoreflect.Message { | ||||
| 	mi := &file_blocks_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 IdentRequest.ProtoReflect.Descriptor instead.
 | ||||
| func (*IdentRequest) Descriptor() ([]byte, []int) { | ||||
| 	return file_blocks_proto_rawDescGZIP(), []int{1} | ||||
| } | ||||
| 
 | ||||
| func (x *IdentRequest) GetId() int64 { | ||||
| 	if x != nil { | ||||
| 		return x.Id | ||||
| 	} | ||||
| 	return 0 | ||||
| } | ||||
| 
 | ||||
| func (x *IdentRequest) GetIdentity() string { | ||||
| 	if x != nil { | ||||
| 		return x.Identity | ||||
| 	} | ||||
| 	return "" | ||||
| } | ||||
| 
 | ||||
| type VersionRequest struct { | ||||
| 	state         protoimpl.MessageState `protogen:"open.v1"` | ||||
| 	Version       int64                  `protobuf:"varint,1,opt,name=version,proto3" json:"version,omitempty"` // 时序版本号
 | ||||
| 	unknownFields protoimpl.UnknownFields | ||||
| 	sizeCache     protoimpl.SizeCache | ||||
| } | ||||
| 
 | ||||
| func (x *VersionRequest) Reset() { | ||||
| 	*x = VersionRequest{} | ||||
| 	mi := &file_blocks_proto_msgTypes[2] | ||||
| 	ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) | ||||
| 	ms.StoreMessageInfo(mi) | ||||
| } | ||||
| 
 | ||||
| func (x *VersionRequest) String() string { | ||||
| 	return protoimpl.X.MessageStringOf(x) | ||||
| } | ||||
| 
 | ||||
| func (*VersionRequest) ProtoMessage() {} | ||||
| 
 | ||||
| func (x *VersionRequest) ProtoReflect() protoreflect.Message { | ||||
| 	mi := &file_blocks_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 VersionRequest.ProtoReflect.Descriptor instead.
 | ||||
| func (*VersionRequest) Descriptor() ([]byte, []int) { | ||||
| 	return file_blocks_proto_rawDescGZIP(), []int{2} | ||||
| } | ||||
| 
 | ||||
| func (x *VersionRequest) GetVersion() int64 { | ||||
| 	if x != nil { | ||||
| 		return x.Version | ||||
| 	} | ||||
| 	return 0 | ||||
| } | ||||
| 
 | ||||
| type SearchRequest struct { | ||||
| 	state         protoimpl.MessageState `protogen:"open.v1"` | ||||
| 	Keyword       string                 `protobuf:"bytes,1,opt,name=keyword,proto3" json:"keyword,omitempty"` //关键词
 | ||||
| 	unknownFields protoimpl.UnknownFields | ||||
| 	sizeCache     protoimpl.SizeCache | ||||
| } | ||||
| 
 | ||||
| func (x *SearchRequest) Reset() { | ||||
| 	*x = SearchRequest{} | ||||
| 	mi := &file_blocks_proto_msgTypes[3] | ||||
| 	ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) | ||||
| 	ms.StoreMessageInfo(mi) | ||||
| } | ||||
| 
 | ||||
| func (x *SearchRequest) String() string { | ||||
| 	return protoimpl.X.MessageStringOf(x) | ||||
| } | ||||
| 
 | ||||
| func (*SearchRequest) ProtoMessage() {} | ||||
| 
 | ||||
| func (x *SearchRequest) ProtoReflect() protoreflect.Message { | ||||
| 	mi := &file_blocks_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 SearchRequest.ProtoReflect.Descriptor instead.
 | ||||
| func (*SearchRequest) Descriptor() ([]byte, []int) { | ||||
| 	return file_blocks_proto_rawDescGZIP(), []int{3} | ||||
| } | ||||
| 
 | ||||
| func (x *SearchRequest) GetKeyword() string { | ||||
| 	if x != nil { | ||||
| 		return x.Keyword | ||||
| 	} | ||||
| 	return "" | ||||
| } | ||||
| 
 | ||||
| type StatusReply struct { | ||||
| 	state         protoimpl.MessageState `protogen:"open.v1"` | ||||
| 	Data          string                 `protobuf:"bytes,1,opt,name=data,proto3" json:"data,omitempty"`        // 数据
 | ||||
| 	Timeseq       int64                  `protobuf:"varint,2,opt,name=timeseq,proto3" json:"timeseq,omitempty"` // 响应时间序列
 | ||||
| 	unknownFields protoimpl.UnknownFields | ||||
| 	sizeCache     protoimpl.SizeCache | ||||
| } | ||||
| 
 | ||||
| func (x *StatusReply) Reset() { | ||||
| 	*x = StatusReply{} | ||||
| 	mi := &file_blocks_proto_msgTypes[4] | ||||
| 	ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) | ||||
| 	ms.StoreMessageInfo(mi) | ||||
| } | ||||
| 
 | ||||
| func (x *StatusReply) String() string { | ||||
| 	return protoimpl.X.MessageStringOf(x) | ||||
| } | ||||
| 
 | ||||
| func (*StatusReply) ProtoMessage() {} | ||||
| 
 | ||||
| func (x *StatusReply) ProtoReflect() protoreflect.Message { | ||||
| 	mi := &file_blocks_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 StatusReply.ProtoReflect.Descriptor instead.
 | ||||
| func (*StatusReply) Descriptor() ([]byte, []int) { | ||||
| 	return file_blocks_proto_rawDescGZIP(), []int{4} | ||||
| } | ||||
| 
 | ||||
| func (x *StatusReply) GetData() string { | ||||
| 	if x != nil { | ||||
| 		return x.Data | ||||
| 	} | ||||
| 	return "" | ||||
| } | ||||
| 
 | ||||
| func (x *StatusReply) GetTimeseq() int64 { | ||||
| 	if x != nil { | ||||
| 		return x.Timeseq | ||||
| 	} | ||||
| 	return 0 | ||||
| } | ||||
| 
 | ||||
| type Empty struct { | ||||
| 	state         protoimpl.MessageState `protogen:"open.v1"` | ||||
| 	unknownFields protoimpl.UnknownFields | ||||
| 	sizeCache     protoimpl.SizeCache | ||||
| } | ||||
| 
 | ||||
| func (x *Empty) Reset() { | ||||
| 	*x = Empty{} | ||||
| 	mi := &file_blocks_proto_msgTypes[5] | ||||
| 	ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) | ||||
| 	ms.StoreMessageInfo(mi) | ||||
| } | ||||
| 
 | ||||
| func (x *Empty) String() string { | ||||
| 	return protoimpl.X.MessageStringOf(x) | ||||
| } | ||||
| 
 | ||||
| func (*Empty) ProtoMessage() {} | ||||
| 
 | ||||
| func (x *Empty) ProtoReflect() protoreflect.Message { | ||||
| 	mi := &file_blocks_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 Empty.ProtoReflect.Descriptor instead.
 | ||||
| func (*Empty) Descriptor() ([]byte, []int) { | ||||
| 	return file_blocks_proto_rawDescGZIP(), []int{5} | ||||
| } | ||||
| 
 | ||||
| var File_blocks_proto protoreflect.FileDescriptor | ||||
| 
 | ||||
| const file_blocks_proto_rawDesc = "" + | ||||
| 	"\n" + | ||||
| 	"\fblocks.proto\x12\x06wallet\"\xb9\x01\n" + | ||||
| 	"\fFetchRequest\x12\x17\n" + | ||||
| 	"\apage_no\x18\x01 \x01(\x03R\x06pageNo\x12\x1b\n" + | ||||
| 	"\tpage_size\x18\x02 \x01(\x03R\bpageSize\x128\n" + | ||||
| 	"\x06params\x18\x03 \x03(\v2 .wallet.FetchRequest.ParamsEntryR\x06params\x1a9\n" + | ||||
| 	"\vParamsEntry\x12\x10\n" + | ||||
| 	"\x03key\x18\x01 \x01(\tR\x03key\x12\x14\n" + | ||||
| 	"\x05value\x18\x02 \x01(\tR\x05value:\x028\x01\":\n" + | ||||
| 	"\fIdentRequest\x12\x0e\n" + | ||||
| 	"\x02id\x18\x01 \x01(\x03R\x02id\x12\x1a\n" + | ||||
| 	"\bidentity\x18\x02 \x01(\tR\bidentity\"*\n" + | ||||
| 	"\x0eVersionRequest\x12\x18\n" + | ||||
| 	"\aversion\x18\x01 \x01(\x03R\aversion\")\n" + | ||||
| 	"\rSearchRequest\x12\x18\n" + | ||||
| 	"\akeyword\x18\x01 \x01(\tR\akeyword\";\n" + | ||||
| 	"\vStatusReply\x12\x12\n" + | ||||
| 	"\x04data\x18\x01 \x01(\tR\x04data\x12\x18\n" + | ||||
| 	"\atimeseq\x18\x02 \x01(\x03R\atimeseq\"\a\n" + | ||||
| 	"\x05EmptyB\n" + | ||||
| 	"Z\b.;walletb\x06proto3" | ||||
| 
 | ||||
| var ( | ||||
| 	file_blocks_proto_rawDescOnce sync.Once | ||||
| 	file_blocks_proto_rawDescData []byte | ||||
| ) | ||||
| 
 | ||||
| func file_blocks_proto_rawDescGZIP() []byte { | ||||
| 	file_blocks_proto_rawDescOnce.Do(func() { | ||||
| 		file_blocks_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_blocks_proto_rawDesc), len(file_blocks_proto_rawDesc))) | ||||
| 	}) | ||||
| 	return file_blocks_proto_rawDescData | ||||
| } | ||||
| 
 | ||||
| var file_blocks_proto_msgTypes = make([]protoimpl.MessageInfo, 7) | ||||
| var file_blocks_proto_goTypes = []any{ | ||||
| 	(*FetchRequest)(nil),   // 0: wallet.FetchRequest
 | ||||
| 	(*IdentRequest)(nil),   // 1: wallet.IdentRequest
 | ||||
| 	(*VersionRequest)(nil), // 2: wallet.VersionRequest
 | ||||
| 	(*SearchRequest)(nil),  // 3: wallet.SearchRequest
 | ||||
| 	(*StatusReply)(nil),    // 4: wallet.StatusReply
 | ||||
| 	(*Empty)(nil),          // 5: wallet.Empty
 | ||||
| 	nil,                    // 6: wallet.FetchRequest.ParamsEntry
 | ||||
| } | ||||
| var file_blocks_proto_depIdxs = []int32{ | ||||
| 	6, // 0: wallet.FetchRequest.params:type_name -> wallet.FetchRequest.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_blocks_proto_init() } | ||||
| func file_blocks_proto_init() { | ||||
| 	if File_blocks_proto != nil { | ||||
| 		return | ||||
| 	} | ||||
| 	type x struct{} | ||||
| 	out := protoimpl.TypeBuilder{ | ||||
| 		File: protoimpl.DescBuilder{ | ||||
| 			GoPackagePath: reflect.TypeOf(x{}).PkgPath(), | ||||
| 			RawDescriptor: unsafe.Slice(unsafe.StringData(file_blocks_proto_rawDesc), len(file_blocks_proto_rawDesc)), | ||||
| 			NumEnums:      0, | ||||
| 			NumMessages:   7, | ||||
| 			NumExtensions: 0, | ||||
| 			NumServices:   0, | ||||
| 		}, | ||||
| 		GoTypes:           file_blocks_proto_goTypes, | ||||
| 		DependencyIndexes: file_blocks_proto_depIdxs, | ||||
| 		MessageInfos:      file_blocks_proto_msgTypes, | ||||
| 	}.Build() | ||||
| 	File_blocks_proto = out.File | ||||
| 	file_blocks_proto_goTypes = nil | ||||
| 	file_blocks_proto_depIdxs = nil | ||||
| } | ||||
|  | @ -1,710 +0,0 @@ | |||
| // Code generated by protoc-gen-go. DO NOT EDIT.
 | ||||
| // versions:
 | ||||
| // 	protoc-gen-go v1.36.9
 | ||||
| // 	protoc        (unknown)
 | ||||
| // source: payment.proto
 | ||||
| 
 | ||||
| package wallet | ||||
| 
 | ||||
| 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 WayRequest struct { | ||||
| 	state         protoimpl.MessageState `protogen:"open.v1"` | ||||
| 	Platform      string                 `protobuf:"bytes,1,opt,name=platform,proto3" json:"platform,omitempty"` //平台
 | ||||
| 	unknownFields protoimpl.UnknownFields | ||||
| 	sizeCache     protoimpl.SizeCache | ||||
| } | ||||
| 
 | ||||
| func (x *WayRequest) Reset() { | ||||
| 	*x = WayRequest{} | ||||
| 	mi := &file_payment_proto_msgTypes[0] | ||||
| 	ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) | ||||
| 	ms.StoreMessageInfo(mi) | ||||
| } | ||||
| 
 | ||||
| func (x *WayRequest) String() string { | ||||
| 	return protoimpl.X.MessageStringOf(x) | ||||
| } | ||||
| 
 | ||||
| func (*WayRequest) ProtoMessage() {} | ||||
| 
 | ||||
| func (x *WayRequest) ProtoReflect() protoreflect.Message { | ||||
| 	mi := &file_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 WayRequest.ProtoReflect.Descriptor instead.
 | ||||
| func (*WayRequest) Descriptor() ([]byte, []int) { | ||||
| 	return file_payment_proto_rawDescGZIP(), []int{0} | ||||
| } | ||||
| 
 | ||||
| func (x *WayRequest) GetPlatform() string { | ||||
| 	if x != nil { | ||||
| 		return x.Platform | ||||
| 	} | ||||
| 	return "" | ||||
| } | ||||
| 
 | ||||
| type WayReply struct { | ||||
| 	state         protoimpl.MessageState `protogen:"open.v1"` | ||||
| 	Way           []*WayItem             `protobuf:"bytes,1,rep,name=way,proto3" json:"way,omitempty"` //支付通道列表
 | ||||
| 	unknownFields protoimpl.UnknownFields | ||||
| 	sizeCache     protoimpl.SizeCache | ||||
| } | ||||
| 
 | ||||
| func (x *WayReply) Reset() { | ||||
| 	*x = WayReply{} | ||||
| 	mi := &file_payment_proto_msgTypes[1] | ||||
| 	ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) | ||||
| 	ms.StoreMessageInfo(mi) | ||||
| } | ||||
| 
 | ||||
| func (x *WayReply) String() string { | ||||
| 	return protoimpl.X.MessageStringOf(x) | ||||
| } | ||||
| 
 | ||||
| func (*WayReply) ProtoMessage() {} | ||||
| 
 | ||||
| func (x *WayReply) ProtoReflect() protoreflect.Message { | ||||
| 	mi := &file_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 WayReply.ProtoReflect.Descriptor instead.
 | ||||
| func (*WayReply) Descriptor() ([]byte, []int) { | ||||
| 	return file_payment_proto_rawDescGZIP(), []int{1} | ||||
| } | ||||
| 
 | ||||
| func (x *WayReply) GetWay() []*WayItem { | ||||
| 	if x != nil { | ||||
| 		return x.Way | ||||
| 	} | ||||
| 	return nil | ||||
| } | ||||
| 
 | ||||
| type WayItem struct { | ||||
| 	state         protoimpl.MessageState `protogen:"open.v1"` | ||||
| 	Ident         string                 `protobuf:"bytes,1,opt,name=ident,proto3" json:"ident,omitempty"` //支付通道标识
 | ||||
| 	Title         string                 `protobuf:"bytes,2,opt,name=title,proto3" json:"title,omitempty"` //支付通道标题
 | ||||
| 	Intro         string                 `protobuf:"bytes,3,opt,name=intro,proto3" json:"intro,omitempty"` //支付通道说明
 | ||||
| 	Args          string                 `protobuf:"bytes,4,opt,name=args,proto3" json:"args,omitempty"`   //支付通道相关参数
 | ||||
| 	unknownFields protoimpl.UnknownFields | ||||
| 	sizeCache     protoimpl.SizeCache | ||||
| } | ||||
| 
 | ||||
| func (x *WayItem) Reset() { | ||||
| 	*x = WayItem{} | ||||
| 	mi := &file_payment_proto_msgTypes[2] | ||||
| 	ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) | ||||
| 	ms.StoreMessageInfo(mi) | ||||
| } | ||||
| 
 | ||||
| func (x *WayItem) String() string { | ||||
| 	return protoimpl.X.MessageStringOf(x) | ||||
| } | ||||
| 
 | ||||
| func (*WayItem) ProtoMessage() {} | ||||
| 
 | ||||
| func (x *WayItem) ProtoReflect() protoreflect.Message { | ||||
| 	mi := &file_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 WayItem.ProtoReflect.Descriptor instead.
 | ||||
| func (*WayItem) Descriptor() ([]byte, []int) { | ||||
| 	return file_payment_proto_rawDescGZIP(), []int{2} | ||||
| } | ||||
| 
 | ||||
| func (x *WayItem) GetIdent() string { | ||||
| 	if x != nil { | ||||
| 		return x.Ident | ||||
| 	} | ||||
| 	return "" | ||||
| } | ||||
| 
 | ||||
| func (x *WayItem) GetTitle() string { | ||||
| 	if x != nil { | ||||
| 		return x.Title | ||||
| 	} | ||||
| 	return "" | ||||
| } | ||||
| 
 | ||||
| func (x *WayItem) GetIntro() string { | ||||
| 	if x != nil { | ||||
| 		return x.Intro | ||||
| 	} | ||||
| 	return "" | ||||
| } | ||||
| 
 | ||||
| func (x *WayItem) GetArgs() string { | ||||
| 	if x != nil { | ||||
| 		return x.Args | ||||
| 	} | ||||
| 	return "" | ||||
| } | ||||
| 
 | ||||
| type PaymentItem struct { | ||||
| 	state         protoimpl.MessageState `protogen:"open.v1"` | ||||
| 	OrderNo       string                 `protobuf:"bytes,1,opt,name=order_no,json=orderNo,proto3" json:"order_no,omitempty"`           // 订单号
 | ||||
| 	TradeNo       string                 `protobuf:"bytes,2,opt,name=trade_no,json=tradeNo,proto3" json:"trade_no,omitempty"`           // 第三方交易流水号
 | ||||
| 	Type          int32                  `protobuf:"varint,3,opt,name=type,proto3" json:"type,omitempty"`                               // 类型:1充值;2支付电商订单
 | ||||
| 	PayChannel    int32                  `protobuf:"varint,4,opt,name=pay_channel,json=payChannel,proto3" json:"pay_channel,omitempty"` // 支付模型:WECHAT,ALIPAY,BALANCE
 | ||||
| 	PayType       string                 `protobuf:"bytes,5,opt,name=pay_type,json=payType,proto3" json:"pay_type,omitempty"`           // 支付类型 JSAPI:微信浏览器内支付 APP:app支付  MINI:小程序  NATIVE:Native支付,pc端生成二维码供用户扫码支付,QUICK_MSECURITY_PAY:app支付 QUICK_WAP_WAY:手机网站支付 FAST_INSTANT_TRADE_PAY:pc网站支付
 | ||||
| 	Amount        int64                  `protobuf:"varint,6,opt,name=amount,proto3" json:"amount,omitempty"`                           //充值金额 单位为分
 | ||||
| 	Args          string                 `protobuf:"bytes,7,opt,name=args,proto3" json:"args,omitempty"`                                // 相关参数
 | ||||
| 	Status        int32                  `protobuf:"varint,8,opt,name=status,proto3" json:"status,omitempty"`                           // 支付状态
 | ||||
| 	unknownFields protoimpl.UnknownFields | ||||
| 	sizeCache     protoimpl.SizeCache | ||||
| } | ||||
| 
 | ||||
| func (x *PaymentItem) Reset() { | ||||
| 	*x = PaymentItem{} | ||||
| 	mi := &file_payment_proto_msgTypes[3] | ||||
| 	ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) | ||||
| 	ms.StoreMessageInfo(mi) | ||||
| } | ||||
| 
 | ||||
| func (x *PaymentItem) String() string { | ||||
| 	return protoimpl.X.MessageStringOf(x) | ||||
| } | ||||
| 
 | ||||
| func (*PaymentItem) ProtoMessage() {} | ||||
| 
 | ||||
| func (x *PaymentItem) ProtoReflect() protoreflect.Message { | ||||
| 	mi := &file_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 PaymentItem.ProtoReflect.Descriptor instead.
 | ||||
| func (*PaymentItem) Descriptor() ([]byte, []int) { | ||||
| 	return file_payment_proto_rawDescGZIP(), []int{3} | ||||
| } | ||||
| 
 | ||||
| func (x *PaymentItem) GetOrderNo() string { | ||||
| 	if x != nil { | ||||
| 		return x.OrderNo | ||||
| 	} | ||||
| 	return "" | ||||
| } | ||||
| 
 | ||||
| func (x *PaymentItem) GetTradeNo() string { | ||||
| 	if x != nil { | ||||
| 		return x.TradeNo | ||||
| 	} | ||||
| 	return "" | ||||
| } | ||||
| 
 | ||||
| func (x *PaymentItem) GetType() int32 { | ||||
| 	if x != nil { | ||||
| 		return x.Type | ||||
| 	} | ||||
| 	return 0 | ||||
| } | ||||
| 
 | ||||
| func (x *PaymentItem) GetPayChannel() int32 { | ||||
| 	if x != nil { | ||||
| 		return x.PayChannel | ||||
| 	} | ||||
| 	return 0 | ||||
| } | ||||
| 
 | ||||
| func (x *PaymentItem) GetPayType() string { | ||||
| 	if x != nil { | ||||
| 		return x.PayType | ||||
| 	} | ||||
| 	return "" | ||||
| } | ||||
| 
 | ||||
| func (x *PaymentItem) GetAmount() int64 { | ||||
| 	if x != nil { | ||||
| 		return x.Amount | ||||
| 	} | ||||
| 	return 0 | ||||
| } | ||||
| 
 | ||||
| func (x *PaymentItem) GetArgs() string { | ||||
| 	if x != nil { | ||||
| 		return x.Args | ||||
| 	} | ||||
| 	return "" | ||||
| } | ||||
| 
 | ||||
| func (x *PaymentItem) GetStatus() int32 { | ||||
| 	if x != nil { | ||||
| 		return x.Status | ||||
| 	} | ||||
| 	return 0 | ||||
| } | ||||
| 
 | ||||
| type ChargeRequest struct { | ||||
| 	state         protoimpl.MessageState `protogen:"open.v1"` | ||||
| 	Amount        int64                  `protobuf:"varint,1,opt,name=amount,proto3" json:"amount,omitempty"`                           //充值金额 单位为分
 | ||||
| 	Remark        string                 `protobuf:"bytes,2,opt,name=remark,proto3" json:"remark,omitempty"`                            //备注
 | ||||
| 	PayChannel    int32                  `protobuf:"varint,3,opt,name=pay_channel,json=payChannel,proto3" json:"pay_channel,omitempty"` //支付模型:WECHAT,ALIPAY
 | ||||
| 	PayType       string                 `protobuf:"bytes,4,opt,name=pay_type,json=payType,proto3" json:"pay_type,omitempty"`           //支付类型 JSAPI:微信浏览器内支付 APP:app支付  MWEB:H5支付  NATIVE:Native支付,pc端生成二维码供用户扫码支付,QUICK_MSECURITY_PAY:app支付 QUICK_WAP_WAY:手机网站支付 FAST_INSTANT_TRADE_PAY:pc网站支付
 | ||||
| 	Desc          string                 `protobuf:"bytes,5,opt,name=desc,proto3" json:"desc,omitempty"`                                //支付描述
 | ||||
| 	OpenId        string                 `protobuf:"bytes,6,opt,name=open_id,json=openId,proto3" json:"open_id,omitempty"`              //微信用户的OpenID
 | ||||
| 	unknownFields protoimpl.UnknownFields | ||||
| 	sizeCache     protoimpl.SizeCache | ||||
| } | ||||
| 
 | ||||
| func (x *ChargeRequest) Reset() { | ||||
| 	*x = ChargeRequest{} | ||||
| 	mi := &file_payment_proto_msgTypes[4] | ||||
| 	ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) | ||||
| 	ms.StoreMessageInfo(mi) | ||||
| } | ||||
| 
 | ||||
| func (x *ChargeRequest) String() string { | ||||
| 	return protoimpl.X.MessageStringOf(x) | ||||
| } | ||||
| 
 | ||||
| func (*ChargeRequest) ProtoMessage() {} | ||||
| 
 | ||||
| func (x *ChargeRequest) ProtoReflect() protoreflect.Message { | ||||
| 	mi := &file_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 ChargeRequest.ProtoReflect.Descriptor instead.
 | ||||
| func (*ChargeRequest) Descriptor() ([]byte, []int) { | ||||
| 	return file_payment_proto_rawDescGZIP(), []int{4} | ||||
| } | ||||
| 
 | ||||
| func (x *ChargeRequest) GetAmount() int64 { | ||||
| 	if x != nil { | ||||
| 		return x.Amount | ||||
| 	} | ||||
| 	return 0 | ||||
| } | ||||
| 
 | ||||
| func (x *ChargeRequest) GetRemark() string { | ||||
| 	if x != nil { | ||||
| 		return x.Remark | ||||
| 	} | ||||
| 	return "" | ||||
| } | ||||
| 
 | ||||
| func (x *ChargeRequest) GetPayChannel() int32 { | ||||
| 	if x != nil { | ||||
| 		return x.PayChannel | ||||
| 	} | ||||
| 	return 0 | ||||
| } | ||||
| 
 | ||||
| func (x *ChargeRequest) GetPayType() string { | ||||
| 	if x != nil { | ||||
| 		return x.PayType | ||||
| 	} | ||||
| 	return "" | ||||
| } | ||||
| 
 | ||||
| func (x *ChargeRequest) GetDesc() string { | ||||
| 	if x != nil { | ||||
| 		return x.Desc | ||||
| 	} | ||||
| 	return "" | ||||
| } | ||||
| 
 | ||||
| func (x *ChargeRequest) GetOpenId() string { | ||||
| 	if x != nil { | ||||
| 		return x.OpenId | ||||
| 	} | ||||
| 	return "" | ||||
| } | ||||
| 
 | ||||
| type OrderRequest struct { | ||||
| 	state         protoimpl.MessageState `protogen:"open.v1"` | ||||
| 	OrderNo       string                 `protobuf:"bytes,1,opt,name=order_no,json=orderNo,proto3" json:"order_no,omitempty"`           //订单号
 | ||||
| 	PayChannel    int32                  `protobuf:"varint,2,opt,name=pay_channel,json=payChannel,proto3" json:"pay_channel,omitempty"` //支付模型:WECHAT,ALIPAY,BALANCE
 | ||||
| 	PayType       string                 `protobuf:"bytes,3,opt,name=pay_type,json=payType,proto3" json:"pay_type,omitempty"`           //支付类型 JSAPI:微信浏览器内支付 APP:app支付  MINI:小程序  NATIVE:Native支付,pc端生成二维码供用户扫码支付,QUICK_MSECURITY_PAY:app支付 QUICK_WAP_WAY:手机网站支付 FAST_INSTANT_TRADE_PAY:pc网站支付
 | ||||
| 	Password      string                 `protobuf:"bytes,4,opt,name=password,proto3" json:"password,omitempty"`                        //支付密码
 | ||||
| 	Args          string                 `protobuf:"bytes,5,opt,name=args,proto3" json:"args,omitempty"`                                //相关参数
 | ||||
| 	Desc          string                 `protobuf:"bytes,6,opt,name=desc,proto3" json:"desc,omitempty"`                                //支付描述
 | ||||
| 	OpenId        string                 `protobuf:"bytes,7,opt,name=open_id,json=openId,proto3" json:"open_id,omitempty"`              //微信用户的OpenID
 | ||||
| 	unknownFields protoimpl.UnknownFields | ||||
| 	sizeCache     protoimpl.SizeCache | ||||
| } | ||||
| 
 | ||||
| func (x *OrderRequest) Reset() { | ||||
| 	*x = OrderRequest{} | ||||
| 	mi := &file_payment_proto_msgTypes[5] | ||||
| 	ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) | ||||
| 	ms.StoreMessageInfo(mi) | ||||
| } | ||||
| 
 | ||||
| func (x *OrderRequest) String() string { | ||||
| 	return protoimpl.X.MessageStringOf(x) | ||||
| } | ||||
| 
 | ||||
| func (*OrderRequest) ProtoMessage() {} | ||||
| 
 | ||||
| func (x *OrderRequest) ProtoReflect() protoreflect.Message { | ||||
| 	mi := &file_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 OrderRequest.ProtoReflect.Descriptor instead.
 | ||||
| func (*OrderRequest) Descriptor() ([]byte, []int) { | ||||
| 	return file_payment_proto_rawDescGZIP(), []int{5} | ||||
| } | ||||
| 
 | ||||
| func (x *OrderRequest) GetOrderNo() string { | ||||
| 	if x != nil { | ||||
| 		return x.OrderNo | ||||
| 	} | ||||
| 	return "" | ||||
| } | ||||
| 
 | ||||
| func (x *OrderRequest) GetPayChannel() int32 { | ||||
| 	if x != nil { | ||||
| 		return x.PayChannel | ||||
| 	} | ||||
| 	return 0 | ||||
| } | ||||
| 
 | ||||
| func (x *OrderRequest) GetPayType() string { | ||||
| 	if x != nil { | ||||
| 		return x.PayType | ||||
| 	} | ||||
| 	return "" | ||||
| } | ||||
| 
 | ||||
| func (x *OrderRequest) GetPassword() string { | ||||
| 	if x != nil { | ||||
| 		return x.Password | ||||
| 	} | ||||
| 	return "" | ||||
| } | ||||
| 
 | ||||
| func (x *OrderRequest) GetArgs() string { | ||||
| 	if x != nil { | ||||
| 		return x.Args | ||||
| 	} | ||||
| 	return "" | ||||
| } | ||||
| 
 | ||||
| func (x *OrderRequest) GetDesc() string { | ||||
| 	if x != nil { | ||||
| 		return x.Desc | ||||
| 	} | ||||
| 	return "" | ||||
| } | ||||
| 
 | ||||
| func (x *OrderRequest) GetOpenId() string { | ||||
| 	if x != nil { | ||||
| 		return x.OpenId | ||||
| 	} | ||||
| 	return "" | ||||
| } | ||||
| 
 | ||||
| type CallbackRequest struct { | ||||
| 	state          protoimpl.MessageState `protogen:"open.v1"` | ||||
| 	Id             int64                  `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`                                               // 唯一ID
 | ||||
| 	Identity       string                 `protobuf:"bytes,2,opt,name=identity,proto3" json:"identity,omitempty"`                                    // 唯一码
 | ||||
| 	CallbackStatus bool                   `protobuf:"varint,3,opt,name=callback_status,json=callbackStatus,proto3" json:"callback_status,omitempty"` // 支付回调状态
 | ||||
| 	CallbackMsg    string                 `protobuf:"bytes,4,opt,name=callback_msg,json=callbackMsg,proto3" json:"callback_msg,omitempty"`           // 支付回调结果
 | ||||
| 	unknownFields  protoimpl.UnknownFields | ||||
| 	sizeCache      protoimpl.SizeCache | ||||
| } | ||||
| 
 | ||||
| func (x *CallbackRequest) Reset() { | ||||
| 	*x = CallbackRequest{} | ||||
| 	mi := &file_payment_proto_msgTypes[6] | ||||
| 	ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) | ||||
| 	ms.StoreMessageInfo(mi) | ||||
| } | ||||
| 
 | ||||
| func (x *CallbackRequest) String() string { | ||||
| 	return protoimpl.X.MessageStringOf(x) | ||||
| } | ||||
| 
 | ||||
| func (*CallbackRequest) ProtoMessage() {} | ||||
| 
 | ||||
| func (x *CallbackRequest) ProtoReflect() protoreflect.Message { | ||||
| 	mi := &file_payment_proto_msgTypes[6] | ||||
| 	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 CallbackRequest.ProtoReflect.Descriptor instead.
 | ||||
| func (*CallbackRequest) Descriptor() ([]byte, []int) { | ||||
| 	return file_payment_proto_rawDescGZIP(), []int{6} | ||||
| } | ||||
| 
 | ||||
| func (x *CallbackRequest) GetId() int64 { | ||||
| 	if x != nil { | ||||
| 		return x.Id | ||||
| 	} | ||||
| 	return 0 | ||||
| } | ||||
| 
 | ||||
| func (x *CallbackRequest) GetIdentity() string { | ||||
| 	if x != nil { | ||||
| 		return x.Identity | ||||
| 	} | ||||
| 	return "" | ||||
| } | ||||
| 
 | ||||
| func (x *CallbackRequest) GetCallbackStatus() bool { | ||||
| 	if x != nil { | ||||
| 		return x.CallbackStatus | ||||
| 	} | ||||
| 	return false | ||||
| } | ||||
| 
 | ||||
| func (x *CallbackRequest) GetCallbackMsg() string { | ||||
| 	if x != nil { | ||||
| 		return x.CallbackMsg | ||||
| 	} | ||||
| 	return "" | ||||
| } | ||||
| 
 | ||||
| type PaymentReply struct { | ||||
| 	state         protoimpl.MessageState `protogen:"open.v1"` | ||||
| 	Code          int64                  `protobuf:"varint,1,opt,name=code,proto3" json:"code,omitempty"` | ||||
| 	Result        map[string]string      `protobuf:"bytes,2,rep,name=result,proto3" json:"result,omitempty" protobuf_key:"bytes,1,opt,name=key" protobuf_val:"bytes,2,opt,name=value"` //预支付返回
 | ||||
| 	unknownFields protoimpl.UnknownFields | ||||
| 	sizeCache     protoimpl.SizeCache | ||||
| } | ||||
| 
 | ||||
| func (x *PaymentReply) Reset() { | ||||
| 	*x = PaymentReply{} | ||||
| 	mi := &file_payment_proto_msgTypes[7] | ||||
| 	ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) | ||||
| 	ms.StoreMessageInfo(mi) | ||||
| } | ||||
| 
 | ||||
| func (x *PaymentReply) String() string { | ||||
| 	return protoimpl.X.MessageStringOf(x) | ||||
| } | ||||
| 
 | ||||
| func (*PaymentReply) ProtoMessage() {} | ||||
| 
 | ||||
| func (x *PaymentReply) ProtoReflect() protoreflect.Message { | ||||
| 	mi := &file_payment_proto_msgTypes[7] | ||||
| 	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 PaymentReply.ProtoReflect.Descriptor instead.
 | ||||
| func (*PaymentReply) Descriptor() ([]byte, []int) { | ||||
| 	return file_payment_proto_rawDescGZIP(), []int{7} | ||||
| } | ||||
| 
 | ||||
| func (x *PaymentReply) GetCode() int64 { | ||||
| 	if x != nil { | ||||
| 		return x.Code | ||||
| 	} | ||||
| 	return 0 | ||||
| } | ||||
| 
 | ||||
| func (x *PaymentReply) GetResult() map[string]string { | ||||
| 	if x != nil { | ||||
| 		return x.Result | ||||
| 	} | ||||
| 	return nil | ||||
| } | ||||
| 
 | ||||
| var File_payment_proto protoreflect.FileDescriptor | ||||
| 
 | ||||
| const file_payment_proto_rawDesc = "" + | ||||
| 	"\n" + | ||||
| 	"\rpayment.proto\x12\x06wallet\x1a\fblocks.proto\"(\n" + | ||||
| 	"\n" + | ||||
| 	"WayRequest\x12\x1a\n" + | ||||
| 	"\bplatform\x18\x01 \x01(\tR\bplatform\"-\n" + | ||||
| 	"\bWayReply\x12!\n" + | ||||
| 	"\x03way\x18\x01 \x03(\v2\x0f.wallet.WayItemR\x03way\"_\n" + | ||||
| 	"\aWayItem\x12\x14\n" + | ||||
| 	"\x05ident\x18\x01 \x01(\tR\x05ident\x12\x14\n" + | ||||
| 	"\x05title\x18\x02 \x01(\tR\x05title\x12\x14\n" + | ||||
| 	"\x05intro\x18\x03 \x01(\tR\x05intro\x12\x12\n" + | ||||
| 	"\x04args\x18\x04 \x01(\tR\x04args\"\xd7\x01\n" + | ||||
| 	"\vPaymentItem\x12\x19\n" + | ||||
| 	"\border_no\x18\x01 \x01(\tR\aorderNo\x12\x19\n" + | ||||
| 	"\btrade_no\x18\x02 \x01(\tR\atradeNo\x12\x12\n" + | ||||
| 	"\x04type\x18\x03 \x01(\x05R\x04type\x12\x1f\n" + | ||||
| 	"\vpay_channel\x18\x04 \x01(\x05R\n" + | ||||
| 	"payChannel\x12\x19\n" + | ||||
| 	"\bpay_type\x18\x05 \x01(\tR\apayType\x12\x16\n" + | ||||
| 	"\x06amount\x18\x06 \x01(\x03R\x06amount\x12\x12\n" + | ||||
| 	"\x04args\x18\a \x01(\tR\x04args\x12\x16\n" + | ||||
| 	"\x06status\x18\b \x01(\x05R\x06status\"\xa8\x01\n" + | ||||
| 	"\rChargeRequest\x12\x16\n" + | ||||
| 	"\x06amount\x18\x01 \x01(\x03R\x06amount\x12\x16\n" + | ||||
| 	"\x06remark\x18\x02 \x01(\tR\x06remark\x12\x1f\n" + | ||||
| 	"\vpay_channel\x18\x03 \x01(\x05R\n" + | ||||
| 	"payChannel\x12\x19\n" + | ||||
| 	"\bpay_type\x18\x04 \x01(\tR\apayType\x12\x12\n" + | ||||
| 	"\x04desc\x18\x05 \x01(\tR\x04desc\x12\x17\n" + | ||||
| 	"\aopen_id\x18\x06 \x01(\tR\x06openId\"\xc2\x01\n" + | ||||
| 	"\fOrderRequest\x12\x19\n" + | ||||
| 	"\border_no\x18\x01 \x01(\tR\aorderNo\x12\x1f\n" + | ||||
| 	"\vpay_channel\x18\x02 \x01(\x05R\n" + | ||||
| 	"payChannel\x12\x19\n" + | ||||
| 	"\bpay_type\x18\x03 \x01(\tR\apayType\x12\x1a\n" + | ||||
| 	"\bpassword\x18\x04 \x01(\tR\bpassword\x12\x12\n" + | ||||
| 	"\x04args\x18\x05 \x01(\tR\x04args\x12\x12\n" + | ||||
| 	"\x04desc\x18\x06 \x01(\tR\x04desc\x12\x17\n" + | ||||
| 	"\aopen_id\x18\a \x01(\tR\x06openId\"\x89\x01\n" + | ||||
| 	"\x0fCallbackRequest\x12\x0e\n" + | ||||
| 	"\x02id\x18\x01 \x01(\x03R\x02id\x12\x1a\n" + | ||||
| 	"\bidentity\x18\x02 \x01(\tR\bidentity\x12'\n" + | ||||
| 	"\x0fcallback_status\x18\x03 \x01(\bR\x0ecallbackStatus\x12!\n" + | ||||
| 	"\fcallback_msg\x18\x04 \x01(\tR\vcallbackMsg\"\x97\x01\n" + | ||||
| 	"\fPaymentReply\x12\x12\n" + | ||||
| 	"\x04code\x18\x01 \x01(\x03R\x04code\x128\n" + | ||||
| 	"\x06result\x18\x02 \x03(\v2 .wallet.PaymentReply.ResultEntryR\x06result\x1a9\n" + | ||||
| 	"\vResultEntry\x12\x10\n" + | ||||
| 	"\x03key\x18\x01 \x01(\tR\x03key\x12\x14\n" + | ||||
| 	"\x05value\x18\x02 \x01(\tR\x05value:\x028\x012\xcc\x02\n" + | ||||
| 	"\aPayment\x12.\n" + | ||||
| 	"\x05Hello\x12\r.wallet.Empty\x1a\x14.wallet.PaymentReply\"\x00\x12-\n" + | ||||
| 	"\x03Way\x12\x12.wallet.WayRequest\x1a\x10.wallet.WayReply\"\x00\x122\n" + | ||||
| 	"\x03Get\x12\x14.wallet.IdentRequest\x1a\x13.wallet.PaymentItem\"\x00\x127\n" + | ||||
| 	"\aByOrder\x12\x14.wallet.OrderRequest\x1a\x14.wallet.PaymentReply\"\x00\x129\n" + | ||||
| 	"\bByCharge\x12\x15.wallet.ChargeRequest\x1a\x14.wallet.PaymentReply\"\x00\x12:\n" + | ||||
| 	"\bCallback\x12\x17.wallet.CallbackRequest\x1a\x13.wallet.StatusReply\"\x00B\n" + | ||||
| 	"Z\b.;walletb\x06proto3" | ||||
| 
 | ||||
| var ( | ||||
| 	file_payment_proto_rawDescOnce sync.Once | ||||
| 	file_payment_proto_rawDescData []byte | ||||
| ) | ||||
| 
 | ||||
| func file_payment_proto_rawDescGZIP() []byte { | ||||
| 	file_payment_proto_rawDescOnce.Do(func() { | ||||
| 		file_payment_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_payment_proto_rawDesc), len(file_payment_proto_rawDesc))) | ||||
| 	}) | ||||
| 	return file_payment_proto_rawDescData | ||||
| } | ||||
| 
 | ||||
| var file_payment_proto_msgTypes = make([]protoimpl.MessageInfo, 9) | ||||
| var file_payment_proto_goTypes = []any{ | ||||
| 	(*WayRequest)(nil),      // 0: wallet.WayRequest
 | ||||
| 	(*WayReply)(nil),        // 1: wallet.WayReply
 | ||||
| 	(*WayItem)(nil),         // 2: wallet.WayItem
 | ||||
| 	(*PaymentItem)(nil),     // 3: wallet.PaymentItem
 | ||||
| 	(*ChargeRequest)(nil),   // 4: wallet.ChargeRequest
 | ||||
| 	(*OrderRequest)(nil),    // 5: wallet.OrderRequest
 | ||||
| 	(*CallbackRequest)(nil), // 6: wallet.CallbackRequest
 | ||||
| 	(*PaymentReply)(nil),    // 7: wallet.PaymentReply
 | ||||
| 	nil,                     // 8: wallet.PaymentReply.ResultEntry
 | ||||
| 	(*Empty)(nil),           // 9: wallet.Empty
 | ||||
| 	(*IdentRequest)(nil),    // 10: wallet.IdentRequest
 | ||||
| 	(*StatusReply)(nil),     // 11: wallet.StatusReply
 | ||||
| } | ||||
| var file_payment_proto_depIdxs = []int32{ | ||||
| 	2,  // 0: wallet.WayReply.way:type_name -> wallet.WayItem
 | ||||
| 	8,  // 1: wallet.PaymentReply.result:type_name -> wallet.PaymentReply.ResultEntry
 | ||||
| 	9,  // 2: wallet.Payment.Hello:input_type -> wallet.Empty
 | ||||
| 	0,  // 3: wallet.Payment.Way:input_type -> wallet.WayRequest
 | ||||
| 	10, // 4: wallet.Payment.Get:input_type -> wallet.IdentRequest
 | ||||
| 	5,  // 5: wallet.Payment.ByOrder:input_type -> wallet.OrderRequest
 | ||||
| 	4,  // 6: wallet.Payment.ByCharge:input_type -> wallet.ChargeRequest
 | ||||
| 	6,  // 7: wallet.Payment.Callback:input_type -> wallet.CallbackRequest
 | ||||
| 	7,  // 8: wallet.Payment.Hello:output_type -> wallet.PaymentReply
 | ||||
| 	1,  // 9: wallet.Payment.Way:output_type -> wallet.WayReply
 | ||||
| 	3,  // 10: wallet.Payment.Get:output_type -> wallet.PaymentItem
 | ||||
| 	7,  // 11: wallet.Payment.ByOrder:output_type -> wallet.PaymentReply
 | ||||
| 	7,  // 12: wallet.Payment.ByCharge:output_type -> wallet.PaymentReply
 | ||||
| 	11, // 13: wallet.Payment.Callback:output_type -> wallet.StatusReply
 | ||||
| 	8,  // [8:14] is the sub-list for method output_type
 | ||||
| 	2,  // [2:8] is the sub-list for method input_type
 | ||||
| 	2,  // [2:2] is the sub-list for extension type_name
 | ||||
| 	2,  // [2:2] is the sub-list for extension extendee
 | ||||
| 	0,  // [0:2] is the sub-list for field type_name
 | ||||
| } | ||||
| 
 | ||||
| func init() { file_payment_proto_init() } | ||||
| func file_payment_proto_init() { | ||||
| 	if File_payment_proto != nil { | ||||
| 		return | ||||
| 	} | ||||
| 	file_blocks_proto_init() | ||||
| 	type x struct{} | ||||
| 	out := protoimpl.TypeBuilder{ | ||||
| 		File: protoimpl.DescBuilder{ | ||||
| 			GoPackagePath: reflect.TypeOf(x{}).PkgPath(), | ||||
| 			RawDescriptor: unsafe.Slice(unsafe.StringData(file_payment_proto_rawDesc), len(file_payment_proto_rawDesc)), | ||||
| 			NumEnums:      0, | ||||
| 			NumMessages:   9, | ||||
| 			NumExtensions: 0, | ||||
| 			NumServices:   1, | ||||
| 		}, | ||||
| 		GoTypes:           file_payment_proto_goTypes, | ||||
| 		DependencyIndexes: file_payment_proto_depIdxs, | ||||
| 		MessageInfos:      file_payment_proto_msgTypes, | ||||
| 	}.Build() | ||||
| 	File_payment_proto = out.File | ||||
| 	file_payment_proto_goTypes = nil | ||||
| 	file_payment_proto_depIdxs = nil | ||||
| } | ||||
|  | @ -1,321 +0,0 @@ | |||
| // Code generated by protoc-gen-go-grpc. DO NOT EDIT.
 | ||||
| // versions:
 | ||||
| // - protoc-gen-go-grpc v1.5.1
 | ||||
| // - protoc             (unknown)
 | ||||
| // source: payment.proto
 | ||||
| 
 | ||||
| package wallet | ||||
| 
 | ||||
| import ( | ||||
| 	context "context" | ||||
| 	grpc "google.golang.org/grpc" | ||||
| 	codes "google.golang.org/grpc/codes" | ||||
| 	status "google.golang.org/grpc/status" | ||||
| ) | ||||
| 
 | ||||
| // This is a compile-time assertion to ensure that this generated file
 | ||||
| // is compatible with the grpc package it is being compiled against.
 | ||||
| // Requires gRPC-Go v1.64.0 or later.
 | ||||
| const _ = grpc.SupportPackageIsVersion9 | ||||
| 
 | ||||
| const ( | ||||
| 	Payment_Hello_FullMethodName    = "/wallet.Payment/Hello" | ||||
| 	Payment_Way_FullMethodName      = "/wallet.Payment/Way" | ||||
| 	Payment_Get_FullMethodName      = "/wallet.Payment/Get" | ||||
| 	Payment_ByOrder_FullMethodName  = "/wallet.Payment/ByOrder" | ||||
| 	Payment_ByCharge_FullMethodName = "/wallet.Payment/ByCharge" | ||||
| 	Payment_Callback_FullMethodName = "/wallet.Payment/Callback" | ||||
| ) | ||||
| 
 | ||||
| // PaymentClient is the client API for Payment service.
 | ||||
| //
 | ||||
| // For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.
 | ||||
| type PaymentClient interface { | ||||
| 	Hello(ctx context.Context, in *Empty, opts ...grpc.CallOption) (*PaymentReply, error) | ||||
| 	//获取平台支持的支付网关
 | ||||
| 	Way(ctx context.Context, in *WayRequest, opts ...grpc.CallOption) (*WayReply, error) | ||||
| 	//获取支付的详情
 | ||||
| 	Get(ctx context.Context, in *IdentRequest, opts ...grpc.CallOption) (*PaymentItem, error) | ||||
| 	//支付-电商订单
 | ||||
| 	ByOrder(ctx context.Context, in *OrderRequest, opts ...grpc.CallOption) (*PaymentReply, error) | ||||
| 	//支付-充值
 | ||||
| 	ByCharge(ctx context.Context, in *ChargeRequest, opts ...grpc.CallOption) (*PaymentReply, error) | ||||
| 	//回调更新支付的结果和状态
 | ||||
| 	Callback(ctx context.Context, in *CallbackRequest, opts ...grpc.CallOption) (*StatusReply, error) | ||||
| } | ||||
| 
 | ||||
| type paymentClient struct { | ||||
| 	cc grpc.ClientConnInterface | ||||
| } | ||||
| 
 | ||||
| func NewPaymentClient(cc grpc.ClientConnInterface) PaymentClient { | ||||
| 	return &paymentClient{cc} | ||||
| } | ||||
| 
 | ||||
| func (c *paymentClient) Hello(ctx context.Context, in *Empty, opts ...grpc.CallOption) (*PaymentReply, error) { | ||||
| 	cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) | ||||
| 	out := new(PaymentReply) | ||||
| 	err := c.cc.Invoke(ctx, Payment_Hello_FullMethodName, in, out, cOpts...) | ||||
| 	if err != nil { | ||||
| 		return nil, err | ||||
| 	} | ||||
| 	return out, nil | ||||
| } | ||||
| 
 | ||||
| func (c *paymentClient) Way(ctx context.Context, in *WayRequest, opts ...grpc.CallOption) (*WayReply, error) { | ||||
| 	cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) | ||||
| 	out := new(WayReply) | ||||
| 	err := c.cc.Invoke(ctx, Payment_Way_FullMethodName, in, out, cOpts...) | ||||
| 	if err != nil { | ||||
| 		return nil, err | ||||
| 	} | ||||
| 	return out, nil | ||||
| } | ||||
| 
 | ||||
| func (c *paymentClient) Get(ctx context.Context, in *IdentRequest, opts ...grpc.CallOption) (*PaymentItem, error) { | ||||
| 	cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) | ||||
| 	out := new(PaymentItem) | ||||
| 	err := c.cc.Invoke(ctx, Payment_Get_FullMethodName, in, out, cOpts...) | ||||
| 	if err != nil { | ||||
| 		return nil, err | ||||
| 	} | ||||
| 	return out, nil | ||||
| } | ||||
| 
 | ||||
| func (c *paymentClient) ByOrder(ctx context.Context, in *OrderRequest, opts ...grpc.CallOption) (*PaymentReply, error) { | ||||
| 	cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) | ||||
| 	out := new(PaymentReply) | ||||
| 	err := c.cc.Invoke(ctx, Payment_ByOrder_FullMethodName, in, out, cOpts...) | ||||
| 	if err != nil { | ||||
| 		return nil, err | ||||
| 	} | ||||
| 	return out, nil | ||||
| } | ||||
| 
 | ||||
| func (c *paymentClient) ByCharge(ctx context.Context, in *ChargeRequest, opts ...grpc.CallOption) (*PaymentReply, error) { | ||||
| 	cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) | ||||
| 	out := new(PaymentReply) | ||||
| 	err := c.cc.Invoke(ctx, Payment_ByCharge_FullMethodName, in, out, cOpts...) | ||||
| 	if err != nil { | ||||
| 		return nil, err | ||||
| 	} | ||||
| 	return out, nil | ||||
| } | ||||
| 
 | ||||
| func (c *paymentClient) Callback(ctx context.Context, in *CallbackRequest, opts ...grpc.CallOption) (*StatusReply, error) { | ||||
| 	cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) | ||||
| 	out := new(StatusReply) | ||||
| 	err := c.cc.Invoke(ctx, Payment_Callback_FullMethodName, in, out, cOpts...) | ||||
| 	if err != nil { | ||||
| 		return nil, err | ||||
| 	} | ||||
| 	return out, nil | ||||
| } | ||||
| 
 | ||||
| // PaymentServer is the server API for Payment service.
 | ||||
| // All implementations must embed UnimplementedPaymentServer
 | ||||
| // for forward compatibility.
 | ||||
| type PaymentServer interface { | ||||
| 	Hello(context.Context, *Empty) (*PaymentReply, error) | ||||
| 	//获取平台支持的支付网关
 | ||||
| 	Way(context.Context, *WayRequest) (*WayReply, error) | ||||
| 	//获取支付的详情
 | ||||
| 	Get(context.Context, *IdentRequest) (*PaymentItem, error) | ||||
| 	//支付-电商订单
 | ||||
| 	ByOrder(context.Context, *OrderRequest) (*PaymentReply, error) | ||||
| 	//支付-充值
 | ||||
| 	ByCharge(context.Context, *ChargeRequest) (*PaymentReply, error) | ||||
| 	//回调更新支付的结果和状态
 | ||||
| 	Callback(context.Context, *CallbackRequest) (*StatusReply, error) | ||||
| 	mustEmbedUnimplementedPaymentServer() | ||||
| } | ||||
| 
 | ||||
| // UnimplementedPaymentServer must be embedded to have
 | ||||
| // forward compatible implementations.
 | ||||
| //
 | ||||
| // NOTE: this should be embedded by value instead of pointer to avoid a nil
 | ||||
| // pointer dereference when methods are called.
 | ||||
| type UnimplementedPaymentServer struct{} | ||||
| 
 | ||||
| func (UnimplementedPaymentServer) Hello(context.Context, *Empty) (*PaymentReply, error) { | ||||
| 	return nil, status.Errorf(codes.Unimplemented, "method Hello not implemented") | ||||
| } | ||||
| func (UnimplementedPaymentServer) Way(context.Context, *WayRequest) (*WayReply, error) { | ||||
| 	return nil, status.Errorf(codes.Unimplemented, "method Way not implemented") | ||||
| } | ||||
| func (UnimplementedPaymentServer) Get(context.Context, *IdentRequest) (*PaymentItem, error) { | ||||
| 	return nil, status.Errorf(codes.Unimplemented, "method Get not implemented") | ||||
| } | ||||
| func (UnimplementedPaymentServer) ByOrder(context.Context, *OrderRequest) (*PaymentReply, error) { | ||||
| 	return nil, status.Errorf(codes.Unimplemented, "method ByOrder not implemented") | ||||
| } | ||||
| func (UnimplementedPaymentServer) ByCharge(context.Context, *ChargeRequest) (*PaymentReply, error) { | ||||
| 	return nil, status.Errorf(codes.Unimplemented, "method ByCharge not implemented") | ||||
| } | ||||
| func (UnimplementedPaymentServer) Callback(context.Context, *CallbackRequest) (*StatusReply, error) { | ||||
| 	return nil, status.Errorf(codes.Unimplemented, "method Callback not implemented") | ||||
| } | ||||
| func (UnimplementedPaymentServer) mustEmbedUnimplementedPaymentServer() {} | ||||
| func (UnimplementedPaymentServer) testEmbeddedByValue()                 {} | ||||
| 
 | ||||
| // UnsafePaymentServer may be embedded to opt out of forward compatibility for this service.
 | ||||
| // Use of this interface is not recommended, as added methods to PaymentServer will
 | ||||
| // result in compilation errors.
 | ||||
| type UnsafePaymentServer interface { | ||||
| 	mustEmbedUnimplementedPaymentServer() | ||||
| } | ||||
| 
 | ||||
| func RegisterPaymentServer(s grpc.ServiceRegistrar, srv PaymentServer) { | ||||
| 	// If the following call pancis, it indicates UnimplementedPaymentServer was
 | ||||
| 	// embedded by pointer and is nil.  This will cause panics if an
 | ||||
| 	// unimplemented method is ever invoked, so we test this at initialization
 | ||||
| 	// time to prevent it from happening at runtime later due to I/O.
 | ||||
| 	if t, ok := srv.(interface{ testEmbeddedByValue() }); ok { | ||||
| 		t.testEmbeddedByValue() | ||||
| 	} | ||||
| 	s.RegisterService(&Payment_ServiceDesc, srv) | ||||
| } | ||||
| 
 | ||||
| func _Payment_Hello_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { | ||||
| 	in := new(Empty) | ||||
| 	if err := dec(in); err != nil { | ||||
| 		return nil, err | ||||
| 	} | ||||
| 	if interceptor == nil { | ||||
| 		return srv.(PaymentServer).Hello(ctx, in) | ||||
| 	} | ||||
| 	info := &grpc.UnaryServerInfo{ | ||||
| 		Server:     srv, | ||||
| 		FullMethod: Payment_Hello_FullMethodName, | ||||
| 	} | ||||
| 	handler := func(ctx context.Context, req interface{}) (interface{}, error) { | ||||
| 		return srv.(PaymentServer).Hello(ctx, req.(*Empty)) | ||||
| 	} | ||||
| 	return interceptor(ctx, in, info, handler) | ||||
| } | ||||
| 
 | ||||
| func _Payment_Way_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { | ||||
| 	in := new(WayRequest) | ||||
| 	if err := dec(in); err != nil { | ||||
| 		return nil, err | ||||
| 	} | ||||
| 	if interceptor == nil { | ||||
| 		return srv.(PaymentServer).Way(ctx, in) | ||||
| 	} | ||||
| 	info := &grpc.UnaryServerInfo{ | ||||
| 		Server:     srv, | ||||
| 		FullMethod: Payment_Way_FullMethodName, | ||||
| 	} | ||||
| 	handler := func(ctx context.Context, req interface{}) (interface{}, error) { | ||||
| 		return srv.(PaymentServer).Way(ctx, req.(*WayRequest)) | ||||
| 	} | ||||
| 	return interceptor(ctx, in, info, handler) | ||||
| } | ||||
| 
 | ||||
| func _Payment_Get_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { | ||||
| 	in := new(IdentRequest) | ||||
| 	if err := dec(in); err != nil { | ||||
| 		return nil, err | ||||
| 	} | ||||
| 	if interceptor == nil { | ||||
| 		return srv.(PaymentServer).Get(ctx, in) | ||||
| 	} | ||||
| 	info := &grpc.UnaryServerInfo{ | ||||
| 		Server:     srv, | ||||
| 		FullMethod: Payment_Get_FullMethodName, | ||||
| 	} | ||||
| 	handler := func(ctx context.Context, req interface{}) (interface{}, error) { | ||||
| 		return srv.(PaymentServer).Get(ctx, req.(*IdentRequest)) | ||||
| 	} | ||||
| 	return interceptor(ctx, in, info, handler) | ||||
| } | ||||
| 
 | ||||
| func _Payment_ByOrder_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { | ||||
| 	in := new(OrderRequest) | ||||
| 	if err := dec(in); err != nil { | ||||
| 		return nil, err | ||||
| 	} | ||||
| 	if interceptor == nil { | ||||
| 		return srv.(PaymentServer).ByOrder(ctx, in) | ||||
| 	} | ||||
| 	info := &grpc.UnaryServerInfo{ | ||||
| 		Server:     srv, | ||||
| 		FullMethod: Payment_ByOrder_FullMethodName, | ||||
| 	} | ||||
| 	handler := func(ctx context.Context, req interface{}) (interface{}, error) { | ||||
| 		return srv.(PaymentServer).ByOrder(ctx, req.(*OrderRequest)) | ||||
| 	} | ||||
| 	return interceptor(ctx, in, info, handler) | ||||
| } | ||||
| 
 | ||||
| func _Payment_ByCharge_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { | ||||
| 	in := new(ChargeRequest) | ||||
| 	if err := dec(in); err != nil { | ||||
| 		return nil, err | ||||
| 	} | ||||
| 	if interceptor == nil { | ||||
| 		return srv.(PaymentServer).ByCharge(ctx, in) | ||||
| 	} | ||||
| 	info := &grpc.UnaryServerInfo{ | ||||
| 		Server:     srv, | ||||
| 		FullMethod: Payment_ByCharge_FullMethodName, | ||||
| 	} | ||||
| 	handler := func(ctx context.Context, req interface{}) (interface{}, error) { | ||||
| 		return srv.(PaymentServer).ByCharge(ctx, req.(*ChargeRequest)) | ||||
| 	} | ||||
| 	return interceptor(ctx, in, info, handler) | ||||
| } | ||||
| 
 | ||||
| func _Payment_Callback_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { | ||||
| 	in := new(CallbackRequest) | ||||
| 	if err := dec(in); err != nil { | ||||
| 		return nil, err | ||||
| 	} | ||||
| 	if interceptor == nil { | ||||
| 		return srv.(PaymentServer).Callback(ctx, in) | ||||
| 	} | ||||
| 	info := &grpc.UnaryServerInfo{ | ||||
| 		Server:     srv, | ||||
| 		FullMethod: Payment_Callback_FullMethodName, | ||||
| 	} | ||||
| 	handler := func(ctx context.Context, req interface{}) (interface{}, error) { | ||||
| 		return srv.(PaymentServer).Callback(ctx, req.(*CallbackRequest)) | ||||
| 	} | ||||
| 	return interceptor(ctx, in, info, handler) | ||||
| } | ||||
| 
 | ||||
| // Payment_ServiceDesc is the grpc.ServiceDesc for Payment service.
 | ||||
| // It's only intended for direct use with grpc.RegisterService,
 | ||||
| // and not to be introspected or modified (even as a copy)
 | ||||
| var Payment_ServiceDesc = grpc.ServiceDesc{ | ||||
| 	ServiceName: "wallet.Payment", | ||||
| 	HandlerType: (*PaymentServer)(nil), | ||||
| 	Methods: []grpc.MethodDesc{ | ||||
| 		{ | ||||
| 			MethodName: "Hello", | ||||
| 			Handler:    _Payment_Hello_Handler, | ||||
| 		}, | ||||
| 		{ | ||||
| 			MethodName: "Way", | ||||
| 			Handler:    _Payment_Way_Handler, | ||||
| 		}, | ||||
| 		{ | ||||
| 			MethodName: "Get", | ||||
| 			Handler:    _Payment_Get_Handler, | ||||
| 		}, | ||||
| 		{ | ||||
| 			MethodName: "ByOrder", | ||||
| 			Handler:    _Payment_ByOrder_Handler, | ||||
| 		}, | ||||
| 		{ | ||||
| 			MethodName: "ByCharge", | ||||
| 			Handler:    _Payment_ByCharge_Handler, | ||||
| 		}, | ||||
| 		{ | ||||
| 			MethodName: "Callback", | ||||
| 			Handler:    _Payment_Callback_Handler, | ||||
| 		}, | ||||
| 	}, | ||||
| 	Streams:  []grpc.StreamDesc{}, | ||||
| 	Metadata: "payment.proto", | ||||
| } | ||||
										
											
												File diff suppressed because it is too large
												Load Diff
											
										
									
								
							|  | @ -1,403 +0,0 @@ | |||
| // Code generated by protoc-gen-go-grpc. DO NOT EDIT.
 | ||||
| // versions:
 | ||||
| // - protoc-gen-go-grpc v1.5.1
 | ||||
| // - protoc             (unknown)
 | ||||
| // source: wallet.proto
 | ||||
| 
 | ||||
| package wallet | ||||
| 
 | ||||
| import ( | ||||
| 	context "context" | ||||
| 	grpc "google.golang.org/grpc" | ||||
| 	codes "google.golang.org/grpc/codes" | ||||
| 	status "google.golang.org/grpc/status" | ||||
| ) | ||||
| 
 | ||||
| // This is a compile-time assertion to ensure that this generated file
 | ||||
| // is compatible with the grpc package it is being compiled against.
 | ||||
| // Requires gRPC-Go v1.64.0 or later.
 | ||||
| const _ = grpc.SupportPackageIsVersion9 | ||||
| 
 | ||||
| const ( | ||||
| 	Basic_GetWallet_FullMethodName      = "/wallet.Basic/GetWallet" | ||||
| 	Basic_SetPayPassword_FullMethodName = "/wallet.Basic/SetPayPassword" | ||||
| 	Basic_BindPaymentId_FullMethodName  = "/wallet.Basic/BindPaymentId" | ||||
| 	Basic_Transactions_FullMethodName   = "/wallet.Basic/Transactions" | ||||
| 	Basic_AddBankCard_FullMethodName    = "/wallet.Basic/AddBankCard" | ||||
| 	Basic_GetBankCard_FullMethodName    = "/wallet.Basic/GetBankCard" | ||||
| 	Basic_RmBankCard_FullMethodName     = "/wallet.Basic/RmBankCard" | ||||
| 	Basic_ApplyCash_FullMethodName      = "/wallet.Basic/ApplyCash" | ||||
| ) | ||||
| 
 | ||||
| // BasicClient is the client API for Basic service.
 | ||||
| //
 | ||||
| // For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.
 | ||||
| type BasicClient interface { | ||||
| 	//获取钱包信息
 | ||||
| 	GetWallet(ctx context.Context, in *GetWalletRequest, opts ...grpc.CallOption) (*GetWalletReply, error) | ||||
| 	//设置支付密码
 | ||||
| 	SetPayPassword(ctx context.Context, in *SetPayPasswordRequest, opts ...grpc.CallOption) (*CodeReply, error) | ||||
| 	//绑定微信或支付宝账户
 | ||||
| 	BindPaymentId(ctx context.Context, in *BindPaymentIDRequest, opts ...grpc.CallOption) (*CodeReply, error) | ||||
| 	//查询交易记录
 | ||||
| 	Transactions(ctx context.Context, in *TransactionsRequest, opts ...grpc.CallOption) (*TransactionsReply, error) | ||||
| 	//添加银行卡
 | ||||
| 	AddBankCard(ctx context.Context, in *AddBankCardRequest, opts ...grpc.CallOption) (*CodeReply, error) | ||||
| 	//获取用户银行卡列表
 | ||||
| 	GetBankCard(ctx context.Context, in *FinanceEmpty, opts ...grpc.CallOption) (*GetBankCardReply, error) | ||||
| 	//删除银行卡
 | ||||
| 	RmBankCard(ctx context.Context, in *RmBankCardRequest, opts ...grpc.CallOption) (*CodeReply, error) | ||||
| 	//申请提现
 | ||||
| 	ApplyCash(ctx context.Context, in *ApplyCashRequest, opts ...grpc.CallOption) (*CodeReply, error) | ||||
| } | ||||
| 
 | ||||
| type basicClient struct { | ||||
| 	cc grpc.ClientConnInterface | ||||
| } | ||||
| 
 | ||||
| func NewBasicClient(cc grpc.ClientConnInterface) BasicClient { | ||||
| 	return &basicClient{cc} | ||||
| } | ||||
| 
 | ||||
| func (c *basicClient) GetWallet(ctx context.Context, in *GetWalletRequest, opts ...grpc.CallOption) (*GetWalletReply, error) { | ||||
| 	cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) | ||||
| 	out := new(GetWalletReply) | ||||
| 	err := c.cc.Invoke(ctx, Basic_GetWallet_FullMethodName, in, out, cOpts...) | ||||
| 	if err != nil { | ||||
| 		return nil, err | ||||
| 	} | ||||
| 	return out, nil | ||||
| } | ||||
| 
 | ||||
| func (c *basicClient) SetPayPassword(ctx context.Context, in *SetPayPasswordRequest, opts ...grpc.CallOption) (*CodeReply, error) { | ||||
| 	cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) | ||||
| 	out := new(CodeReply) | ||||
| 	err := c.cc.Invoke(ctx, Basic_SetPayPassword_FullMethodName, in, out, cOpts...) | ||||
| 	if err != nil { | ||||
| 		return nil, err | ||||
| 	} | ||||
| 	return out, nil | ||||
| } | ||||
| 
 | ||||
| func (c *basicClient) BindPaymentId(ctx context.Context, in *BindPaymentIDRequest, opts ...grpc.CallOption) (*CodeReply, error) { | ||||
| 	cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) | ||||
| 	out := new(CodeReply) | ||||
| 	err := c.cc.Invoke(ctx, Basic_BindPaymentId_FullMethodName, in, out, cOpts...) | ||||
| 	if err != nil { | ||||
| 		return nil, err | ||||
| 	} | ||||
| 	return out, nil | ||||
| } | ||||
| 
 | ||||
| func (c *basicClient) Transactions(ctx context.Context, in *TransactionsRequest, opts ...grpc.CallOption) (*TransactionsReply, error) { | ||||
| 	cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) | ||||
| 	out := new(TransactionsReply) | ||||
| 	err := c.cc.Invoke(ctx, Basic_Transactions_FullMethodName, in, out, cOpts...) | ||||
| 	if err != nil { | ||||
| 		return nil, err | ||||
| 	} | ||||
| 	return out, nil | ||||
| } | ||||
| 
 | ||||
| func (c *basicClient) AddBankCard(ctx context.Context, in *AddBankCardRequest, opts ...grpc.CallOption) (*CodeReply, error) { | ||||
| 	cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) | ||||
| 	out := new(CodeReply) | ||||
| 	err := c.cc.Invoke(ctx, Basic_AddBankCard_FullMethodName, in, out, cOpts...) | ||||
| 	if err != nil { | ||||
| 		return nil, err | ||||
| 	} | ||||
| 	return out, nil | ||||
| } | ||||
| 
 | ||||
| func (c *basicClient) GetBankCard(ctx context.Context, in *FinanceEmpty, opts ...grpc.CallOption) (*GetBankCardReply, error) { | ||||
| 	cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) | ||||
| 	out := new(GetBankCardReply) | ||||
| 	err := c.cc.Invoke(ctx, Basic_GetBankCard_FullMethodName, in, out, cOpts...) | ||||
| 	if err != nil { | ||||
| 		return nil, err | ||||
| 	} | ||||
| 	return out, nil | ||||
| } | ||||
| 
 | ||||
| func (c *basicClient) RmBankCard(ctx context.Context, in *RmBankCardRequest, opts ...grpc.CallOption) (*CodeReply, error) { | ||||
| 	cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) | ||||
| 	out := new(CodeReply) | ||||
| 	err := c.cc.Invoke(ctx, Basic_RmBankCard_FullMethodName, in, out, cOpts...) | ||||
| 	if err != nil { | ||||
| 		return nil, err | ||||
| 	} | ||||
| 	return out, nil | ||||
| } | ||||
| 
 | ||||
| func (c *basicClient) ApplyCash(ctx context.Context, in *ApplyCashRequest, opts ...grpc.CallOption) (*CodeReply, error) { | ||||
| 	cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) | ||||
| 	out := new(CodeReply) | ||||
| 	err := c.cc.Invoke(ctx, Basic_ApplyCash_FullMethodName, in, out, cOpts...) | ||||
| 	if err != nil { | ||||
| 		return nil, err | ||||
| 	} | ||||
| 	return out, nil | ||||
| } | ||||
| 
 | ||||
| // BasicServer is the server API for Basic service.
 | ||||
| // All implementations must embed UnimplementedBasicServer
 | ||||
| // for forward compatibility.
 | ||||
| type BasicServer interface { | ||||
| 	//获取钱包信息
 | ||||
| 	GetWallet(context.Context, *GetWalletRequest) (*GetWalletReply, error) | ||||
| 	//设置支付密码
 | ||||
| 	SetPayPassword(context.Context, *SetPayPasswordRequest) (*CodeReply, error) | ||||
| 	//绑定微信或支付宝账户
 | ||||
| 	BindPaymentId(context.Context, *BindPaymentIDRequest) (*CodeReply, error) | ||||
| 	//查询交易记录
 | ||||
| 	Transactions(context.Context, *TransactionsRequest) (*TransactionsReply, error) | ||||
| 	//添加银行卡
 | ||||
| 	AddBankCard(context.Context, *AddBankCardRequest) (*CodeReply, error) | ||||
| 	//获取用户银行卡列表
 | ||||
| 	GetBankCard(context.Context, *FinanceEmpty) (*GetBankCardReply, error) | ||||
| 	//删除银行卡
 | ||||
| 	RmBankCard(context.Context, *RmBankCardRequest) (*CodeReply, error) | ||||
| 	//申请提现
 | ||||
| 	ApplyCash(context.Context, *ApplyCashRequest) (*CodeReply, error) | ||||
| 	mustEmbedUnimplementedBasicServer() | ||||
| } | ||||
| 
 | ||||
| // UnimplementedBasicServer must be embedded to have
 | ||||
| // forward compatible implementations.
 | ||||
| //
 | ||||
| // NOTE: this should be embedded by value instead of pointer to avoid a nil
 | ||||
| // pointer dereference when methods are called.
 | ||||
| type UnimplementedBasicServer struct{} | ||||
| 
 | ||||
| func (UnimplementedBasicServer) GetWallet(context.Context, *GetWalletRequest) (*GetWalletReply, error) { | ||||
| 	return nil, status.Errorf(codes.Unimplemented, "method GetWallet not implemented") | ||||
| } | ||||
| func (UnimplementedBasicServer) SetPayPassword(context.Context, *SetPayPasswordRequest) (*CodeReply, error) { | ||||
| 	return nil, status.Errorf(codes.Unimplemented, "method SetPayPassword not implemented") | ||||
| } | ||||
| func (UnimplementedBasicServer) BindPaymentId(context.Context, *BindPaymentIDRequest) (*CodeReply, error) { | ||||
| 	return nil, status.Errorf(codes.Unimplemented, "method BindPaymentId not implemented") | ||||
| } | ||||
| func (UnimplementedBasicServer) Transactions(context.Context, *TransactionsRequest) (*TransactionsReply, error) { | ||||
| 	return nil, status.Errorf(codes.Unimplemented, "method Transactions not implemented") | ||||
| } | ||||
| func (UnimplementedBasicServer) AddBankCard(context.Context, *AddBankCardRequest) (*CodeReply, error) { | ||||
| 	return nil, status.Errorf(codes.Unimplemented, "method AddBankCard not implemented") | ||||
| } | ||||
| func (UnimplementedBasicServer) GetBankCard(context.Context, *FinanceEmpty) (*GetBankCardReply, error) { | ||||
| 	return nil, status.Errorf(codes.Unimplemented, "method GetBankCard not implemented") | ||||
| } | ||||
| func (UnimplementedBasicServer) RmBankCard(context.Context, *RmBankCardRequest) (*CodeReply, error) { | ||||
| 	return nil, status.Errorf(codes.Unimplemented, "method RmBankCard not implemented") | ||||
| } | ||||
| func (UnimplementedBasicServer) ApplyCash(context.Context, *ApplyCashRequest) (*CodeReply, error) { | ||||
| 	return nil, status.Errorf(codes.Unimplemented, "method ApplyCash not implemented") | ||||
| } | ||||
| func (UnimplementedBasicServer) mustEmbedUnimplementedBasicServer() {} | ||||
| func (UnimplementedBasicServer) testEmbeddedByValue()               {} | ||||
| 
 | ||||
| // UnsafeBasicServer may be embedded to opt out of forward compatibility for this service.
 | ||||
| // Use of this interface is not recommended, as added methods to BasicServer will
 | ||||
| // result in compilation errors.
 | ||||
| type UnsafeBasicServer interface { | ||||
| 	mustEmbedUnimplementedBasicServer() | ||||
| } | ||||
| 
 | ||||
| func RegisterBasicServer(s grpc.ServiceRegistrar, srv BasicServer) { | ||||
| 	// If the following call pancis, it indicates UnimplementedBasicServer was
 | ||||
| 	// embedded by pointer and is nil.  This will cause panics if an
 | ||||
| 	// unimplemented method is ever invoked, so we test this at initialization
 | ||||
| 	// time to prevent it from happening at runtime later due to I/O.
 | ||||
| 	if t, ok := srv.(interface{ testEmbeddedByValue() }); ok { | ||||
| 		t.testEmbeddedByValue() | ||||
| 	} | ||||
| 	s.RegisterService(&Basic_ServiceDesc, srv) | ||||
| } | ||||
| 
 | ||||
| func _Basic_GetWallet_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { | ||||
| 	in := new(GetWalletRequest) | ||||
| 	if err := dec(in); err != nil { | ||||
| 		return nil, err | ||||
| 	} | ||||
| 	if interceptor == nil { | ||||
| 		return srv.(BasicServer).GetWallet(ctx, in) | ||||
| 	} | ||||
| 	info := &grpc.UnaryServerInfo{ | ||||
| 		Server:     srv, | ||||
| 		FullMethod: Basic_GetWallet_FullMethodName, | ||||
| 	} | ||||
| 	handler := func(ctx context.Context, req interface{}) (interface{}, error) { | ||||
| 		return srv.(BasicServer).GetWallet(ctx, req.(*GetWalletRequest)) | ||||
| 	} | ||||
| 	return interceptor(ctx, in, info, handler) | ||||
| } | ||||
| 
 | ||||
| func _Basic_SetPayPassword_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { | ||||
| 	in := new(SetPayPasswordRequest) | ||||
| 	if err := dec(in); err != nil { | ||||
| 		return nil, err | ||||
| 	} | ||||
| 	if interceptor == nil { | ||||
| 		return srv.(BasicServer).SetPayPassword(ctx, in) | ||||
| 	} | ||||
| 	info := &grpc.UnaryServerInfo{ | ||||
| 		Server:     srv, | ||||
| 		FullMethod: Basic_SetPayPassword_FullMethodName, | ||||
| 	} | ||||
| 	handler := func(ctx context.Context, req interface{}) (interface{}, error) { | ||||
| 		return srv.(BasicServer).SetPayPassword(ctx, req.(*SetPayPasswordRequest)) | ||||
| 	} | ||||
| 	return interceptor(ctx, in, info, handler) | ||||
| } | ||||
| 
 | ||||
| func _Basic_BindPaymentId_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { | ||||
| 	in := new(BindPaymentIDRequest) | ||||
| 	if err := dec(in); err != nil { | ||||
| 		return nil, err | ||||
| 	} | ||||
| 	if interceptor == nil { | ||||
| 		return srv.(BasicServer).BindPaymentId(ctx, in) | ||||
| 	} | ||||
| 	info := &grpc.UnaryServerInfo{ | ||||
| 		Server:     srv, | ||||
| 		FullMethod: Basic_BindPaymentId_FullMethodName, | ||||
| 	} | ||||
| 	handler := func(ctx context.Context, req interface{}) (interface{}, error) { | ||||
| 		return srv.(BasicServer).BindPaymentId(ctx, req.(*BindPaymentIDRequest)) | ||||
| 	} | ||||
| 	return interceptor(ctx, in, info, handler) | ||||
| } | ||||
| 
 | ||||
| func _Basic_Transactions_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { | ||||
| 	in := new(TransactionsRequest) | ||||
| 	if err := dec(in); err != nil { | ||||
| 		return nil, err | ||||
| 	} | ||||
| 	if interceptor == nil { | ||||
| 		return srv.(BasicServer).Transactions(ctx, in) | ||||
| 	} | ||||
| 	info := &grpc.UnaryServerInfo{ | ||||
| 		Server:     srv, | ||||
| 		FullMethod: Basic_Transactions_FullMethodName, | ||||
| 	} | ||||
| 	handler := func(ctx context.Context, req interface{}) (interface{}, error) { | ||||
| 		return srv.(BasicServer).Transactions(ctx, req.(*TransactionsRequest)) | ||||
| 	} | ||||
| 	return interceptor(ctx, in, info, handler) | ||||
| } | ||||
| 
 | ||||
| func _Basic_AddBankCard_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { | ||||
| 	in := new(AddBankCardRequest) | ||||
| 	if err := dec(in); err != nil { | ||||
| 		return nil, err | ||||
| 	} | ||||
| 	if interceptor == nil { | ||||
| 		return srv.(BasicServer).AddBankCard(ctx, in) | ||||
| 	} | ||||
| 	info := &grpc.UnaryServerInfo{ | ||||
| 		Server:     srv, | ||||
| 		FullMethod: Basic_AddBankCard_FullMethodName, | ||||
| 	} | ||||
| 	handler := func(ctx context.Context, req interface{}) (interface{}, error) { | ||||
| 		return srv.(BasicServer).AddBankCard(ctx, req.(*AddBankCardRequest)) | ||||
| 	} | ||||
| 	return interceptor(ctx, in, info, handler) | ||||
| } | ||||
| 
 | ||||
| func _Basic_GetBankCard_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { | ||||
| 	in := new(FinanceEmpty) | ||||
| 	if err := dec(in); err != nil { | ||||
| 		return nil, err | ||||
| 	} | ||||
| 	if interceptor == nil { | ||||
| 		return srv.(BasicServer).GetBankCard(ctx, in) | ||||
| 	} | ||||
| 	info := &grpc.UnaryServerInfo{ | ||||
| 		Server:     srv, | ||||
| 		FullMethod: Basic_GetBankCard_FullMethodName, | ||||
| 	} | ||||
| 	handler := func(ctx context.Context, req interface{}) (interface{}, error) { | ||||
| 		return srv.(BasicServer).GetBankCard(ctx, req.(*FinanceEmpty)) | ||||
| 	} | ||||
| 	return interceptor(ctx, in, info, handler) | ||||
| } | ||||
| 
 | ||||
| func _Basic_RmBankCard_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { | ||||
| 	in := new(RmBankCardRequest) | ||||
| 	if err := dec(in); err != nil { | ||||
| 		return nil, err | ||||
| 	} | ||||
| 	if interceptor == nil { | ||||
| 		return srv.(BasicServer).RmBankCard(ctx, in) | ||||
| 	} | ||||
| 	info := &grpc.UnaryServerInfo{ | ||||
| 		Server:     srv, | ||||
| 		FullMethod: Basic_RmBankCard_FullMethodName, | ||||
| 	} | ||||
| 	handler := func(ctx context.Context, req interface{}) (interface{}, error) { | ||||
| 		return srv.(BasicServer).RmBankCard(ctx, req.(*RmBankCardRequest)) | ||||
| 	} | ||||
| 	return interceptor(ctx, in, info, handler) | ||||
| } | ||||
| 
 | ||||
| func _Basic_ApplyCash_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { | ||||
| 	in := new(ApplyCashRequest) | ||||
| 	if err := dec(in); err != nil { | ||||
| 		return nil, err | ||||
| 	} | ||||
| 	if interceptor == nil { | ||||
| 		return srv.(BasicServer).ApplyCash(ctx, in) | ||||
| 	} | ||||
| 	info := &grpc.UnaryServerInfo{ | ||||
| 		Server:     srv, | ||||
| 		FullMethod: Basic_ApplyCash_FullMethodName, | ||||
| 	} | ||||
| 	handler := func(ctx context.Context, req interface{}) (interface{}, error) { | ||||
| 		return srv.(BasicServer).ApplyCash(ctx, req.(*ApplyCashRequest)) | ||||
| 	} | ||||
| 	return interceptor(ctx, in, info, handler) | ||||
| } | ||||
| 
 | ||||
| // Basic_ServiceDesc is the grpc.ServiceDesc for Basic service.
 | ||||
| // It's only intended for direct use with grpc.RegisterService,
 | ||||
| // and not to be introspected or modified (even as a copy)
 | ||||
| var Basic_ServiceDesc = grpc.ServiceDesc{ | ||||
| 	ServiceName: "wallet.Basic", | ||||
| 	HandlerType: (*BasicServer)(nil), | ||||
| 	Methods: []grpc.MethodDesc{ | ||||
| 		{ | ||||
| 			MethodName: "GetWallet", | ||||
| 			Handler:    _Basic_GetWallet_Handler, | ||||
| 		}, | ||||
| 		{ | ||||
| 			MethodName: "SetPayPassword", | ||||
| 			Handler:    _Basic_SetPayPassword_Handler, | ||||
| 		}, | ||||
| 		{ | ||||
| 			MethodName: "BindPaymentId", | ||||
| 			Handler:    _Basic_BindPaymentId_Handler, | ||||
| 		}, | ||||
| 		{ | ||||
| 			MethodName: "Transactions", | ||||
| 			Handler:    _Basic_Transactions_Handler, | ||||
| 		}, | ||||
| 		{ | ||||
| 			MethodName: "AddBankCard", | ||||
| 			Handler:    _Basic_AddBankCard_Handler, | ||||
| 		}, | ||||
| 		{ | ||||
| 			MethodName: "GetBankCard", | ||||
| 			Handler:    _Basic_GetBankCard_Handler, | ||||
| 		}, | ||||
| 		{ | ||||
| 			MethodName: "RmBankCard", | ||||
| 			Handler:    _Basic_RmBankCard_Handler, | ||||
| 		}, | ||||
| 		{ | ||||
| 			MethodName: "ApplyCash", | ||||
| 			Handler:    _Basic_ApplyCash_Handler, | ||||
| 		}, | ||||
| 	}, | ||||
| 	Streams:  []grpc.StreamDesc{}, | ||||
| 	Metadata: "wallet.proto", | ||||
| } | ||||
										
											
												File diff suppressed because it is too large
												Load Diff
											
										
									
								
							|  | @ -1,283 +0,0 @@ | |||
| // Code generated by protoc-gen-go-grpc. DO NOT EDIT.
 | ||||
| // versions:
 | ||||
| // - protoc-gen-go-grpc v1.5.1
 | ||||
| // - protoc             (unknown)
 | ||||
| // source: wechat.proto
 | ||||
| 
 | ||||
| package wallet | ||||
| 
 | ||||
| import ( | ||||
| 	context "context" | ||||
| 	grpc "google.golang.org/grpc" | ||||
| 	codes "google.golang.org/grpc/codes" | ||||
| 	status "google.golang.org/grpc/status" | ||||
| ) | ||||
| 
 | ||||
| // This is a compile-time assertion to ensure that this generated file
 | ||||
| // is compatible with the grpc package it is being compiled against.
 | ||||
| // Requires gRPC-Go v1.64.0 or later.
 | ||||
| const _ = grpc.SupportPackageIsVersion9 | ||||
| 
 | ||||
| const ( | ||||
| 	Wechat_JsapiPreOrder_FullMethodName  = "/wallet.Wechat/JsapiPreOrder" | ||||
| 	Wechat_AppPreOrder_FullMethodName    = "/wallet.Wechat/AppPreOrder" | ||||
| 	Wechat_NativePreOrder_FullMethodName = "/wallet.Wechat/NativePreOrder" | ||||
| 	Wechat_Transfer_FullMethodName       = "/wallet.Wechat/Transfer" | ||||
| 	Wechat_WxCallback_FullMethodName     = "/wallet.Wechat/WxCallback" | ||||
| ) | ||||
| 
 | ||||
| // WechatClient is the client API for Wechat service.
 | ||||
| //
 | ||||
| // For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.
 | ||||
| type WechatClient interface { | ||||
| 	//微信JSAPI下单
 | ||||
| 	JsapiPreOrder(ctx context.Context, in *WxpayJSAPIPreOrderRequest, opts ...grpc.CallOption) (*WxpayJSAPIPreOrderReply, error) | ||||
| 	//微信APP支付下单
 | ||||
| 	AppPreOrder(ctx context.Context, in *WxpayAppPreOrderRequest, opts ...grpc.CallOption) (*WxpayAppPreOrderReply, error) | ||||
| 	//微信native二维码支付下单
 | ||||
| 	NativePreOrder(ctx context.Context, in *WxpayNativePreOrderRequest, opts ...grpc.CallOption) (*WxpayNativePreOrderReply, error) | ||||
| 	//微信转账到零钱
 | ||||
| 	Transfer(ctx context.Context, in *WxpayTransferRequest, opts ...grpc.CallOption) (*WxpayTransferReply, error) | ||||
| 	//微信支付回调
 | ||||
| 	WxCallback(ctx context.Context, in *WxCallBackRequest, opts ...grpc.CallOption) (*CallBackReply, error) | ||||
| } | ||||
| 
 | ||||
| type wechatClient struct { | ||||
| 	cc grpc.ClientConnInterface | ||||
| } | ||||
| 
 | ||||
| func NewWechatClient(cc grpc.ClientConnInterface) WechatClient { | ||||
| 	return &wechatClient{cc} | ||||
| } | ||||
| 
 | ||||
| func (c *wechatClient) JsapiPreOrder(ctx context.Context, in *WxpayJSAPIPreOrderRequest, opts ...grpc.CallOption) (*WxpayJSAPIPreOrderReply, error) { | ||||
| 	cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) | ||||
| 	out := new(WxpayJSAPIPreOrderReply) | ||||
| 	err := c.cc.Invoke(ctx, Wechat_JsapiPreOrder_FullMethodName, in, out, cOpts...) | ||||
| 	if err != nil { | ||||
| 		return nil, err | ||||
| 	} | ||||
| 	return out, nil | ||||
| } | ||||
| 
 | ||||
| func (c *wechatClient) AppPreOrder(ctx context.Context, in *WxpayAppPreOrderRequest, opts ...grpc.CallOption) (*WxpayAppPreOrderReply, error) { | ||||
| 	cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) | ||||
| 	out := new(WxpayAppPreOrderReply) | ||||
| 	err := c.cc.Invoke(ctx, Wechat_AppPreOrder_FullMethodName, in, out, cOpts...) | ||||
| 	if err != nil { | ||||
| 		return nil, err | ||||
| 	} | ||||
| 	return out, nil | ||||
| } | ||||
| 
 | ||||
| func (c *wechatClient) NativePreOrder(ctx context.Context, in *WxpayNativePreOrderRequest, opts ...grpc.CallOption) (*WxpayNativePreOrderReply, error) { | ||||
| 	cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) | ||||
| 	out := new(WxpayNativePreOrderReply) | ||||
| 	err := c.cc.Invoke(ctx, Wechat_NativePreOrder_FullMethodName, in, out, cOpts...) | ||||
| 	if err != nil { | ||||
| 		return nil, err | ||||
| 	} | ||||
| 	return out, nil | ||||
| } | ||||
| 
 | ||||
| func (c *wechatClient) Transfer(ctx context.Context, in *WxpayTransferRequest, opts ...grpc.CallOption) (*WxpayTransferReply, error) { | ||||
| 	cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) | ||||
| 	out := new(WxpayTransferReply) | ||||
| 	err := c.cc.Invoke(ctx, Wechat_Transfer_FullMethodName, in, out, cOpts...) | ||||
| 	if err != nil { | ||||
| 		return nil, err | ||||
| 	} | ||||
| 	return out, nil | ||||
| } | ||||
| 
 | ||||
| func (c *wechatClient) WxCallback(ctx context.Context, in *WxCallBackRequest, opts ...grpc.CallOption) (*CallBackReply, error) { | ||||
| 	cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) | ||||
| 	out := new(CallBackReply) | ||||
| 	err := c.cc.Invoke(ctx, Wechat_WxCallback_FullMethodName, in, out, cOpts...) | ||||
| 	if err != nil { | ||||
| 		return nil, err | ||||
| 	} | ||||
| 	return out, nil | ||||
| } | ||||
| 
 | ||||
| // WechatServer is the server API for Wechat service.
 | ||||
| // All implementations must embed UnimplementedWechatServer
 | ||||
| // for forward compatibility.
 | ||||
| type WechatServer interface { | ||||
| 	//微信JSAPI下单
 | ||||
| 	JsapiPreOrder(context.Context, *WxpayJSAPIPreOrderRequest) (*WxpayJSAPIPreOrderReply, error) | ||||
| 	//微信APP支付下单
 | ||||
| 	AppPreOrder(context.Context, *WxpayAppPreOrderRequest) (*WxpayAppPreOrderReply, error) | ||||
| 	//微信native二维码支付下单
 | ||||
| 	NativePreOrder(context.Context, *WxpayNativePreOrderRequest) (*WxpayNativePreOrderReply, error) | ||||
| 	//微信转账到零钱
 | ||||
| 	Transfer(context.Context, *WxpayTransferRequest) (*WxpayTransferReply, error) | ||||
| 	//微信支付回调
 | ||||
| 	WxCallback(context.Context, *WxCallBackRequest) (*CallBackReply, error) | ||||
| 	mustEmbedUnimplementedWechatServer() | ||||
| } | ||||
| 
 | ||||
| // UnimplementedWechatServer must be embedded to have
 | ||||
| // forward compatible implementations.
 | ||||
| //
 | ||||
| // NOTE: this should be embedded by value instead of pointer to avoid a nil
 | ||||
| // pointer dereference when methods are called.
 | ||||
| type UnimplementedWechatServer struct{} | ||||
| 
 | ||||
| func (UnimplementedWechatServer) JsapiPreOrder(context.Context, *WxpayJSAPIPreOrderRequest) (*WxpayJSAPIPreOrderReply, error) { | ||||
| 	return nil, status.Errorf(codes.Unimplemented, "method JsapiPreOrder not implemented") | ||||
| } | ||||
| func (UnimplementedWechatServer) AppPreOrder(context.Context, *WxpayAppPreOrderRequest) (*WxpayAppPreOrderReply, error) { | ||||
| 	return nil, status.Errorf(codes.Unimplemented, "method AppPreOrder not implemented") | ||||
| } | ||||
| func (UnimplementedWechatServer) NativePreOrder(context.Context, *WxpayNativePreOrderRequest) (*WxpayNativePreOrderReply, error) { | ||||
| 	return nil, status.Errorf(codes.Unimplemented, "method NativePreOrder not implemented") | ||||
| } | ||||
| func (UnimplementedWechatServer) Transfer(context.Context, *WxpayTransferRequest) (*WxpayTransferReply, error) { | ||||
| 	return nil, status.Errorf(codes.Unimplemented, "method Transfer not implemented") | ||||
| } | ||||
| func (UnimplementedWechatServer) WxCallback(context.Context, *WxCallBackRequest) (*CallBackReply, error) { | ||||
| 	return nil, status.Errorf(codes.Unimplemented, "method WxCallback not implemented") | ||||
| } | ||||
| func (UnimplementedWechatServer) mustEmbedUnimplementedWechatServer() {} | ||||
| func (UnimplementedWechatServer) testEmbeddedByValue()                {} | ||||
| 
 | ||||
| // UnsafeWechatServer may be embedded to opt out of forward compatibility for this service.
 | ||||
| // Use of this interface is not recommended, as added methods to WechatServer will
 | ||||
| // result in compilation errors.
 | ||||
| type UnsafeWechatServer interface { | ||||
| 	mustEmbedUnimplementedWechatServer() | ||||
| } | ||||
| 
 | ||||
| func RegisterWechatServer(s grpc.ServiceRegistrar, srv WechatServer) { | ||||
| 	// If the following call pancis, it indicates UnimplementedWechatServer was
 | ||||
| 	// embedded by pointer and is nil.  This will cause panics if an
 | ||||
| 	// unimplemented method is ever invoked, so we test this at initialization
 | ||||
| 	// time to prevent it from happening at runtime later due to I/O.
 | ||||
| 	if t, ok := srv.(interface{ testEmbeddedByValue() }); ok { | ||||
| 		t.testEmbeddedByValue() | ||||
| 	} | ||||
| 	s.RegisterService(&Wechat_ServiceDesc, srv) | ||||
| } | ||||
| 
 | ||||
| func _Wechat_JsapiPreOrder_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { | ||||
| 	in := new(WxpayJSAPIPreOrderRequest) | ||||
| 	if err := dec(in); err != nil { | ||||
| 		return nil, err | ||||
| 	} | ||||
| 	if interceptor == nil { | ||||
| 		return srv.(WechatServer).JsapiPreOrder(ctx, in) | ||||
| 	} | ||||
| 	info := &grpc.UnaryServerInfo{ | ||||
| 		Server:     srv, | ||||
| 		FullMethod: Wechat_JsapiPreOrder_FullMethodName, | ||||
| 	} | ||||
| 	handler := func(ctx context.Context, req interface{}) (interface{}, error) { | ||||
| 		return srv.(WechatServer).JsapiPreOrder(ctx, req.(*WxpayJSAPIPreOrderRequest)) | ||||
| 	} | ||||
| 	return interceptor(ctx, in, info, handler) | ||||
| } | ||||
| 
 | ||||
| func _Wechat_AppPreOrder_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { | ||||
| 	in := new(WxpayAppPreOrderRequest) | ||||
| 	if err := dec(in); err != nil { | ||||
| 		return nil, err | ||||
| 	} | ||||
| 	if interceptor == nil { | ||||
| 		return srv.(WechatServer).AppPreOrder(ctx, in) | ||||
| 	} | ||||
| 	info := &grpc.UnaryServerInfo{ | ||||
| 		Server:     srv, | ||||
| 		FullMethod: Wechat_AppPreOrder_FullMethodName, | ||||
| 	} | ||||
| 	handler := func(ctx context.Context, req interface{}) (interface{}, error) { | ||||
| 		return srv.(WechatServer).AppPreOrder(ctx, req.(*WxpayAppPreOrderRequest)) | ||||
| 	} | ||||
| 	return interceptor(ctx, in, info, handler) | ||||
| } | ||||
| 
 | ||||
| func _Wechat_NativePreOrder_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { | ||||
| 	in := new(WxpayNativePreOrderRequest) | ||||
| 	if err := dec(in); err != nil { | ||||
| 		return nil, err | ||||
| 	} | ||||
| 	if interceptor == nil { | ||||
| 		return srv.(WechatServer).NativePreOrder(ctx, in) | ||||
| 	} | ||||
| 	info := &grpc.UnaryServerInfo{ | ||||
| 		Server:     srv, | ||||
| 		FullMethod: Wechat_NativePreOrder_FullMethodName, | ||||
| 	} | ||||
| 	handler := func(ctx context.Context, req interface{}) (interface{}, error) { | ||||
| 		return srv.(WechatServer).NativePreOrder(ctx, req.(*WxpayNativePreOrderRequest)) | ||||
| 	} | ||||
| 	return interceptor(ctx, in, info, handler) | ||||
| } | ||||
| 
 | ||||
| func _Wechat_Transfer_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { | ||||
| 	in := new(WxpayTransferRequest) | ||||
| 	if err := dec(in); err != nil { | ||||
| 		return nil, err | ||||
| 	} | ||||
| 	if interceptor == nil { | ||||
| 		return srv.(WechatServer).Transfer(ctx, in) | ||||
| 	} | ||||
| 	info := &grpc.UnaryServerInfo{ | ||||
| 		Server:     srv, | ||||
| 		FullMethod: Wechat_Transfer_FullMethodName, | ||||
| 	} | ||||
| 	handler := func(ctx context.Context, req interface{}) (interface{}, error) { | ||||
| 		return srv.(WechatServer).Transfer(ctx, req.(*WxpayTransferRequest)) | ||||
| 	} | ||||
| 	return interceptor(ctx, in, info, handler) | ||||
| } | ||||
| 
 | ||||
| func _Wechat_WxCallback_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { | ||||
| 	in := new(WxCallBackRequest) | ||||
| 	if err := dec(in); err != nil { | ||||
| 		return nil, err | ||||
| 	} | ||||
| 	if interceptor == nil { | ||||
| 		return srv.(WechatServer).WxCallback(ctx, in) | ||||
| 	} | ||||
| 	info := &grpc.UnaryServerInfo{ | ||||
| 		Server:     srv, | ||||
| 		FullMethod: Wechat_WxCallback_FullMethodName, | ||||
| 	} | ||||
| 	handler := func(ctx context.Context, req interface{}) (interface{}, error) { | ||||
| 		return srv.(WechatServer).WxCallback(ctx, req.(*WxCallBackRequest)) | ||||
| 	} | ||||
| 	return interceptor(ctx, in, info, handler) | ||||
| } | ||||
| 
 | ||||
| // Wechat_ServiceDesc is the grpc.ServiceDesc for Wechat service.
 | ||||
| // It's only intended for direct use with grpc.RegisterService,
 | ||||
| // and not to be introspected or modified (even as a copy)
 | ||||
| var Wechat_ServiceDesc = grpc.ServiceDesc{ | ||||
| 	ServiceName: "wallet.Wechat", | ||||
| 	HandlerType: (*WechatServer)(nil), | ||||
| 	Methods: []grpc.MethodDesc{ | ||||
| 		{ | ||||
| 			MethodName: "JsapiPreOrder", | ||||
| 			Handler:    _Wechat_JsapiPreOrder_Handler, | ||||
| 		}, | ||||
| 		{ | ||||
| 			MethodName: "AppPreOrder", | ||||
| 			Handler:    _Wechat_AppPreOrder_Handler, | ||||
| 		}, | ||||
| 		{ | ||||
| 			MethodName: "NativePreOrder", | ||||
| 			Handler:    _Wechat_NativePreOrder_Handler, | ||||
| 		}, | ||||
| 		{ | ||||
| 			MethodName: "Transfer", | ||||
| 			Handler:    _Wechat_Transfer_Handler, | ||||
| 		}, | ||||
| 		{ | ||||
| 			MethodName: "WxCallback", | ||||
| 			Handler:    _Wechat_WxCallback_Handler, | ||||
| 		}, | ||||
| 	}, | ||||
| 	Streams:  []grpc.StreamDesc{}, | ||||
| 	Metadata: "wechat.proto", | ||||
| } | ||||
|  | @ -1,926 +0,0 @@ | |||
| /** | ||||
|  * Generated by the protoc-gen-ts.  DO NOT EDIT! | ||||
|  * compiler version: 0.0.0 | ||||
|  * source: alipay.proto | ||||
|  * git: https://github.com/thesayyn/protoc-gen-ts */
 | ||||
| import * as pb_1 from "google-protobuf"; | ||||
| import * as grpc_1 from "@grpc/grpc-js"; | ||||
| export namespace wallet { | ||||
|     export class AlipayTradeWapPayRequest extends pb_1.Message { | ||||
|         #one_of_decls: number[][] = []; | ||||
|         constructor(data?: any[] | { | ||||
|             user_identification?: string; | ||||
|             amount?: number; | ||||
|             description?: string; | ||||
|             notify_url?: string; | ||||
|             quit_url?: string; | ||||
|         }) { | ||||
|             super(); | ||||
|             pb_1.Message.initialize(this, Array.isArray(data) ? data : [], 0, -1, [], this.#one_of_decls); | ||||
|             if (!Array.isArray(data) && typeof data == "object") { | ||||
|                 if ("user_identification" in data && data.user_identification != undefined) { | ||||
|                     this.user_identification = data.user_identification; | ||||
|                 } | ||||
|                 if ("amount" in data && data.amount != undefined) { | ||||
|                     this.amount = data.amount; | ||||
|                 } | ||||
|                 if ("description" in data && data.description != undefined) { | ||||
|                     this.description = data.description; | ||||
|                 } | ||||
|                 if ("notify_url" in data && data.notify_url != undefined) { | ||||
|                     this.notify_url = data.notify_url; | ||||
|                 } | ||||
|                 if ("quit_url" in data && data.quit_url != undefined) { | ||||
|                     this.quit_url = data.quit_url; | ||||
|                 } | ||||
|             } | ||||
|         } | ||||
|         get user_identification() { | ||||
|             return pb_1.Message.getFieldWithDefault(this, 1, "") as string; | ||||
|         } | ||||
|         set user_identification(value: string) { | ||||
|             pb_1.Message.setField(this, 1, value); | ||||
|         } | ||||
|         get amount() { | ||||
|             return pb_1.Message.getFieldWithDefault(this, 2, 0) as number; | ||||
|         } | ||||
|         set amount(value: number) { | ||||
|             pb_1.Message.setField(this, 2, value); | ||||
|         } | ||||
|         get description() { | ||||
|             return pb_1.Message.getFieldWithDefault(this, 3, "") as string; | ||||
|         } | ||||
|         set description(value: string) { | ||||
|             pb_1.Message.setField(this, 3, value); | ||||
|         } | ||||
|         get notify_url() { | ||||
|             return pb_1.Message.getFieldWithDefault(this, 4, "") as string; | ||||
|         } | ||||
|         set notify_url(value: string) { | ||||
|             pb_1.Message.setField(this, 4, value); | ||||
|         } | ||||
|         get quit_url() { | ||||
|             return pb_1.Message.getFieldWithDefault(this, 5, "") as string; | ||||
|         } | ||||
|         set quit_url(value: string) { | ||||
|             pb_1.Message.setField(this, 5, value); | ||||
|         } | ||||
|         static fromObject(data: { | ||||
|             user_identification?: string; | ||||
|             amount?: number; | ||||
|             description?: string; | ||||
|             notify_url?: string; | ||||
|             quit_url?: string; | ||||
|         }): AlipayTradeWapPayRequest { | ||||
|             const message = new AlipayTradeWapPayRequest({}); | ||||
|             if (data.user_identification != null) { | ||||
|                 message.user_identification = data.user_identification; | ||||
|             } | ||||
|             if (data.amount != null) { | ||||
|                 message.amount = data.amount; | ||||
|             } | ||||
|             if (data.description != null) { | ||||
|                 message.description = data.description; | ||||
|             } | ||||
|             if (data.notify_url != null) { | ||||
|                 message.notify_url = data.notify_url; | ||||
|             } | ||||
|             if (data.quit_url != null) { | ||||
|                 message.quit_url = data.quit_url; | ||||
|             } | ||||
|             return message; | ||||
|         } | ||||
|         toObject() { | ||||
|             const data: { | ||||
|                 user_identification?: string; | ||||
|                 amount?: number; | ||||
|                 description?: string; | ||||
|                 notify_url?: string; | ||||
|                 quit_url?: string; | ||||
|             } = {}; | ||||
|             if (this.user_identification != null) { | ||||
|                 data.user_identification = this.user_identification; | ||||
|             } | ||||
|             if (this.amount != null) { | ||||
|                 data.amount = this.amount; | ||||
|             } | ||||
|             if (this.description != null) { | ||||
|                 data.description = this.description; | ||||
|             } | ||||
|             if (this.notify_url != null) { | ||||
|                 data.notify_url = this.notify_url; | ||||
|             } | ||||
|             if (this.quit_url != null) { | ||||
|                 data.quit_url = this.quit_url; | ||||
|             } | ||||
|             return data; | ||||
|         } | ||||
|         serialize(): Uint8Array; | ||||
|         serialize(w: pb_1.BinaryWriter): void; | ||||
|         serialize(w?: pb_1.BinaryWriter): Uint8Array | void { | ||||
|             const writer = w || new pb_1.BinaryWriter(); | ||||
|             if (this.user_identification.length) | ||||
|                 writer.writeString(1, this.user_identification); | ||||
|             if (this.amount != 0) | ||||
|                 writer.writeInt64(2, this.amount); | ||||
|             if (this.description.length) | ||||
|                 writer.writeString(3, this.description); | ||||
|             if (this.notify_url.length) | ||||
|                 writer.writeString(4, this.notify_url); | ||||
|             if (this.quit_url.length) | ||||
|                 writer.writeString(5, this.quit_url); | ||||
|             if (!w) | ||||
|                 return writer.getResultBuffer(); | ||||
|         } | ||||
|         static deserialize(bytes: Uint8Array | pb_1.BinaryReader): AlipayTradeWapPayRequest { | ||||
|             const reader = bytes instanceof pb_1.BinaryReader ? bytes : new pb_1.BinaryReader(bytes), message = new AlipayTradeWapPayRequest(); | ||||
|             while (reader.nextField()) { | ||||
|                 if (reader.isEndGroup()) | ||||
|                     break; | ||||
|                 switch (reader.getFieldNumber()) { | ||||
|                     case 1: | ||||
|                         message.user_identification = reader.readString(); | ||||
|                         break; | ||||
|                     case 2: | ||||
|                         message.amount = reader.readInt64(); | ||||
|                         break; | ||||
|                     case 3: | ||||
|                         message.description = reader.readString(); | ||||
|                         break; | ||||
|                     case 4: | ||||
|                         message.notify_url = reader.readString(); | ||||
|                         break; | ||||
|                     case 5: | ||||
|                         message.quit_url = reader.readString(); | ||||
|                         break; | ||||
|                     default: reader.skipField(); | ||||
|                 } | ||||
|             } | ||||
|             return message; | ||||
|         } | ||||
|         serializeBinary(): Uint8Array { | ||||
|             return this.serialize(); | ||||
|         } | ||||
|         static deserializeBinary(bytes: Uint8Array): AlipayTradeWapPayRequest { | ||||
|             return AlipayTradeWapPayRequest.deserialize(bytes); | ||||
|         } | ||||
|     } | ||||
|     export class AlipayTradeWapPayReply extends pb_1.Message { | ||||
|         #one_of_decls: number[][] = []; | ||||
|         constructor(data?: any[] | { | ||||
|             pay_url?: string; | ||||
|         }) { | ||||
|             super(); | ||||
|             pb_1.Message.initialize(this, Array.isArray(data) ? data : [], 0, -1, [], this.#one_of_decls); | ||||
|             if (!Array.isArray(data) && typeof data == "object") { | ||||
|                 if ("pay_url" in data && data.pay_url != undefined) { | ||||
|                     this.pay_url = data.pay_url; | ||||
|                 } | ||||
|             } | ||||
|         } | ||||
|         get pay_url() { | ||||
|             return pb_1.Message.getFieldWithDefault(this, 1, "") as string; | ||||
|         } | ||||
|         set pay_url(value: string) { | ||||
|             pb_1.Message.setField(this, 1, value); | ||||
|         } | ||||
|         static fromObject(data: { | ||||
|             pay_url?: string; | ||||
|         }): AlipayTradeWapPayReply { | ||||
|             const message = new AlipayTradeWapPayReply({}); | ||||
|             if (data.pay_url != null) { | ||||
|                 message.pay_url = data.pay_url; | ||||
|             } | ||||
|             return message; | ||||
|         } | ||||
|         toObject() { | ||||
|             const data: { | ||||
|                 pay_url?: string; | ||||
|             } = {}; | ||||
|             if (this.pay_url != null) { | ||||
|                 data.pay_url = this.pay_url; | ||||
|             } | ||||
|             return data; | ||||
|         } | ||||
|         serialize(): Uint8Array; | ||||
|         serialize(w: pb_1.BinaryWriter): void; | ||||
|         serialize(w?: pb_1.BinaryWriter): Uint8Array | void { | ||||
|             const writer = w || new pb_1.BinaryWriter(); | ||||
|             if (this.pay_url.length) | ||||
|                 writer.writeString(1, this.pay_url); | ||||
|             if (!w) | ||||
|                 return writer.getResultBuffer(); | ||||
|         } | ||||
|         static deserialize(bytes: Uint8Array | pb_1.BinaryReader): AlipayTradeWapPayReply { | ||||
|             const reader = bytes instanceof pb_1.BinaryReader ? bytes : new pb_1.BinaryReader(bytes), message = new AlipayTradeWapPayReply(); | ||||
|             while (reader.nextField()) { | ||||
|                 if (reader.isEndGroup()) | ||||
|                     break; | ||||
|                 switch (reader.getFieldNumber()) { | ||||
|                     case 1: | ||||
|                         message.pay_url = reader.readString(); | ||||
|                         break; | ||||
|                     default: reader.skipField(); | ||||
|                 } | ||||
|             } | ||||
|             return message; | ||||
|         } | ||||
|         serializeBinary(): Uint8Array { | ||||
|             return this.serialize(); | ||||
|         } | ||||
|         static deserializeBinary(bytes: Uint8Array): AlipayTradeWapPayReply { | ||||
|             return AlipayTradeWapPayReply.deserialize(bytes); | ||||
|         } | ||||
|     } | ||||
|     export class AlipayTradePagePayRequest extends pb_1.Message { | ||||
|         #one_of_decls: number[][] = []; | ||||
|         constructor(data?: any[] | { | ||||
|             user_identification?: string; | ||||
|             amount?: number; | ||||
|             description?: string; | ||||
|             notify_url?: string; | ||||
|             return_url?: string; | ||||
|         }) { | ||||
|             super(); | ||||
|             pb_1.Message.initialize(this, Array.isArray(data) ? data : [], 0, -1, [], this.#one_of_decls); | ||||
|             if (!Array.isArray(data) && typeof data == "object") { | ||||
|                 if ("user_identification" in data && data.user_identification != undefined) { | ||||
|                     this.user_identification = data.user_identification; | ||||
|                 } | ||||
|                 if ("amount" in data && data.amount != undefined) { | ||||
|                     this.amount = data.amount; | ||||
|                 } | ||||
|                 if ("description" in data && data.description != undefined) { | ||||
|                     this.description = data.description; | ||||
|                 } | ||||
|                 if ("notify_url" in data && data.notify_url != undefined) { | ||||
|                     this.notify_url = data.notify_url; | ||||
|                 } | ||||
|                 if ("return_url" in data && data.return_url != undefined) { | ||||
|                     this.return_url = data.return_url; | ||||
|                 } | ||||
|             } | ||||
|         } | ||||
|         get user_identification() { | ||||
|             return pb_1.Message.getFieldWithDefault(this, 1, "") as string; | ||||
|         } | ||||
|         set user_identification(value: string) { | ||||
|             pb_1.Message.setField(this, 1, value); | ||||
|         } | ||||
|         get amount() { | ||||
|             return pb_1.Message.getFieldWithDefault(this, 2, 0) as number; | ||||
|         } | ||||
|         set amount(value: number) { | ||||
|             pb_1.Message.setField(this, 2, value); | ||||
|         } | ||||
|         get description() { | ||||
|             return pb_1.Message.getFieldWithDefault(this, 3, "") as string; | ||||
|         } | ||||
|         set description(value: string) { | ||||
|             pb_1.Message.setField(this, 3, value); | ||||
|         } | ||||
|         get notify_url() { | ||||
|             return pb_1.Message.getFieldWithDefault(this, 4, "") as string; | ||||
|         } | ||||
|         set notify_url(value: string) { | ||||
|             pb_1.Message.setField(this, 4, value); | ||||
|         } | ||||
|         get return_url() { | ||||
|             return pb_1.Message.getFieldWithDefault(this, 5, "") as string; | ||||
|         } | ||||
|         set return_url(value: string) { | ||||
|             pb_1.Message.setField(this, 5, value); | ||||
|         } | ||||
|         static fromObject(data: { | ||||
|             user_identification?: string; | ||||
|             amount?: number; | ||||
|             description?: string; | ||||
|             notify_url?: string; | ||||
|             return_url?: string; | ||||
|         }): AlipayTradePagePayRequest { | ||||
|             const message = new AlipayTradePagePayRequest({}); | ||||
|             if (data.user_identification != null) { | ||||
|                 message.user_identification = data.user_identification; | ||||
|             } | ||||
|             if (data.amount != null) { | ||||
|                 message.amount = data.amount; | ||||
|             } | ||||
|             if (data.description != null) { | ||||
|                 message.description = data.description; | ||||
|             } | ||||
|             if (data.notify_url != null) { | ||||
|                 message.notify_url = data.notify_url; | ||||
|             } | ||||
|             if (data.return_url != null) { | ||||
|                 message.return_url = data.return_url; | ||||
|             } | ||||
|             return message; | ||||
|         } | ||||
|         toObject() { | ||||
|             const data: { | ||||
|                 user_identification?: string; | ||||
|                 amount?: number; | ||||
|                 description?: string; | ||||
|                 notify_url?: string; | ||||
|                 return_url?: string; | ||||
|             } = {}; | ||||
|             if (this.user_identification != null) { | ||||
|                 data.user_identification = this.user_identification; | ||||
|             } | ||||
|             if (this.amount != null) { | ||||
|                 data.amount = this.amount; | ||||
|             } | ||||
|             if (this.description != null) { | ||||
|                 data.description = this.description; | ||||
|             } | ||||
|             if (this.notify_url != null) { | ||||
|                 data.notify_url = this.notify_url; | ||||
|             } | ||||
|             if (this.return_url != null) { | ||||
|                 data.return_url = this.return_url; | ||||
|             } | ||||
|             return data; | ||||
|         } | ||||
|         serialize(): Uint8Array; | ||||
|         serialize(w: pb_1.BinaryWriter): void; | ||||
|         serialize(w?: pb_1.BinaryWriter): Uint8Array | void { | ||||
|             const writer = w || new pb_1.BinaryWriter(); | ||||
|             if (this.user_identification.length) | ||||
|                 writer.writeString(1, this.user_identification); | ||||
|             if (this.amount != 0) | ||||
|                 writer.writeInt64(2, this.amount); | ||||
|             if (this.description.length) | ||||
|                 writer.writeString(3, this.description); | ||||
|             if (this.notify_url.length) | ||||
|                 writer.writeString(4, this.notify_url); | ||||
|             if (this.return_url.length) | ||||
|                 writer.writeString(5, this.return_url); | ||||
|             if (!w) | ||||
|                 return writer.getResultBuffer(); | ||||
|         } | ||||
|         static deserialize(bytes: Uint8Array | pb_1.BinaryReader): AlipayTradePagePayRequest { | ||||
|             const reader = bytes instanceof pb_1.BinaryReader ? bytes : new pb_1.BinaryReader(bytes), message = new AlipayTradePagePayRequest(); | ||||
|             while (reader.nextField()) { | ||||
|                 if (reader.isEndGroup()) | ||||
|                     break; | ||||
|                 switch (reader.getFieldNumber()) { | ||||
|                     case 1: | ||||
|                         message.user_identification = reader.readString(); | ||||
|                         break; | ||||
|                     case 2: | ||||
|                         message.amount = reader.readInt64(); | ||||
|                         break; | ||||
|                     case 3: | ||||
|                         message.description = reader.readString(); | ||||
|                         break; | ||||
|                     case 4: | ||||
|                         message.notify_url = reader.readString(); | ||||
|                         break; | ||||
|                     case 5: | ||||
|                         message.return_url = reader.readString(); | ||||
|                         break; | ||||
|                     default: reader.skipField(); | ||||
|                 } | ||||
|             } | ||||
|             return message; | ||||
|         } | ||||
|         serializeBinary(): Uint8Array { | ||||
|             return this.serialize(); | ||||
|         } | ||||
|         static deserializeBinary(bytes: Uint8Array): AlipayTradePagePayRequest { | ||||
|             return AlipayTradePagePayRequest.deserialize(bytes); | ||||
|         } | ||||
|     } | ||||
|     export class AlipayTradePagePayReply extends pb_1.Message { | ||||
|         #one_of_decls: number[][] = []; | ||||
|         constructor(data?: any[] | { | ||||
|             pay_url?: string; | ||||
|         }) { | ||||
|             super(); | ||||
|             pb_1.Message.initialize(this, Array.isArray(data) ? data : [], 0, -1, [], this.#one_of_decls); | ||||
|             if (!Array.isArray(data) && typeof data == "object") { | ||||
|                 if ("pay_url" in data && data.pay_url != undefined) { | ||||
|                     this.pay_url = data.pay_url; | ||||
|                 } | ||||
|             } | ||||
|         } | ||||
|         get pay_url() { | ||||
|             return pb_1.Message.getFieldWithDefault(this, 1, "") as string; | ||||
|         } | ||||
|         set pay_url(value: string) { | ||||
|             pb_1.Message.setField(this, 1, value); | ||||
|         } | ||||
|         static fromObject(data: { | ||||
|             pay_url?: string; | ||||
|         }): AlipayTradePagePayReply { | ||||
|             const message = new AlipayTradePagePayReply({}); | ||||
|             if (data.pay_url != null) { | ||||
|                 message.pay_url = data.pay_url; | ||||
|             } | ||||
|             return message; | ||||
|         } | ||||
|         toObject() { | ||||
|             const data: { | ||||
|                 pay_url?: string; | ||||
|             } = {}; | ||||
|             if (this.pay_url != null) { | ||||
|                 data.pay_url = this.pay_url; | ||||
|             } | ||||
|             return data; | ||||
|         } | ||||
|         serialize(): Uint8Array; | ||||
|         serialize(w: pb_1.BinaryWriter): void; | ||||
|         serialize(w?: pb_1.BinaryWriter): Uint8Array | void { | ||||
|             const writer = w || new pb_1.BinaryWriter(); | ||||
|             if (this.pay_url.length) | ||||
|                 writer.writeString(1, this.pay_url); | ||||
|             if (!w) | ||||
|                 return writer.getResultBuffer(); | ||||
|         } | ||||
|         static deserialize(bytes: Uint8Array | pb_1.BinaryReader): AlipayTradePagePayReply { | ||||
|             const reader = bytes instanceof pb_1.BinaryReader ? bytes : new pb_1.BinaryReader(bytes), message = new AlipayTradePagePayReply(); | ||||
|             while (reader.nextField()) { | ||||
|                 if (reader.isEndGroup()) | ||||
|                     break; | ||||
|                 switch (reader.getFieldNumber()) { | ||||
|                     case 1: | ||||
|                         message.pay_url = reader.readString(); | ||||
|                         break; | ||||
|                     default: reader.skipField(); | ||||
|                 } | ||||
|             } | ||||
|             return message; | ||||
|         } | ||||
|         serializeBinary(): Uint8Array { | ||||
|             return this.serialize(); | ||||
|         } | ||||
|         static deserializeBinary(bytes: Uint8Array): AlipayTradePagePayReply { | ||||
|             return AlipayTradePagePayReply.deserialize(bytes); | ||||
|         } | ||||
|     } | ||||
|     export class AlipayTradeAppPayRequest extends pb_1.Message { | ||||
|         #one_of_decls: number[][] = []; | ||||
|         constructor(data?: any[] | { | ||||
|             user_identification?: string; | ||||
|             amount?: number; | ||||
|             description?: string; | ||||
|             notify_url?: string; | ||||
|         }) { | ||||
|             super(); | ||||
|             pb_1.Message.initialize(this, Array.isArray(data) ? data : [], 0, -1, [], this.#one_of_decls); | ||||
|             if (!Array.isArray(data) && typeof data == "object") { | ||||
|                 if ("user_identification" in data && data.user_identification != undefined) { | ||||
|                     this.user_identification = data.user_identification; | ||||
|                 } | ||||
|                 if ("amount" in data && data.amount != undefined) { | ||||
|                     this.amount = data.amount; | ||||
|                 } | ||||
|                 if ("description" in data && data.description != undefined) { | ||||
|                     this.description = data.description; | ||||
|                 } | ||||
|                 if ("notify_url" in data && data.notify_url != undefined) { | ||||
|                     this.notify_url = data.notify_url; | ||||
|                 } | ||||
|             } | ||||
|         } | ||||
|         get user_identification() { | ||||
|             return pb_1.Message.getFieldWithDefault(this, 1, "") as string; | ||||
|         } | ||||
|         set user_identification(value: string) { | ||||
|             pb_1.Message.setField(this, 1, value); | ||||
|         } | ||||
|         get amount() { | ||||
|             return pb_1.Message.getFieldWithDefault(this, 2, 0) as number; | ||||
|         } | ||||
|         set amount(value: number) { | ||||
|             pb_1.Message.setField(this, 2, value); | ||||
|         } | ||||
|         get description() { | ||||
|             return pb_1.Message.getFieldWithDefault(this, 3, "") as string; | ||||
|         } | ||||
|         set description(value: string) { | ||||
|             pb_1.Message.setField(this, 3, value); | ||||
|         } | ||||
|         get notify_url() { | ||||
|             return pb_1.Message.getFieldWithDefault(this, 4, "") as string; | ||||
|         } | ||||
|         set notify_url(value: string) { | ||||
|             pb_1.Message.setField(this, 4, value); | ||||
|         } | ||||
|         static fromObject(data: { | ||||
|             user_identification?: string; | ||||
|             amount?: number; | ||||
|             description?: string; | ||||
|             notify_url?: string; | ||||
|         }): AlipayTradeAppPayRequest { | ||||
|             const message = new AlipayTradeAppPayRequest({}); | ||||
|             if (data.user_identification != null) { | ||||
|                 message.user_identification = data.user_identification; | ||||
|             } | ||||
|             if (data.amount != null) { | ||||
|                 message.amount = data.amount; | ||||
|             } | ||||
|             if (data.description != null) { | ||||
|                 message.description = data.description; | ||||
|             } | ||||
|             if (data.notify_url != null) { | ||||
|                 message.notify_url = data.notify_url; | ||||
|             } | ||||
|             return message; | ||||
|         } | ||||
|         toObject() { | ||||
|             const data: { | ||||
|                 user_identification?: string; | ||||
|                 amount?: number; | ||||
|                 description?: string; | ||||
|                 notify_url?: string; | ||||
|             } = {}; | ||||
|             if (this.user_identification != null) { | ||||
|                 data.user_identification = this.user_identification; | ||||
|             } | ||||
|             if (this.amount != null) { | ||||
|                 data.amount = this.amount; | ||||
|             } | ||||
|             if (this.description != null) { | ||||
|                 data.description = this.description; | ||||
|             } | ||||
|             if (this.notify_url != null) { | ||||
|                 data.notify_url = this.notify_url; | ||||
|             } | ||||
|             return data; | ||||
|         } | ||||
|         serialize(): Uint8Array; | ||||
|         serialize(w: pb_1.BinaryWriter): void; | ||||
|         serialize(w?: pb_1.BinaryWriter): Uint8Array | void { | ||||
|             const writer = w || new pb_1.BinaryWriter(); | ||||
|             if (this.user_identification.length) | ||||
|                 writer.writeString(1, this.user_identification); | ||||
|             if (this.amount != 0) | ||||
|                 writer.writeInt64(2, this.amount); | ||||
|             if (this.description.length) | ||||
|                 writer.writeString(3, this.description); | ||||
|             if (this.notify_url.length) | ||||
|                 writer.writeString(4, this.notify_url); | ||||
|             if (!w) | ||||
|                 return writer.getResultBuffer(); | ||||
|         } | ||||
|         static deserialize(bytes: Uint8Array | pb_1.BinaryReader): AlipayTradeAppPayRequest { | ||||
|             const reader = bytes instanceof pb_1.BinaryReader ? bytes : new pb_1.BinaryReader(bytes), message = new AlipayTradeAppPayRequest(); | ||||
|             while (reader.nextField()) { | ||||
|                 if (reader.isEndGroup()) | ||||
|                     break; | ||||
|                 switch (reader.getFieldNumber()) { | ||||
|                     case 1: | ||||
|                         message.user_identification = reader.readString(); | ||||
|                         break; | ||||
|                     case 2: | ||||
|                         message.amount = reader.readInt64(); | ||||
|                         break; | ||||
|                     case 3: | ||||
|                         message.description = reader.readString(); | ||||
|                         break; | ||||
|                     case 4: | ||||
|                         message.notify_url = reader.readString(); | ||||
|                         break; | ||||
|                     default: reader.skipField(); | ||||
|                 } | ||||
|             } | ||||
|             return message; | ||||
|         } | ||||
|         serializeBinary(): Uint8Array { | ||||
|             return this.serialize(); | ||||
|         } | ||||
|         static deserializeBinary(bytes: Uint8Array): AlipayTradeAppPayRequest { | ||||
|             return AlipayTradeAppPayRequest.deserialize(bytes); | ||||
|         } | ||||
|     } | ||||
|     export class AlipayTradeAppPayReply extends pb_1.Message { | ||||
|         #one_of_decls: number[][] = []; | ||||
|         constructor(data?: any[] | { | ||||
|             pay_param?: string; | ||||
|         }) { | ||||
|             super(); | ||||
|             pb_1.Message.initialize(this, Array.isArray(data) ? data : [], 0, -1, [], this.#one_of_decls); | ||||
|             if (!Array.isArray(data) && typeof data == "object") { | ||||
|                 if ("pay_param" in data && data.pay_param != undefined) { | ||||
|                     this.pay_param = data.pay_param; | ||||
|                 } | ||||
|             } | ||||
|         } | ||||
|         get pay_param() { | ||||
|             return pb_1.Message.getFieldWithDefault(this, 1, "") as string; | ||||
|         } | ||||
|         set pay_param(value: string) { | ||||
|             pb_1.Message.setField(this, 1, value); | ||||
|         } | ||||
|         static fromObject(data: { | ||||
|             pay_param?: string; | ||||
|         }): AlipayTradeAppPayReply { | ||||
|             const message = new AlipayTradeAppPayReply({}); | ||||
|             if (data.pay_param != null) { | ||||
|                 message.pay_param = data.pay_param; | ||||
|             } | ||||
|             return message; | ||||
|         } | ||||
|         toObject() { | ||||
|             const data: { | ||||
|                 pay_param?: string; | ||||
|             } = {}; | ||||
|             if (this.pay_param != null) { | ||||
|                 data.pay_param = this.pay_param; | ||||
|             } | ||||
|             return data; | ||||
|         } | ||||
|         serialize(): Uint8Array; | ||||
|         serialize(w: pb_1.BinaryWriter): void; | ||||
|         serialize(w?: pb_1.BinaryWriter): Uint8Array | void { | ||||
|             const writer = w || new pb_1.BinaryWriter(); | ||||
|             if (this.pay_param.length) | ||||
|                 writer.writeString(1, this.pay_param); | ||||
|             if (!w) | ||||
|                 return writer.getResultBuffer(); | ||||
|         } | ||||
|         static deserialize(bytes: Uint8Array | pb_1.BinaryReader): AlipayTradeAppPayReply { | ||||
|             const reader = bytes instanceof pb_1.BinaryReader ? bytes : new pb_1.BinaryReader(bytes), message = new AlipayTradeAppPayReply(); | ||||
|             while (reader.nextField()) { | ||||
|                 if (reader.isEndGroup()) | ||||
|                     break; | ||||
|                 switch (reader.getFieldNumber()) { | ||||
|                     case 1: | ||||
|                         message.pay_param = reader.readString(); | ||||
|                         break; | ||||
|                     default: reader.skipField(); | ||||
|                 } | ||||
|             } | ||||
|             return message; | ||||
|         } | ||||
|         serializeBinary(): Uint8Array { | ||||
|             return this.serialize(); | ||||
|         } | ||||
|         static deserializeBinary(bytes: Uint8Array): AlipayTradeAppPayReply { | ||||
|             return AlipayTradeAppPayReply.deserialize(bytes); | ||||
|         } | ||||
|     } | ||||
|     export class AlipayUniTransferRequest extends pb_1.Message { | ||||
|         #one_of_decls: number[][] = []; | ||||
|         constructor(data?: any[] | { | ||||
|             user_identification?: string; | ||||
|             amount?: number; | ||||
|             fee?: number; | ||||
|             description?: string; | ||||
|         }) { | ||||
|             super(); | ||||
|             pb_1.Message.initialize(this, Array.isArray(data) ? data : [], 0, -1, [], this.#one_of_decls); | ||||
|             if (!Array.isArray(data) && typeof data == "object") { | ||||
|                 if ("user_identification" in data && data.user_identification != undefined) { | ||||
|                     this.user_identification = data.user_identification; | ||||
|                 } | ||||
|                 if ("amount" in data && data.amount != undefined) { | ||||
|                     this.amount = data.amount; | ||||
|                 } | ||||
|                 if ("fee" in data && data.fee != undefined) { | ||||
|                     this.fee = data.fee; | ||||
|                 } | ||||
|                 if ("description" in data && data.description != undefined) { | ||||
|                     this.description = data.description; | ||||
|                 } | ||||
|             } | ||||
|         } | ||||
|         get user_identification() { | ||||
|             return pb_1.Message.getFieldWithDefault(this, 1, "") as string; | ||||
|         } | ||||
|         set user_identification(value: string) { | ||||
|             pb_1.Message.setField(this, 1, value); | ||||
|         } | ||||
|         get amount() { | ||||
|             return pb_1.Message.getFieldWithDefault(this, 2, 0) as number; | ||||
|         } | ||||
|         set amount(value: number) { | ||||
|             pb_1.Message.setField(this, 2, value); | ||||
|         } | ||||
|         get fee() { | ||||
|             return pb_1.Message.getFieldWithDefault(this, 3, 0) as number; | ||||
|         } | ||||
|         set fee(value: number) { | ||||
|             pb_1.Message.setField(this, 3, value); | ||||
|         } | ||||
|         get description() { | ||||
|             return pb_1.Message.getFieldWithDefault(this, 4, "") as string; | ||||
|         } | ||||
|         set description(value: string) { | ||||
|             pb_1.Message.setField(this, 4, value); | ||||
|         } | ||||
|         static fromObject(data: { | ||||
|             user_identification?: string; | ||||
|             amount?: number; | ||||
|             fee?: number; | ||||
|             description?: string; | ||||
|         }): AlipayUniTransferRequest { | ||||
|             const message = new AlipayUniTransferRequest({}); | ||||
|             if (data.user_identification != null) { | ||||
|                 message.user_identification = data.user_identification; | ||||
|             } | ||||
|             if (data.amount != null) { | ||||
|                 message.amount = data.amount; | ||||
|             } | ||||
|             if (data.fee != null) { | ||||
|                 message.fee = data.fee; | ||||
|             } | ||||
|             if (data.description != null) { | ||||
|                 message.description = data.description; | ||||
|             } | ||||
|             return message; | ||||
|         } | ||||
|         toObject() { | ||||
|             const data: { | ||||
|                 user_identification?: string; | ||||
|                 amount?: number; | ||||
|                 fee?: number; | ||||
|                 description?: string; | ||||
|             } = {}; | ||||
|             if (this.user_identification != null) { | ||||
|                 data.user_identification = this.user_identification; | ||||
|             } | ||||
|             if (this.amount != null) { | ||||
|                 data.amount = this.amount; | ||||
|             } | ||||
|             if (this.fee != null) { | ||||
|                 data.fee = this.fee; | ||||
|             } | ||||
|             if (this.description != null) { | ||||
|                 data.description = this.description; | ||||
|             } | ||||
|             return data; | ||||
|         } | ||||
|         serialize(): Uint8Array; | ||||
|         serialize(w: pb_1.BinaryWriter): void; | ||||
|         serialize(w?: pb_1.BinaryWriter): Uint8Array | void { | ||||
|             const writer = w || new pb_1.BinaryWriter(); | ||||
|             if (this.user_identification.length) | ||||
|                 writer.writeString(1, this.user_identification); | ||||
|             if (this.amount != 0) | ||||
|                 writer.writeInt64(2, this.amount); | ||||
|             if (this.fee != 0) | ||||
|                 writer.writeInt64(3, this.fee); | ||||
|             if (this.description.length) | ||||
|                 writer.writeString(4, this.description); | ||||
|             if (!w) | ||||
|                 return writer.getResultBuffer(); | ||||
|         } | ||||
|         static deserialize(bytes: Uint8Array | pb_1.BinaryReader): AlipayUniTransferRequest { | ||||
|             const reader = bytes instanceof pb_1.BinaryReader ? bytes : new pb_1.BinaryReader(bytes), message = new AlipayUniTransferRequest(); | ||||
|             while (reader.nextField()) { | ||||
|                 if (reader.isEndGroup()) | ||||
|                     break; | ||||
|                 switch (reader.getFieldNumber()) { | ||||
|                     case 1: | ||||
|                         message.user_identification = reader.readString(); | ||||
|                         break; | ||||
|                     case 2: | ||||
|                         message.amount = reader.readInt64(); | ||||
|                         break; | ||||
|                     case 3: | ||||
|                         message.fee = reader.readInt64(); | ||||
|                         break; | ||||
|                     case 4: | ||||
|                         message.description = reader.readString(); | ||||
|                         break; | ||||
|                     default: reader.skipField(); | ||||
|                 } | ||||
|             } | ||||
|             return message; | ||||
|         } | ||||
|         serializeBinary(): Uint8Array { | ||||
|             return this.serialize(); | ||||
|         } | ||||
|         static deserializeBinary(bytes: Uint8Array): AlipayUniTransferRequest { | ||||
|             return AlipayUniTransferRequest.deserialize(bytes); | ||||
|         } | ||||
|     } | ||||
|     export class AlipayUniTransferReply extends pb_1.Message { | ||||
|         #one_of_decls: number[][] = []; | ||||
|         constructor(data?: any[] | {}) { | ||||
|             super(); | ||||
|             pb_1.Message.initialize(this, Array.isArray(data) ? data : [], 0, -1, [], this.#one_of_decls); | ||||
|             if (!Array.isArray(data) && typeof data == "object") { } | ||||
|         } | ||||
|         static fromObject(data: {}): AlipayUniTransferReply { | ||||
|             const message = new AlipayUniTransferReply({}); | ||||
|             return message; | ||||
|         } | ||||
|         toObject() { | ||||
|             const data: {} = {}; | ||||
|             return data; | ||||
|         } | ||||
|         serialize(): Uint8Array; | ||||
|         serialize(w: pb_1.BinaryWriter): void; | ||||
|         serialize(w?: pb_1.BinaryWriter): Uint8Array | void { | ||||
|             const writer = w || new pb_1.BinaryWriter(); | ||||
|             if (!w) | ||||
|                 return writer.getResultBuffer(); | ||||
|         } | ||||
|         static deserialize(bytes: Uint8Array | pb_1.BinaryReader): AlipayUniTransferReply { | ||||
|             const reader = bytes instanceof pb_1.BinaryReader ? bytes : new pb_1.BinaryReader(bytes), message = new AlipayUniTransferReply(); | ||||
|             while (reader.nextField()) { | ||||
|                 if (reader.isEndGroup()) | ||||
|                     break; | ||||
|                 switch (reader.getFieldNumber()) { | ||||
|                     default: reader.skipField(); | ||||
|                 } | ||||
|             } | ||||
|             return message; | ||||
|         } | ||||
|         serializeBinary(): Uint8Array { | ||||
|             return this.serialize(); | ||||
|         } | ||||
|         static deserializeBinary(bytes: Uint8Array): AlipayUniTransferReply { | ||||
|             return AlipayUniTransferReply.deserialize(bytes); | ||||
|         } | ||||
|     } | ||||
|     interface GrpcUnaryServiceInterface<P, R> { | ||||
|         (message: P, metadata: grpc_1.Metadata, options: grpc_1.CallOptions, callback: grpc_1.requestCallback<R>): grpc_1.ClientUnaryCall; | ||||
|         (message: P, metadata: grpc_1.Metadata, callback: grpc_1.requestCallback<R>): grpc_1.ClientUnaryCall; | ||||
|         (message: P, options: grpc_1.CallOptions, callback: grpc_1.requestCallback<R>): grpc_1.ClientUnaryCall; | ||||
|         (message: P, callback: grpc_1.requestCallback<R>): grpc_1.ClientUnaryCall; | ||||
|     } | ||||
|     interface GrpcStreamServiceInterface<P, R> { | ||||
|         (message: P, metadata: grpc_1.Metadata, options?: grpc_1.CallOptions): grpc_1.ClientReadableStream<R>; | ||||
|         (message: P, options?: grpc_1.CallOptions): grpc_1.ClientReadableStream<R>; | ||||
|     } | ||||
|     interface GrpWritableServiceInterface<P, R> { | ||||
|         (metadata: grpc_1.Metadata, options: grpc_1.CallOptions, callback: grpc_1.requestCallback<R>): grpc_1.ClientWritableStream<P>; | ||||
|         (metadata: grpc_1.Metadata, callback: grpc_1.requestCallback<R>): grpc_1.ClientWritableStream<P>; | ||||
|         (options: grpc_1.CallOptions, callback: grpc_1.requestCallback<R>): grpc_1.ClientWritableStream<P>; | ||||
|         (callback: grpc_1.requestCallback<R>): grpc_1.ClientWritableStream<P>; | ||||
|     } | ||||
|     interface GrpcChunkServiceInterface<P, R> { | ||||
|         (metadata: grpc_1.Metadata, options?: grpc_1.CallOptions): grpc_1.ClientDuplexStream<P, R>; | ||||
|         (options?: grpc_1.CallOptions): grpc_1.ClientDuplexStream<P, R>; | ||||
|     } | ||||
|     interface GrpcPromiseServiceInterface<P, R> { | ||||
|         (message: P, metadata: grpc_1.Metadata, options?: grpc_1.CallOptions): Promise<R>; | ||||
|         (message: P, options?: grpc_1.CallOptions): Promise<R>; | ||||
|     } | ||||
|     export abstract class UnimplementedAlipayService { | ||||
|         static definition = { | ||||
|             WapPay: { | ||||
|                 path: "/wallet.Alipay/WapPay", | ||||
|                 requestStream: false, | ||||
|                 responseStream: false, | ||||
|                 requestSerialize: (message: AlipayTradeWapPayRequest) => Buffer.from(message.serialize()), | ||||
|                 requestDeserialize: (bytes: Buffer) => AlipayTradeWapPayRequest.deserialize(new Uint8Array(bytes)), | ||||
|                 responseSerialize: (message: AlipayTradeWapPayReply) => Buffer.from(message.serialize()), | ||||
|                 responseDeserialize: (bytes: Buffer) => AlipayTradeWapPayReply.deserialize(new Uint8Array(bytes)) | ||||
|             }, | ||||
|             PagePay: { | ||||
|                 path: "/wallet.Alipay/PagePay", | ||||
|                 requestStream: false, | ||||
|                 responseStream: false, | ||||
|                 requestSerialize: (message: AlipayTradePagePayRequest) => Buffer.from(message.serialize()), | ||||
|                 requestDeserialize: (bytes: Buffer) => AlipayTradePagePayRequest.deserialize(new Uint8Array(bytes)), | ||||
|                 responseSerialize: (message: AlipayTradePagePayReply) => Buffer.from(message.serialize()), | ||||
|                 responseDeserialize: (bytes: Buffer) => AlipayTradePagePayReply.deserialize(new Uint8Array(bytes)) | ||||
|             }, | ||||
|             AppPay: { | ||||
|                 path: "/wallet.Alipay/AppPay", | ||||
|                 requestStream: false, | ||||
|                 responseStream: false, | ||||
|                 requestSerialize: (message: AlipayTradeAppPayRequest) => Buffer.from(message.serialize()), | ||||
|                 requestDeserialize: (bytes: Buffer) => AlipayTradeAppPayRequest.deserialize(new Uint8Array(bytes)), | ||||
|                 responseSerialize: (message: AlipayTradeAppPayReply) => Buffer.from(message.serialize()), | ||||
|                 responseDeserialize: (bytes: Buffer) => AlipayTradeAppPayReply.deserialize(new Uint8Array(bytes)) | ||||
|             }, | ||||
|             Transfer: { | ||||
|                 path: "/wallet.Alipay/Transfer", | ||||
|                 requestStream: false, | ||||
|                 responseStream: false, | ||||
|                 requestSerialize: (message: AlipayUniTransferRequest) => Buffer.from(message.serialize()), | ||||
|                 requestDeserialize: (bytes: Buffer) => AlipayUniTransferRequest.deserialize(new Uint8Array(bytes)), | ||||
|                 responseSerialize: (message: AlipayUniTransferReply) => Buffer.from(message.serialize()), | ||||
|                 responseDeserialize: (bytes: Buffer) => AlipayUniTransferReply.deserialize(new Uint8Array(bytes)) | ||||
|             } | ||||
|         }; | ||||
|         [method: string]: grpc_1.UntypedHandleCall; | ||||
|         abstract WapPay(call: grpc_1.ServerUnaryCall<AlipayTradeWapPayRequest, AlipayTradeWapPayReply>, callback: grpc_1.sendUnaryData<AlipayTradeWapPayReply>): void; | ||||
|         abstract PagePay(call: grpc_1.ServerUnaryCall<AlipayTradePagePayRequest, AlipayTradePagePayReply>, callback: grpc_1.sendUnaryData<AlipayTradePagePayReply>): void; | ||||
|         abstract AppPay(call: grpc_1.ServerUnaryCall<AlipayTradeAppPayRequest, AlipayTradeAppPayReply>, callback: grpc_1.sendUnaryData<AlipayTradeAppPayReply>): void; | ||||
|         abstract Transfer(call: grpc_1.ServerUnaryCall<AlipayUniTransferRequest, AlipayUniTransferReply>, callback: grpc_1.sendUnaryData<AlipayUniTransferReply>): void; | ||||
|     } | ||||
|     export class AlipayClient extends grpc_1.makeGenericClientConstructor(UnimplementedAlipayService.definition, "Alipay", {}) { | ||||
|         constructor(address: string, credentials: grpc_1.ChannelCredentials, options?: Partial<grpc_1.ChannelOptions>) { | ||||
|             super(address, credentials, options); | ||||
|         } | ||||
|         WapPay: GrpcUnaryServiceInterface<AlipayTradeWapPayRequest, AlipayTradeWapPayReply> = (message: AlipayTradeWapPayRequest, metadata: grpc_1.Metadata | grpc_1.CallOptions | grpc_1.requestCallback<AlipayTradeWapPayReply>, options?: grpc_1.CallOptions | grpc_1.requestCallback<AlipayTradeWapPayReply>, callback?: grpc_1.requestCallback<AlipayTradeWapPayReply>): grpc_1.ClientUnaryCall => { | ||||
|             return super.WapPay(message, metadata, options, callback); | ||||
|         }; | ||||
|         PagePay: GrpcUnaryServiceInterface<AlipayTradePagePayRequest, AlipayTradePagePayReply> = (message: AlipayTradePagePayRequest, metadata: grpc_1.Metadata | grpc_1.CallOptions | grpc_1.requestCallback<AlipayTradePagePayReply>, options?: grpc_1.CallOptions | grpc_1.requestCallback<AlipayTradePagePayReply>, callback?: grpc_1.requestCallback<AlipayTradePagePayReply>): grpc_1.ClientUnaryCall => { | ||||
|             return super.PagePay(message, metadata, options, callback); | ||||
|         }; | ||||
|         AppPay: GrpcUnaryServiceInterface<AlipayTradeAppPayRequest, AlipayTradeAppPayReply> = (message: AlipayTradeAppPayRequest, metadata: grpc_1.Metadata | grpc_1.CallOptions | grpc_1.requestCallback<AlipayTradeAppPayReply>, options?: grpc_1.CallOptions | grpc_1.requestCallback<AlipayTradeAppPayReply>, callback?: grpc_1.requestCallback<AlipayTradeAppPayReply>): grpc_1.ClientUnaryCall => { | ||||
|             return super.AppPay(message, metadata, options, callback); | ||||
|         }; | ||||
|         Transfer: GrpcUnaryServiceInterface<AlipayUniTransferRequest, AlipayUniTransferReply> = (message: AlipayUniTransferRequest, metadata: grpc_1.Metadata | grpc_1.CallOptions | grpc_1.requestCallback<AlipayUniTransferReply>, options?: grpc_1.CallOptions | grpc_1.requestCallback<AlipayUniTransferReply>, callback?: grpc_1.requestCallback<AlipayUniTransferReply>): grpc_1.ClientUnaryCall => { | ||||
|             return super.Transfer(message, metadata, options, callback); | ||||
|         }; | ||||
|     } | ||||
| } | ||||
|  | @ -1,485 +0,0 @@ | |||
| /** | ||||
|  * Generated by the protoc-gen-ts.  DO NOT EDIT! | ||||
|  * compiler version: 0.0.0 | ||||
|  * source: blocks.proto | ||||
|  * git: https://github.com/thesayyn/protoc-gen-ts */
 | ||||
| import * as pb_1 from "google-protobuf"; | ||||
| export namespace wallet { | ||||
|     export class FetchRequest extends pb_1.Message { | ||||
|         #one_of_decls: number[][] = []; | ||||
|         constructor(data?: any[] | { | ||||
|             page_no?: number; | ||||
|             page_size?: number; | ||||
|             params?: Map<string, string>; | ||||
|         }) { | ||||
|             super(); | ||||
|             pb_1.Message.initialize(this, Array.isArray(data) ? data : [], 0, -1, [], this.#one_of_decls); | ||||
|             if (!Array.isArray(data) && typeof data == "object") { | ||||
|                 if ("page_no" in data && data.page_no != undefined) { | ||||
|                     this.page_no = data.page_no; | ||||
|                 } | ||||
|                 if ("page_size" in data && data.page_size != undefined) { | ||||
|                     this.page_size = data.page_size; | ||||
|                 } | ||||
|                 if ("params" in data && data.params != undefined) { | ||||
|                     this.params = data.params; | ||||
|                 } | ||||
|             } | ||||
|             if (!this.params) | ||||
|                 this.params = new Map(); | ||||
|         } | ||||
|         get page_no() { | ||||
|             return pb_1.Message.getFieldWithDefault(this, 1, 0) as number; | ||||
|         } | ||||
|         set page_no(value: number) { | ||||
|             pb_1.Message.setField(this, 1, value); | ||||
|         } | ||||
|         get page_size() { | ||||
|             return pb_1.Message.getFieldWithDefault(this, 2, 0) as number; | ||||
|         } | ||||
|         set page_size(value: number) { | ||||
|             pb_1.Message.setField(this, 2, value); | ||||
|         } | ||||
|         get params() { | ||||
|             return pb_1.Message.getField(this, 3) as any as Map<string, string>; | ||||
|         } | ||||
|         set params(value: Map<string, string>) { | ||||
|             pb_1.Message.setField(this, 3, value as any); | ||||
|         } | ||||
|         static fromObject(data: { | ||||
|             page_no?: number; | ||||
|             page_size?: number; | ||||
|             params?: { | ||||
|                 [key: string]: string; | ||||
|             }; | ||||
|         }): FetchRequest { | ||||
|             const message = new FetchRequest({}); | ||||
|             if (data.page_no != null) { | ||||
|                 message.page_no = data.page_no; | ||||
|             } | ||||
|             if (data.page_size != null) { | ||||
|                 message.page_size = data.page_size; | ||||
|             } | ||||
|             if (typeof data.params == "object") { | ||||
|                 message.params = new Map(Object.entries(data.params)); | ||||
|             } | ||||
|             return message; | ||||
|         } | ||||
|         toObject() { | ||||
|             const data: { | ||||
|                 page_no?: number; | ||||
|                 page_size?: number; | ||||
|                 params?: { | ||||
|                     [key: string]: string; | ||||
|                 }; | ||||
|             } = {}; | ||||
|             if (this.page_no != null) { | ||||
|                 data.page_no = this.page_no; | ||||
|             } | ||||
|             if (this.page_size != null) { | ||||
|                 data.page_size = this.page_size; | ||||
|             } | ||||
|             if (this.params != null) { | ||||
|                 data.params = (Object.fromEntries)(this.params); | ||||
|             } | ||||
|             return data; | ||||
|         } | ||||
|         serialize(): Uint8Array; | ||||
|         serialize(w: pb_1.BinaryWriter): void; | ||||
|         serialize(w?: pb_1.BinaryWriter): Uint8Array | void { | ||||
|             const writer = w || new pb_1.BinaryWriter(); | ||||
|             if (this.page_no != 0) | ||||
|                 writer.writeInt64(1, this.page_no); | ||||
|             if (this.page_size != 0) | ||||
|                 writer.writeInt64(2, this.page_size); | ||||
|             for (const [key, value] of this.params) { | ||||
|                 writer.writeMessage(3, this.params, () => { | ||||
|                     writer.writeString(1, key); | ||||
|                     writer.writeString(2, value); | ||||
|                 }); | ||||
|             } | ||||
|             if (!w) | ||||
|                 return writer.getResultBuffer(); | ||||
|         } | ||||
|         static deserialize(bytes: Uint8Array | pb_1.BinaryReader): FetchRequest { | ||||
|             const reader = bytes instanceof pb_1.BinaryReader ? bytes : new pb_1.BinaryReader(bytes), message = new FetchRequest(); | ||||
|             while (reader.nextField()) { | ||||
|                 if (reader.isEndGroup()) | ||||
|                     break; | ||||
|                 switch (reader.getFieldNumber()) { | ||||
|                     case 1: | ||||
|                         message.page_no = reader.readInt64(); | ||||
|                         break; | ||||
|                     case 2: | ||||
|                         message.page_size = reader.readInt64(); | ||||
|                         break; | ||||
|                     case 3: | ||||
|                         reader.readMessage(message, () => pb_1.Map.deserializeBinary(message.params as any, reader, reader.readString, reader.readString)); | ||||
|                         break; | ||||
|                     default: reader.skipField(); | ||||
|                 } | ||||
|             } | ||||
|             return message; | ||||
|         } | ||||
|         serializeBinary(): Uint8Array { | ||||
|             return this.serialize(); | ||||
|         } | ||||
|         static deserializeBinary(bytes: Uint8Array): FetchRequest { | ||||
|             return FetchRequest.deserialize(bytes); | ||||
|         } | ||||
|     } | ||||
|     export class IdentRequest extends pb_1.Message { | ||||
|         #one_of_decls: number[][] = []; | ||||
|         constructor(data?: any[] | { | ||||
|             id?: number; | ||||
|             identity?: string; | ||||
|         }) { | ||||
|             super(); | ||||
|             pb_1.Message.initialize(this, Array.isArray(data) ? data : [], 0, -1, [], this.#one_of_decls); | ||||
|             if (!Array.isArray(data) && typeof data == "object") { | ||||
|                 if ("id" in data && data.id != undefined) { | ||||
|                     this.id = data.id; | ||||
|                 } | ||||
|                 if ("identity" in data && data.identity != undefined) { | ||||
|                     this.identity = data.identity; | ||||
|                 } | ||||
|             } | ||||
|         } | ||||
|         get id() { | ||||
|             return pb_1.Message.getFieldWithDefault(this, 1, 0) as number; | ||||
|         } | ||||
|         set id(value: number) { | ||||
|             pb_1.Message.setField(this, 1, value); | ||||
|         } | ||||
|         get identity() { | ||||
|             return pb_1.Message.getFieldWithDefault(this, 2, "") as string; | ||||
|         } | ||||
|         set identity(value: string) { | ||||
|             pb_1.Message.setField(this, 2, value); | ||||
|         } | ||||
|         static fromObject(data: { | ||||
|             id?: number; | ||||
|             identity?: string; | ||||
|         }): IdentRequest { | ||||
|             const message = new IdentRequest({}); | ||||
|             if (data.id != null) { | ||||
|                 message.id = data.id; | ||||
|             } | ||||
|             if (data.identity != null) { | ||||
|                 message.identity = data.identity; | ||||
|             } | ||||
|             return message; | ||||
|         } | ||||
|         toObject() { | ||||
|             const data: { | ||||
|                 id?: number; | ||||
|                 identity?: string; | ||||
|             } = {}; | ||||
|             if (this.id != null) { | ||||
|                 data.id = this.id; | ||||
|             } | ||||
|             if (this.identity != null) { | ||||
|                 data.identity = this.identity; | ||||
|             } | ||||
|             return data; | ||||
|         } | ||||
|         serialize(): Uint8Array; | ||||
|         serialize(w: pb_1.BinaryWriter): void; | ||||
|         serialize(w?: pb_1.BinaryWriter): Uint8Array | void { | ||||
|             const writer = w || new pb_1.BinaryWriter(); | ||||
|             if (this.id != 0) | ||||
|                 writer.writeInt64(1, this.id); | ||||
|             if (this.identity.length) | ||||
|                 writer.writeString(2, this.identity); | ||||
|             if (!w) | ||||
|                 return writer.getResultBuffer(); | ||||
|         } | ||||
|         static deserialize(bytes: Uint8Array | pb_1.BinaryReader): IdentRequest { | ||||
|             const reader = bytes instanceof pb_1.BinaryReader ? bytes : new pb_1.BinaryReader(bytes), message = new IdentRequest(); | ||||
|             while (reader.nextField()) { | ||||
|                 if (reader.isEndGroup()) | ||||
|                     break; | ||||
|                 switch (reader.getFieldNumber()) { | ||||
|                     case 1: | ||||
|                         message.id = reader.readInt64(); | ||||
|                         break; | ||||
|                     case 2: | ||||
|                         message.identity = reader.readString(); | ||||
|                         break; | ||||
|                     default: reader.skipField(); | ||||
|                 } | ||||
|             } | ||||
|             return message; | ||||
|         } | ||||
|         serializeBinary(): Uint8Array { | ||||
|             return this.serialize(); | ||||
|         } | ||||
|         static deserializeBinary(bytes: Uint8Array): IdentRequest { | ||||
|             return IdentRequest.deserialize(bytes); | ||||
|         } | ||||
|     } | ||||
|     export class VersionRequest extends pb_1.Message { | ||||
|         #one_of_decls: number[][] = []; | ||||
|         constructor(data?: any[] | { | ||||
|             version?: number; | ||||
|         }) { | ||||
|             super(); | ||||
|             pb_1.Message.initialize(this, Array.isArray(data) ? data : [], 0, -1, [], this.#one_of_decls); | ||||
|             if (!Array.isArray(data) && typeof data == "object") { | ||||
|                 if ("version" in data && data.version != undefined) { | ||||
|                     this.version = data.version; | ||||
|                 } | ||||
|             } | ||||
|         } | ||||
|         get version() { | ||||
|             return pb_1.Message.getFieldWithDefault(this, 1, 0) as number; | ||||
|         } | ||||
|         set version(value: number) { | ||||
|             pb_1.Message.setField(this, 1, value); | ||||
|         } | ||||
|         static fromObject(data: { | ||||
|             version?: number; | ||||
|         }): VersionRequest { | ||||
|             const message = new VersionRequest({}); | ||||
|             if (data.version != null) { | ||||
|                 message.version = data.version; | ||||
|             } | ||||
|             return message; | ||||
|         } | ||||
|         toObject() { | ||||
|             const data: { | ||||
|                 version?: number; | ||||
|             } = {}; | ||||
|             if (this.version != null) { | ||||
|                 data.version = this.version; | ||||
|             } | ||||
|             return data; | ||||
|         } | ||||
|         serialize(): Uint8Array; | ||||
|         serialize(w: pb_1.BinaryWriter): void; | ||||
|         serialize(w?: pb_1.BinaryWriter): Uint8Array | void { | ||||
|             const writer = w || new pb_1.BinaryWriter(); | ||||
|             if (this.version != 0) | ||||
|                 writer.writeInt64(1, this.version); | ||||
|             if (!w) | ||||
|                 return writer.getResultBuffer(); | ||||
|         } | ||||
|         static deserialize(bytes: Uint8Array | pb_1.BinaryReader): VersionRequest { | ||||
|             const reader = bytes instanceof pb_1.BinaryReader ? bytes : new pb_1.BinaryReader(bytes), message = new VersionRequest(); | ||||
|             while (reader.nextField()) { | ||||
|                 if (reader.isEndGroup()) | ||||
|                     break; | ||||
|                 switch (reader.getFieldNumber()) { | ||||
|                     case 1: | ||||
|                         message.version = reader.readInt64(); | ||||
|                         break; | ||||
|                     default: reader.skipField(); | ||||
|                 } | ||||
|             } | ||||
|             return message; | ||||
|         } | ||||
|         serializeBinary(): Uint8Array { | ||||
|             return this.serialize(); | ||||
|         } | ||||
|         static deserializeBinary(bytes: Uint8Array): VersionRequest { | ||||
|             return VersionRequest.deserialize(bytes); | ||||
|         } | ||||
|     } | ||||
|     export class SearchRequest extends pb_1.Message { | ||||
|         #one_of_decls: number[][] = []; | ||||
|         constructor(data?: any[] | { | ||||
|             keyword?: string; | ||||
|         }) { | ||||
|             super(); | ||||
|             pb_1.Message.initialize(this, Array.isArray(data) ? data : [], 0, -1, [], this.#one_of_decls); | ||||
|             if (!Array.isArray(data) && typeof data == "object") { | ||||
|                 if ("keyword" in data && data.keyword != undefined) { | ||||
|                     this.keyword = data.keyword; | ||||
|                 } | ||||
|             } | ||||
|         } | ||||
|         get keyword() { | ||||
|             return pb_1.Message.getFieldWithDefault(this, 1, "") as string; | ||||
|         } | ||||
|         set keyword(value: string) { | ||||
|             pb_1.Message.setField(this, 1, value); | ||||
|         } | ||||
|         static fromObject(data: { | ||||
|             keyword?: string; | ||||
|         }): SearchRequest { | ||||
|             const message = new SearchRequest({}); | ||||
|             if (data.keyword != null) { | ||||
|                 message.keyword = data.keyword; | ||||
|             } | ||||
|             return message; | ||||
|         } | ||||
|         toObject() { | ||||
|             const data: { | ||||
|                 keyword?: string; | ||||
|             } = {}; | ||||
|             if (this.keyword != null) { | ||||
|                 data.keyword = this.keyword; | ||||
|             } | ||||
|             return data; | ||||
|         } | ||||
|         serialize(): Uint8Array; | ||||
|         serialize(w: pb_1.BinaryWriter): void; | ||||
|         serialize(w?: pb_1.BinaryWriter): Uint8Array | void { | ||||
|             const writer = w || new pb_1.BinaryWriter(); | ||||
|             if (this.keyword.length) | ||||
|                 writer.writeString(1, this.keyword); | ||||
|             if (!w) | ||||
|                 return writer.getResultBuffer(); | ||||
|         } | ||||
|         static deserialize(bytes: Uint8Array | pb_1.BinaryReader): SearchRequest { | ||||
|             const reader = bytes instanceof pb_1.BinaryReader ? bytes : new pb_1.BinaryReader(bytes), message = new SearchRequest(); | ||||
|             while (reader.nextField()) { | ||||
|                 if (reader.isEndGroup()) | ||||
|                     break; | ||||
|                 switch (reader.getFieldNumber()) { | ||||
|                     case 1: | ||||
|                         message.keyword = reader.readString(); | ||||
|                         break; | ||||
|                     default: reader.skipField(); | ||||
|                 } | ||||
|             } | ||||
|             return message; | ||||
|         } | ||||
|         serializeBinary(): Uint8Array { | ||||
|             return this.serialize(); | ||||
|         } | ||||
|         static deserializeBinary(bytes: Uint8Array): SearchRequest { | ||||
|             return SearchRequest.deserialize(bytes); | ||||
|         } | ||||
|     } | ||||
|     export class StatusReply extends pb_1.Message { | ||||
|         #one_of_decls: number[][] = []; | ||||
|         constructor(data?: any[] | { | ||||
|             data?: string; | ||||
|             timeseq?: number; | ||||
|         }) { | ||||
|             super(); | ||||
|             pb_1.Message.initialize(this, Array.isArray(data) ? data : [], 0, -1, [], this.#one_of_decls); | ||||
|             if (!Array.isArray(data) && typeof data == "object") { | ||||
|                 if ("data" in data && data.data != undefined) { | ||||
|                     this.data = data.data; | ||||
|                 } | ||||
|                 if ("timeseq" in data && data.timeseq != undefined) { | ||||
|                     this.timeseq = data.timeseq; | ||||
|                 } | ||||
|             } | ||||
|         } | ||||
|         get data() { | ||||
|             return pb_1.Message.getFieldWithDefault(this, 1, "") as string; | ||||
|         } | ||||
|         set data(value: string) { | ||||
|             pb_1.Message.setField(this, 1, value); | ||||
|         } | ||||
|         get timeseq() { | ||||
|             return pb_1.Message.getFieldWithDefault(this, 2, 0) as number; | ||||
|         } | ||||
|         set timeseq(value: number) { | ||||
|             pb_1.Message.setField(this, 2, value); | ||||
|         } | ||||
|         static fromObject(data: { | ||||
|             data?: string; | ||||
|             timeseq?: number; | ||||
|         }): StatusReply { | ||||
|             const message = new StatusReply({}); | ||||
|             if (data.data != null) { | ||||
|                 message.data = data.data; | ||||
|             } | ||||
|             if (data.timeseq != null) { | ||||
|                 message.timeseq = data.timeseq; | ||||
|             } | ||||
|             return message; | ||||
|         } | ||||
|         toObject() { | ||||
|             const data: { | ||||
|                 data?: string; | ||||
|                 timeseq?: number; | ||||
|             } = {}; | ||||
|             if (this.data != null) { | ||||
|                 data.data = this.data; | ||||
|             } | ||||
|             if (this.timeseq != null) { | ||||
|                 data.timeseq = this.timeseq; | ||||
|             } | ||||
|             return data; | ||||
|         } | ||||
|         serialize(): Uint8Array; | ||||
|         serialize(w: pb_1.BinaryWriter): void; | ||||
|         serialize(w?: pb_1.BinaryWriter): Uint8Array | void { | ||||
|             const writer = w || new pb_1.BinaryWriter(); | ||||
|             if (this.data.length) | ||||
|                 writer.writeString(1, this.data); | ||||
|             if (this.timeseq != 0) | ||||
|                 writer.writeInt64(2, this.timeseq); | ||||
|             if (!w) | ||||
|                 return writer.getResultBuffer(); | ||||
|         } | ||||
|         static deserialize(bytes: Uint8Array | pb_1.BinaryReader): StatusReply { | ||||
|             const reader = bytes instanceof pb_1.BinaryReader ? bytes : new pb_1.BinaryReader(bytes), message = new StatusReply(); | ||||
|             while (reader.nextField()) { | ||||
|                 if (reader.isEndGroup()) | ||||
|                     break; | ||||
|                 switch (reader.getFieldNumber()) { | ||||
|                     case 1: | ||||
|                         message.data = reader.readString(); | ||||
|                         break; | ||||
|                     case 2: | ||||
|                         message.timeseq = reader.readInt64(); | ||||
|                         break; | ||||
|                     default: reader.skipField(); | ||||
|                 } | ||||
|             } | ||||
|             return message; | ||||
|         } | ||||
|         serializeBinary(): Uint8Array { | ||||
|             return this.serialize(); | ||||
|         } | ||||
|         static deserializeBinary(bytes: Uint8Array): StatusReply { | ||||
|             return StatusReply.deserialize(bytes); | ||||
|         } | ||||
|     } | ||||
|     export class Empty extends pb_1.Message { | ||||
|         #one_of_decls: number[][] = []; | ||||
|         constructor(data?: any[] | {}) { | ||||
|             super(); | ||||
|             pb_1.Message.initialize(this, Array.isArray(data) ? data : [], 0, -1, [], this.#one_of_decls); | ||||
|             if (!Array.isArray(data) && typeof data == "object") { } | ||||
|         } | ||||
|         static fromObject(data: {}): Empty { | ||||
|             const message = new Empty({}); | ||||
|             return message; | ||||
|         } | ||||
|         toObject() { | ||||
|             const data: {} = {}; | ||||
|             return data; | ||||
|         } | ||||
|         serialize(): Uint8Array; | ||||
|         serialize(w: pb_1.BinaryWriter): void; | ||||
|         serialize(w?: pb_1.BinaryWriter): Uint8Array | void { | ||||
|             const writer = w || new pb_1.BinaryWriter(); | ||||
|             if (!w) | ||||
|                 return writer.getResultBuffer(); | ||||
|         } | ||||
|         static deserialize(bytes: Uint8Array | pb_1.BinaryReader): Empty { | ||||
|             const reader = bytes instanceof pb_1.BinaryReader ? bytes : new pb_1.BinaryReader(bytes), message = new Empty(); | ||||
|             while (reader.nextField()) { | ||||
|                 if (reader.isEndGroup()) | ||||
|                     break; | ||||
|                 switch (reader.getFieldNumber()) { | ||||
|                     default: reader.skipField(); | ||||
|                 } | ||||
|             } | ||||
|             return message; | ||||
|         } | ||||
|         serializeBinary(): Uint8Array { | ||||
|             return this.serialize(); | ||||
|         } | ||||
|         static deserializeBinary(bytes: Uint8Array): Empty { | ||||
|             return Empty.deserialize(bytes); | ||||
|         } | ||||
|     } | ||||
| } | ||||
										
											
												File diff suppressed because it is too large
												Load Diff
											
										
									
								
							
							
								
								
									
										2378
									
								
								typescript/wallet.ts
								
								
								
								
							
							
						
						
									
										2378
									
								
								typescript/wallet.ts
								
								
								
								
							
										
											
												File diff suppressed because it is too large
												Load Diff
											
										
									
								
							
							
								
								
									
										1788
									
								
								typescript/wechat.ts
								
								
								
								
							
							
						
						
									
										1788
									
								
								typescript/wechat.ts
								
								
								
								
							
										
											
												File diff suppressed because it is too large
												Load Diff
											
										
									
								
							
		Loading…
	
		Reference in New Issue