refactor: centralize protobuf and remove go-zero
This commit is contained in:
@@ -1,8 +1,8 @@
|
||||
// Code generated by protoc-gen-go-grpc. DO NOT EDIT.
|
||||
// versions:
|
||||
// - protoc-gen-go-grpc v1.5.1
|
||||
// - protoc (unknown)
|
||||
// source: alipay.proto
|
||||
// - protoc-gen-go-grpc v1.6.2
|
||||
// - protoc v7.35.0
|
||||
// source: module/finance/wallet/proto/alipay.proto
|
||||
|
||||
package wallet
|
||||
|
||||
@@ -29,13 +29,13 @@ const (
|
||||
//
|
||||
// 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支付
|
||||
// 支付宝wap支付
|
||||
WapPay(ctx context.Context, in *AlipayTradeWapPayRequest, opts ...grpc.CallOption) (*AlipayTradeWapPayReply, error)
|
||||
//支付宝电脑网站支付
|
||||
// 支付宝电脑网站支付
|
||||
PagePay(ctx context.Context, in *AlipayTradePagePayRequest, opts ...grpc.CallOption) (*AlipayTradePagePayReply, error)
|
||||
//支付宝APP支付
|
||||
// 支付宝APP支付
|
||||
AppPay(ctx context.Context, in *AlipayTradeAppPayRequest, opts ...grpc.CallOption) (*AlipayTradeAppPayReply, error)
|
||||
//支付宝转账到个人支付宝账户
|
||||
// 支付宝转账到个人支付宝账户
|
||||
Transfer(ctx context.Context, in *AlipayUniTransferRequest, opts ...grpc.CallOption) (*AlipayUniTransferReply, error)
|
||||
}
|
||||
|
||||
@@ -88,21 +88,20 @@ func (c *alipayClient) Transfer(ctx context.Context, in *AlipayUniTransferReques
|
||||
}
|
||||
|
||||
// AlipayServer is the server API for Alipay service.
|
||||
// All implementations must embed UnimplementedAlipayServer
|
||||
// All implementations should embed UnimplementedAlipayServer
|
||||
// for forward compatibility.
|
||||
type AlipayServer interface {
|
||||
//支付宝wap支付
|
||||
// 支付宝wap支付
|
||||
WapPay(context.Context, *AlipayTradeWapPayRequest) (*AlipayTradeWapPayReply, error)
|
||||
//支付宝电脑网站支付
|
||||
// 支付宝电脑网站支付
|
||||
PagePay(context.Context, *AlipayTradePagePayRequest) (*AlipayTradePagePayReply, error)
|
||||
//支付宝APP支付
|
||||
// 支付宝APP支付
|
||||
AppPay(context.Context, *AlipayTradeAppPayRequest) (*AlipayTradeAppPayReply, error)
|
||||
//支付宝转账到个人支付宝账户
|
||||
// 支付宝转账到个人支付宝账户
|
||||
Transfer(context.Context, *AlipayUniTransferRequest) (*AlipayUniTransferReply, error)
|
||||
mustEmbedUnimplementedAlipayServer()
|
||||
}
|
||||
|
||||
// UnimplementedAlipayServer must be embedded to have
|
||||
// UnimplementedAlipayServer should be embedded to have
|
||||
// forward compatible implementations.
|
||||
//
|
||||
// NOTE: this should be embedded by value instead of pointer to avoid a nil
|
||||
@@ -110,19 +109,18 @@ type AlipayServer interface {
|
||||
type UnimplementedAlipayServer struct{}
|
||||
|
||||
func (UnimplementedAlipayServer) WapPay(context.Context, *AlipayTradeWapPayRequest) (*AlipayTradeWapPayReply, error) {
|
||||
return nil, status.Errorf(codes.Unimplemented, "method WapPay not implemented")
|
||||
return nil, status.Error(codes.Unimplemented, "method WapPay not implemented")
|
||||
}
|
||||
func (UnimplementedAlipayServer) PagePay(context.Context, *AlipayTradePagePayRequest) (*AlipayTradePagePayReply, error) {
|
||||
return nil, status.Errorf(codes.Unimplemented, "method PagePay not implemented")
|
||||
return nil, status.Error(codes.Unimplemented, "method PagePay not implemented")
|
||||
}
|
||||
func (UnimplementedAlipayServer) AppPay(context.Context, *AlipayTradeAppPayRequest) (*AlipayTradeAppPayReply, error) {
|
||||
return nil, status.Errorf(codes.Unimplemented, "method AppPay not implemented")
|
||||
return nil, status.Error(codes.Unimplemented, "method AppPay not implemented")
|
||||
}
|
||||
func (UnimplementedAlipayServer) Transfer(context.Context, *AlipayUniTransferRequest) (*AlipayUniTransferReply, error) {
|
||||
return nil, status.Errorf(codes.Unimplemented, "method Transfer not implemented")
|
||||
return nil, status.Error(codes.Unimplemented, "method Transfer not implemented")
|
||||
}
|
||||
func (UnimplementedAlipayServer) mustEmbedUnimplementedAlipayServer() {}
|
||||
func (UnimplementedAlipayServer) testEmbeddedByValue() {}
|
||||
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
|
||||
@@ -132,7 +130,7 @@ type UnsafeAlipayServer interface {
|
||||
}
|
||||
|
||||
func RegisterAlipayServer(s grpc.ServiceRegistrar, srv AlipayServer) {
|
||||
// If the following call pancis, it indicates UnimplementedAlipayServer was
|
||||
// If the following call panics, 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.
|
||||
@@ -239,5 +237,5 @@ var Alipay_ServiceDesc = grpc.ServiceDesc{
|
||||
},
|
||||
},
|
||||
Streams: []grpc.StreamDesc{},
|
||||
Metadata: "alipay.proto",
|
||||
Metadata: "module/finance/wallet/proto/alipay.proto",
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user