128 lines
6.2 KiB
Go
128 lines
6.2 KiB
Go
|
// Code generated by goctl. DO NOT EDIT.
|
||
|
// Source: transfer.proto
|
||
|
|
||
|
package transferClient
|
||
|
|
||
|
import (
|
||
|
"context"
|
||
|
|
||
|
"rs/rpc/transfer"
|
||
|
|
||
|
"github.com/zeromicro/go-zero/zrpc"
|
||
|
"google.golang.org/grpc"
|
||
|
)
|
||
|
|
||
|
type (
|
||
|
DefaultReq = transfer.DefaultReq
|
||
|
DefaultRes = transfer.DefaultRes
|
||
|
MarketKeyDiscardReq = transfer.MarketKeyDiscardReq
|
||
|
MarketKeyDiscardRes = transfer.MarketKeyDiscardRes
|
||
|
MarketKeyDiscardRes_Data = transfer.MarketKeyDiscardRes_Data
|
||
|
MarketKeySendReq = transfer.MarketKeySendReq
|
||
|
MarketKeySendRes = transfer.MarketKeySendRes
|
||
|
MarketKeySendRes_Data = transfer.MarketKeySendRes_Data
|
||
|
MarketQueryReq = transfer.MarketQueryReq
|
||
|
MarketQueryRes = transfer.MarketQueryRes
|
||
|
MarketQueryRes_Data = transfer.MarketQueryRes_Data
|
||
|
RsCouponGrantReq = transfer.RsCouponGrantReq
|
||
|
RsCouponGrantRes = transfer.RsCouponGrantRes
|
||
|
RsCouponGrantRes_Data = transfer.RsCouponGrantRes_Data
|
||
|
RsCouponGrantRes_Data_VoucherInfo = transfer.RsCouponGrantRes_Data_VoucherInfo
|
||
|
ZltxOrderCardQueryReq = transfer.ZltxOrderCardQueryReq
|
||
|
ZltxOrderCardQueryRes = transfer.ZltxOrderCardQueryRes
|
||
|
ZltxOrderCardReq = transfer.ZltxOrderCardReq
|
||
|
ZltxOrderRechargeQueryReq = transfer.ZltxOrderRechargeQueryReq
|
||
|
ZltxOrderRechargeQueryRes = transfer.ZltxOrderRechargeQueryRes
|
||
|
ZltxOrderRechargeReq = transfer.ZltxOrderRechargeReq
|
||
|
ZltxOrderSmsReq = transfer.ZltxOrderSmsReq
|
||
|
ZltxOrderSmsRes = transfer.ZltxOrderSmsRes
|
||
|
ZltxRechargeInfoRes = transfer.ZltxRechargeInfoRes
|
||
|
ZltxRechargeProductRes = transfer.ZltxRechargeProductRes
|
||
|
ZltxRechargeProductRes_Product = transfer.ZltxRechargeProductRes_Product
|
||
|
|
||
|
Transfer interface {
|
||
|
ZltxOrderRecharge(ctx context.Context, in *ZltxOrderRechargeReq, opts ...grpc.CallOption) (*DefaultRes, error)
|
||
|
ZltxOrderRechargeQuery(ctx context.Context, in *ZltxOrderRechargeQueryReq, opts ...grpc.CallOption) (*ZltxOrderRechargeQueryRes, error)
|
||
|
ZltxOrderCard(ctx context.Context, in *ZltxOrderCardReq, opts ...grpc.CallOption) (*DefaultRes, error)
|
||
|
ZltxOrderCardQuery(ctx context.Context, in *ZltxOrderCardQueryReq, opts ...grpc.CallOption) (*ZltxOrderCardQueryRes, error)
|
||
|
ZltxOrderSms(ctx context.Context, in *ZltxOrderSmsReq, opts ...grpc.CallOption) (*ZltxOrderSmsRes, error)
|
||
|
ZltxRechargeInfo(ctx context.Context, in *DefaultReq, opts ...grpc.CallOption) (*ZltxRechargeInfoRes, error)
|
||
|
ZltxRechargeProduct(ctx context.Context, in *DefaultReq, opts ...grpc.CallOption) (*ZltxRechargeProductRes, error)
|
||
|
ZltxRsMiXue(ctx context.Context, in *RsCouponGrantReq, opts ...grpc.CallOption) (*RsCouponGrantRes, error)
|
||
|
MarketKeySend(ctx context.Context, in *MarketKeySendReq, opts ...grpc.CallOption) (*MarketKeySendRes, error)
|
||
|
MarketKeyDiscard(ctx context.Context, in *MarketKeyDiscardReq, opts ...grpc.CallOption) (*MarketKeyDiscardRes, error)
|
||
|
MarketQuery(ctx context.Context, in *MarketQueryReq, opts ...grpc.CallOption) (*MarketQueryRes, error)
|
||
|
RsCouponGrant(ctx context.Context, in *RsCouponGrantReq, opts ...grpc.CallOption) (*RsCouponGrantRes, error)
|
||
|
}
|
||
|
|
||
|
defaultTransfer struct {
|
||
|
cli zrpc.Client
|
||
|
}
|
||
|
)
|
||
|
|
||
|
func NewTransfer(cli zrpc.Client) Transfer {
|
||
|
return &defaultTransfer{
|
||
|
cli: cli,
|
||
|
}
|
||
|
}
|
||
|
|
||
|
func (m *defaultTransfer) ZltxOrderRecharge(ctx context.Context, in *ZltxOrderRechargeReq, opts ...grpc.CallOption) (*DefaultRes, error) {
|
||
|
client := transfer.NewTransferClient(m.cli.Conn())
|
||
|
return client.ZltxOrderRecharge(ctx, in, opts...)
|
||
|
}
|
||
|
|
||
|
func (m *defaultTransfer) ZltxOrderRechargeQuery(ctx context.Context, in *ZltxOrderRechargeQueryReq, opts ...grpc.CallOption) (*ZltxOrderRechargeQueryRes, error) {
|
||
|
client := transfer.NewTransferClient(m.cli.Conn())
|
||
|
return client.ZltxOrderRechargeQuery(ctx, in, opts...)
|
||
|
}
|
||
|
|
||
|
func (m *defaultTransfer) ZltxOrderCard(ctx context.Context, in *ZltxOrderCardReq, opts ...grpc.CallOption) (*DefaultRes, error) {
|
||
|
client := transfer.NewTransferClient(m.cli.Conn())
|
||
|
return client.ZltxOrderCard(ctx, in, opts...)
|
||
|
}
|
||
|
|
||
|
func (m *defaultTransfer) ZltxOrderCardQuery(ctx context.Context, in *ZltxOrderCardQueryReq, opts ...grpc.CallOption) (*ZltxOrderCardQueryRes, error) {
|
||
|
client := transfer.NewTransferClient(m.cli.Conn())
|
||
|
return client.ZltxOrderCardQuery(ctx, in, opts...)
|
||
|
}
|
||
|
|
||
|
func (m *defaultTransfer) ZltxOrderSms(ctx context.Context, in *ZltxOrderSmsReq, opts ...grpc.CallOption) (*ZltxOrderSmsRes, error) {
|
||
|
client := transfer.NewTransferClient(m.cli.Conn())
|
||
|
return client.ZltxOrderSms(ctx, in, opts...)
|
||
|
}
|
||
|
|
||
|
func (m *defaultTransfer) ZltxRechargeInfo(ctx context.Context, in *DefaultReq, opts ...grpc.CallOption) (*ZltxRechargeInfoRes, error) {
|
||
|
client := transfer.NewTransferClient(m.cli.Conn())
|
||
|
return client.ZltxRechargeInfo(ctx, in, opts...)
|
||
|
}
|
||
|
|
||
|
func (m *defaultTransfer) ZltxRechargeProduct(ctx context.Context, in *DefaultReq, opts ...grpc.CallOption) (*ZltxRechargeProductRes, error) {
|
||
|
client := transfer.NewTransferClient(m.cli.Conn())
|
||
|
return client.ZltxRechargeProduct(ctx, in, opts...)
|
||
|
}
|
||
|
|
||
|
func (m *defaultTransfer) ZltxRsMiXue(ctx context.Context, in *RsCouponGrantReq, opts ...grpc.CallOption) (*RsCouponGrantRes, error) {
|
||
|
client := transfer.NewTransferClient(m.cli.Conn())
|
||
|
return client.ZltxRsMiXue(ctx, in, opts...)
|
||
|
}
|
||
|
|
||
|
func (m *defaultTransfer) MarketKeySend(ctx context.Context, in *MarketKeySendReq, opts ...grpc.CallOption) (*MarketKeySendRes, error) {
|
||
|
client := transfer.NewTransferClient(m.cli.Conn())
|
||
|
return client.MarketKeySend(ctx, in, opts...)
|
||
|
}
|
||
|
|
||
|
func (m *defaultTransfer) MarketKeyDiscard(ctx context.Context, in *MarketKeyDiscardReq, opts ...grpc.CallOption) (*MarketKeyDiscardRes, error) {
|
||
|
client := transfer.NewTransferClient(m.cli.Conn())
|
||
|
return client.MarketKeyDiscard(ctx, in, opts...)
|
||
|
}
|
||
|
|
||
|
func (m *defaultTransfer) MarketQuery(ctx context.Context, in *MarketQueryReq, opts ...grpc.CallOption) (*MarketQueryRes, error) {
|
||
|
client := transfer.NewTransferClient(m.cli.Conn())
|
||
|
return client.MarketQuery(ctx, in, opts...)
|
||
|
}
|
||
|
|
||
|
func (m *defaultTransfer) RsCouponGrant(ctx context.Context, in *RsCouponGrantReq, opts ...grpc.CallOption) (*RsCouponGrantRes, error) {
|
||
|
client := transfer.NewTransferClient(m.cli.Conn())
|
||
|
return client.RsCouponGrant(ctx, in, opts...)
|
||
|
}
|