feat: import services and standardize Go 1.26.5

This commit is contained in:
2026-08-09 10:43:45 +08:00
parent 689c74b28f
commit 86024fa81d
1456 changed files with 220765 additions and 2 deletions

View File

@@ -0,0 +1,45 @@
// Code generated by protoc-gen-slc. DO NOT EDIT.
package server
import (
"context"
"git.apinb.com/bsm-finance/wallet/internal/logic/payment"
pb "git.apinb.com/bsm-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)
}