3 Star 1 Fork 0

lzz/orders

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
refunds.go 3.59 KB
一键复制 编辑 原始数据 按行查看 历史
yuanhaijun 提交于 2024-11-01 10:58 . 新增 退款回滚
// 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...)
}
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Go
1
https://gitee.com/lzzandlyx/orders.git
git@gitee.com:lzzandlyx/orders.git
lzzandlyx
orders
orders
bb9100882654

搜索帮助