代码拉取完成,页面将自动刷新
// Code generated by goctl. DO NOT EDIT.
// goctl 1.7.2
// Source: orders.proto
package refunds
import (
"context"
"gitee.com/lzzandlyx/orders/orders"
"github.com/zeromicro/go-zero/zrpc"
"google.golang.org/grpc"
)
type (
CreateOrderRequest = orders.CreateOrderRequest
CreateOrderResponse = orders.CreateOrderResponse
CreateRefundRecordsRequest = orders.CreateRefundRecordsRequest
CreateRefundRecordsResponse = orders.CreateRefundRecordsResponse
GetOrderByOrderIdRequest = orders.GetOrderByOrderIdRequest
GetOrderByOrderIdResponse = orders.GetOrderByOrderIdResponse
GetOrderBySnRequest = orders.GetOrderBySnRequest
GetOrderBySnResponse = orders.GetOrderBySnResponse
GetOrderStatusBySnRequest = orders.GetOrderStatusBySnRequest
GetOrderStatusBySnResponse = orders.GetOrderStatusBySnResponse
GetOrdersByStatusRequest = orders.GetOrdersByStatusRequest
GetOrdersByStatusResponse = orders.GetOrdersByStatusResponse
GetRefundRecordByRefundIdRequest = orders.GetRefundRecordByRefundIdRequest
GetRefundRecordByRefundIdResponse = orders.GetRefundRecordByRefundIdResponse
GetRefundRecordsRequest = orders.GetRefundRecordsRequest
GetRefundRecordsResponse = orders.GetRefundRecordsResponse
OrderAddr = orders.OrderAddr
OrderInfo = orders.OrderInfo
OrderItemInfo = orders.OrderItemInfo
RefundRecords = orders.RefundRecords
UpdOrderPaymentStatusRequest = orders.UpdOrderPaymentStatusRequest
UpdOrderPaymentStatusResponse = orders.UpdOrderPaymentStatusResponse
UpdateOrderBySnRequest = orders.UpdateOrderBySnRequest
UpdateOrderBySnResponse = orders.UpdateOrderBySnResponse
Refunds interface {
CreateRefundRecords(ctx context.Context, in *CreateRefundRecordsRequest, opts ...grpc.CallOption) (*CreateRefundRecordsResponse, error)
RollbackCreateRefundRecords(ctx context.Context, in *CreateRefundRecordsRequest, opts ...grpc.CallOption) (*CreateRefundRecordsResponse, error)
GetRefundRecords(ctx context.Context, in *GetRefundRecordsRequest, opts ...grpc.CallOption) (*GetRefundRecordsResponse, error)
GetRefundRecordByRefundId(ctx context.Context, in *GetRefundRecordByRefundIdRequest, opts ...grpc.CallOption) (*GetRefundRecordByRefundIdResponse, error)
}
defaultRefunds struct {
cli zrpc.Client
}
)
func NewRefunds(cli zrpc.Client) Refunds {
return &defaultRefunds{
cli: cli,
}
}
func (m *defaultRefunds) CreateRefundRecords(ctx context.Context, in *CreateRefundRecordsRequest, opts ...grpc.CallOption) (*CreateRefundRecordsResponse, error) {
client := orders.NewRefundsClient(m.cli.Conn())
return client.CreateRefundRecords(ctx, in, opts...)
}
func (m *defaultRefunds) RollbackCreateRefundRecords(ctx context.Context, in *CreateRefundRecordsRequest, opts ...grpc.CallOption) (*CreateRefundRecordsResponse, error) {
client := orders.NewRefundsClient(m.cli.Conn())
return client.RollbackCreateRefundRecords(ctx, in, opts...)
}
func (m *defaultRefunds) GetRefundRecords(ctx context.Context, in *GetRefundRecordsRequest, opts ...grpc.CallOption) (*GetRefundRecordsResponse, error) {
client := orders.NewRefundsClient(m.cli.Conn())
return client.GetRefundRecords(ctx, in, opts...)
}
func (m *defaultRefunds) GetRefundRecordByRefundId(ctx context.Context, in *GetRefundRecordByRefundIdRequest, opts ...grpc.CallOption) (*GetRefundRecordByRefundIdResponse, error) {
client := orders.NewRefundsClient(m.cli.Conn())
return client.GetRefundRecordByRefundId(ctx, in, opts...)
}
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。