2026-08-09 10:43:45 +08:00
// Code generated by protoc-gen-go-grpc. DO NOT EDIT.
// versions:
2026-08-09 15:10:19 +08:00
// - protoc-gen-go-grpc v1.6.2
2026-08-09 18:40:36 +08:00
// - protoc v7.35.1
2026-08-09 15:10:19 +08:00
// source: module/finance/wallet/proto/alipay.proto
2026-08-09 10:43:45 +08:00
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 {
2026-08-09 15:10:19 +08:00
// 支付宝wap支付
2026-08-09 10:43:45 +08:00
WapPay ( ctx context . Context , in * AlipayTradeWapPayRequest , opts ... grpc . CallOption ) ( * AlipayTradeWapPayReply , error )
2026-08-09 15:10:19 +08:00
// 支付宝电脑网站支付
2026-08-09 10:43:45 +08:00
PagePay ( ctx context . Context , in * AlipayTradePagePayRequest , opts ... grpc . CallOption ) ( * AlipayTradePagePayReply , error )
2026-08-09 15:10:19 +08:00
// 支付宝APP支付
2026-08-09 10:43:45 +08:00
AppPay ( ctx context . Context , in * AlipayTradeAppPayRequest , opts ... grpc . CallOption ) ( * AlipayTradeAppPayReply , error )
2026-08-09 15:10:19 +08:00
// 支付宝转账到个人支付宝账户
2026-08-09 10:43:45 +08:00
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.
2026-08-09 15:10:19 +08:00
// All implementations should embed UnimplementedAlipayServer
2026-08-09 10:43:45 +08:00
// for forward compatibility.
type AlipayServer interface {
2026-08-09 15:10:19 +08:00
// 支付宝wap支付
2026-08-09 10:43:45 +08:00
WapPay ( context . Context , * AlipayTradeWapPayRequest ) ( * AlipayTradeWapPayReply , error )
2026-08-09 15:10:19 +08:00
// 支付宝电脑网站支付
2026-08-09 10:43:45 +08:00
PagePay ( context . Context , * AlipayTradePagePayRequest ) ( * AlipayTradePagePayReply , error )
2026-08-09 15:10:19 +08:00
// 支付宝APP支付
2026-08-09 10:43:45 +08:00
AppPay ( context . Context , * AlipayTradeAppPayRequest ) ( * AlipayTradeAppPayReply , error )
2026-08-09 15:10:19 +08:00
// 支付宝转账到个人支付宝账户
2026-08-09 10:43:45 +08:00
Transfer ( context . Context , * AlipayUniTransferRequest ) ( * AlipayUniTransferReply , error )
}
2026-08-09 15:10:19 +08:00
// UnimplementedAlipayServer should be embedded to have
2026-08-09 10:43:45 +08:00
// 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 ) {
2026-08-09 15:10:19 +08:00
return nil , status . Error ( codes . Unimplemented , "method WapPay not implemented" )
2026-08-09 10:43:45 +08:00
}
func ( UnimplementedAlipayServer ) PagePay ( context . Context , * AlipayTradePagePayRequest ) ( * AlipayTradePagePayReply , error ) {
2026-08-09 15:10:19 +08:00
return nil , status . Error ( codes . Unimplemented , "method PagePay not implemented" )
2026-08-09 10:43:45 +08:00
}
func ( UnimplementedAlipayServer ) AppPay ( context . Context , * AlipayTradeAppPayRequest ) ( * AlipayTradeAppPayReply , error ) {
2026-08-09 15:10:19 +08:00
return nil , status . Error ( codes . Unimplemented , "method AppPay not implemented" )
2026-08-09 10:43:45 +08:00
}
func ( UnimplementedAlipayServer ) Transfer ( context . Context , * AlipayUniTransferRequest ) ( * AlipayUniTransferReply , error ) {
2026-08-09 15:10:19 +08:00
return nil , status . Error ( codes . Unimplemented , "method Transfer not implemented" )
2026-08-09 10:43:45 +08:00
}
2026-08-09 15:10:19 +08:00
func ( UnimplementedAlipayServer ) testEmbeddedByValue ( ) { }
2026-08-09 10:43:45 +08:00
// 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 ) {
2026-08-09 15:10:19 +08:00
// If the following call panics, it indicates UnimplementedAlipayServer was
2026-08-09 10:43:45 +08:00
// 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 { } ,
2026-08-09 15:10:19 +08:00
Metadata : "module/finance/wallet/proto/alipay.proto" ,
2026-08-09 10:43:45 +08:00
}