transfer_middleware/cmd/rpc/internal/server/transferServer.go

74 lines
2.6 KiB
Go
Raw Normal View History

2024-06-07 11:11:04 +08:00
// Code generated by goctl. DO NOT EDIT.
// Source: transfer.proto
package server
import (
"context"
"trasfer_middleware/cmd/rpc/internal/logic"
"trasfer_middleware/cmd/rpc/internal/svc"
"trasfer_middleware/cmd/rpc/pb/transfer"
)
type TransferServer struct {
svcCtx *svc.ServiceContext
transfer.UnimplementedTransferServer
}
func NewTransferServer(svcCtx *svc.ServiceContext) *TransferServer {
return &TransferServer{
svcCtx: svcCtx,
}
}
func (s *TransferServer) ZltxOrderRecharge(ctx context.Context, in *transfer.ZltxOrderRechargeReq) (*transfer.DefaultRes, error) {
l := logic.NewZltxOrderRechargeLogic(ctx, s.svcCtx)
return l.ZltxOrderRecharge(in)
}
func (s *TransferServer) ZltxOrderRechargeQuery(ctx context.Context, in *transfer.ZltxOrderRechargeQueryReq) (*transfer.ZltxOrderRechargeQueryRes, error) {
l := logic.NewZltxOrderRechargeQueryLogic(ctx, s.svcCtx)
return l.ZltxOrderRechargeQuery(in)
}
func (s *TransferServer) ZltxOrderCard(ctx context.Context, in *transfer.ZltxOrderCardReq) (*transfer.DefaultRes, error) {
l := logic.NewZltxOrderCardLogic(ctx, s.svcCtx)
return l.ZltxOrderCard(in)
}
func (s *TransferServer) ZltxOrderCardQuery(ctx context.Context, in *transfer.ZltxOrderCardQueryReq) (*transfer.ZltxOrderCardQueryRes, error) {
l := logic.NewZltxOrderCardQueryLogic(ctx, s.svcCtx)
return l.ZltxOrderCardQuery(in)
}
func (s *TransferServer) ZltxOrderSms(ctx context.Context, in *transfer.ZltxOrderSmsReq) (*transfer.ZltxOrderSmsRes, error) {
l := logic.NewZltxOrderSmsLogic(ctx, s.svcCtx)
return l.ZltxOrderSms(in)
}
func (s *TransferServer) ZltxRechargeInfo(ctx context.Context, in *transfer.DefaultReq) (*transfer.ZltxRechargeInfoRes, error) {
l := logic.NewZltxRechargeInfoLogic(ctx, s.svcCtx)
return l.ZltxRechargeInfo(in)
}
func (s *TransferServer) ZltxRechargeProduct(ctx context.Context, in *transfer.DefaultReq) (*transfer.ZltxRechargeProductRes, error) {
l := logic.NewZltxRechargeProductLogic(ctx, s.svcCtx)
return l.ZltxRechargeProduct(in)
}
func (s *TransferServer) MarketKeySend(ctx context.Context, in *transfer.MarketKeySendReq) (*transfer.MarketKeySendRes, error) {
l := logic.NewMarketKeySendLogic(ctx, s.svcCtx)
return l.MarketKeySend(in)
}
func (s *TransferServer) MarketKeyDiscard(ctx context.Context, in *transfer.MarketKeyDiscardReq) (*transfer.MarketKeyDiscardRes, error) {
l := logic.NewMarketKeyDiscardLogic(ctx, s.svcCtx)
return l.MarketKeyDiscard(in)
}
func (s *TransferServer) MarketQuery(ctx context.Context, in *transfer.MarketQueryReq) (*transfer.MarketQueryRes, error) {
l := logic.NewMarketQueryLogic(ctx, s.svcCtx)
return l.MarketQuery(in)
}