// Code generated by protoc-gen-slc. DO NOT EDIT.
package server

import (
	"context"
	"bsm/full/module/finance/wallet/internal/logic/payment"
	pb "bsm/full/module/finance/wallet/pb"
)

type PaymentServer struct {
	pb.UnimplementedPaymentServer
}

func NewPaymentServer() *PaymentServer {
	return &PaymentServer{}
}

func (s *PaymentServer) Hello(ctx context.Context, in *pb.Empty) (*pb.PaymentReply, error) {
	return payment.Hello(ctx, in)
}

// 获取平台支持的支付网关
func (s *PaymentServer) Way(ctx context.Context, in *pb.WayRequest) (*pb.WayReply, error) {
	return payment.Way(ctx, in)
}

// 获取支付的详情
func (s *PaymentServer) Get(ctx context.Context, in *pb.IdentRequest) (*pb.PaymentItem, error) {
	return payment.Get(ctx, in)
}

// 支付-电商订单
func (s *PaymentServer) ByOrder(ctx context.Context, in *pb.OrderRequest) (*pb.PaymentReply, error) {
	return payment.ByOrder(ctx, in)
}

// 支付-充值
func (s *PaymentServer) ByCharge(ctx context.Context, in *pb.ChargeRequest) (*pb.PaymentReply, error) {
	return payment.ByCharge(ctx, in)
}

// 回调更新支付的结果和状态
func (s *PaymentServer) Callback(ctx context.Context, in *pb.CallbackRequest) (*pb.StatusReply, error) {
	return payment.Callback(ctx, in)
}
