2026-08-09 10:43:45 +08:00
|
|
|
// Code generated by protoc-gen-slc. DO NOT EDIT.
|
|
|
|
|
package server
|
|
|
|
|
|
|
|
|
|
import (
|
|
|
|
|
"context"
|
2026-08-09 12:41:08 +08:00
|
|
|
"bsm/full/module/finance/wallet/internal/logic/alipay"
|
|
|
|
|
pb "bsm/full/module/finance/wallet/pb"
|
2026-08-09 10:43:45 +08:00
|
|
|
)
|
|
|
|
|
|
|
|
|
|
type AlipayServer struct {
|
|
|
|
|
pb.UnimplementedAlipayServer
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func NewAlipayServer() *AlipayServer {
|
|
|
|
|
return &AlipayServer{}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// 支付宝wap支付
|
|
|
|
|
func (s *AlipayServer) WapPay(ctx context.Context, in *pb.AlipayTradeWapPayRequest) (*pb.AlipayTradeWapPayReply, error) {
|
|
|
|
|
return alipay.WapPay(ctx, in)
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// 支付宝电脑网站支付
|
|
|
|
|
func (s *AlipayServer) PagePay(ctx context.Context, in *pb.AlipayTradePagePayRequest) (*pb.AlipayTradePagePayReply, error) {
|
|
|
|
|
return alipay.PagePay(ctx, in)
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// 支付宝APP支付
|
|
|
|
|
func (s *AlipayServer) AppPay(ctx context.Context, in *pb.AlipayTradeAppPayRequest) (*pb.AlipayTradeAppPayReply, error) {
|
|
|
|
|
return alipay.AppPay(ctx, in)
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// 支付宝转账到个人支付宝账户
|
|
|
|
|
func (s *AlipayServer) Transfer(ctx context.Context, in *pb.AlipayUniTransferRequest) (*pb.AlipayUniTransferReply, error) {
|
|
|
|
|
return alipay.Transfer(ctx, in)
|
|
|
|
|
}
|