Documentation ¶
Index ¶
- Constants
- Variables
- func RegisterOrdersServer(s grpc.ServiceRegistrar, srv OrdersServer)
- func RegisterRefundsServer(s grpc.ServiceRegistrar, srv RefundsServer)
- type CreateOrderRequest
- func (*CreateOrderRequest) Descriptor() ([]byte, []int)deprecated
- func (x *CreateOrderRequest) GetOrderInfo() *OrderInfo
- func (*CreateOrderRequest) ProtoMessage()
- func (x *CreateOrderRequest) ProtoReflect() protoreflect.Message
- func (x *CreateOrderRequest) Reset()
- func (x *CreateOrderRequest) String() string
- type CreateOrderResponse
- func (*CreateOrderResponse) Descriptor() ([]byte, []int)deprecated
- func (x *CreateOrderResponse) GetOrderId() int64
- func (*CreateOrderResponse) ProtoMessage()
- func (x *CreateOrderResponse) ProtoReflect() protoreflect.Message
- func (x *CreateOrderResponse) Reset()
- func (x *CreateOrderResponse) String() string
- type CreateRefundRecordsRequest
- func (*CreateRefundRecordsRequest) Descriptor() ([]byte, []int)deprecated
- func (x *CreateRefundRecordsRequest) GetRefundRecords() *RefundRecords
- func (*CreateRefundRecordsRequest) ProtoMessage()
- func (x *CreateRefundRecordsRequest) ProtoReflect() protoreflect.Message
- func (x *CreateRefundRecordsRequest) Reset()
- func (x *CreateRefundRecordsRequest) String() string
- type CreateRefundRecordsResponse
- func (*CreateRefundRecordsResponse) Descriptor() ([]byte, []int)deprecated
- func (x *CreateRefundRecordsResponse) GetRefundRecords() *RefundRecords
- func (*CreateRefundRecordsResponse) ProtoMessage()
- func (x *CreateRefundRecordsResponse) ProtoReflect() protoreflect.Message
- func (x *CreateRefundRecordsResponse) Reset()
- func (x *CreateRefundRecordsResponse) String() string
- type GetOrderByOrderIdRequest
- func (*GetOrderByOrderIdRequest) Descriptor() ([]byte, []int)deprecated
- func (x *GetOrderByOrderIdRequest) GetOrderId() int64
- func (*GetOrderByOrderIdRequest) ProtoMessage()
- func (x *GetOrderByOrderIdRequest) ProtoReflect() protoreflect.Message
- func (x *GetOrderByOrderIdRequest) Reset()
- func (x *GetOrderByOrderIdRequest) String() string
- type GetOrderByOrderIdResponse
- func (*GetOrderByOrderIdResponse) Descriptor() ([]byte, []int)deprecated
- func (x *GetOrderByOrderIdResponse) GetOrderInfo() *OrderInfo
- func (*GetOrderByOrderIdResponse) ProtoMessage()
- func (x *GetOrderByOrderIdResponse) ProtoReflect() protoreflect.Message
- func (x *GetOrderByOrderIdResponse) Reset()
- func (x *GetOrderByOrderIdResponse) String() string
- type GetOrderBySnRequest
- func (*GetOrderBySnRequest) Descriptor() ([]byte, []int)deprecated
- func (x *GetOrderBySnRequest) GetSn() string
- func (*GetOrderBySnRequest) ProtoMessage()
- func (x *GetOrderBySnRequest) ProtoReflect() protoreflect.Message
- func (x *GetOrderBySnRequest) Reset()
- func (x *GetOrderBySnRequest) String() string
- type GetOrderBySnResponse
- func (*GetOrderBySnResponse) Descriptor() ([]byte, []int)deprecated
- func (x *GetOrderBySnResponse) GetOrderInfo() *OrderInfo
- func (*GetOrderBySnResponse) ProtoMessage()
- func (x *GetOrderBySnResponse) ProtoReflect() protoreflect.Message
- func (x *GetOrderBySnResponse) Reset()
- func (x *GetOrderBySnResponse) String() string
- type GetOrderStatusBySnRequest
- func (*GetOrderStatusBySnRequest) Descriptor() ([]byte, []int)deprecated
- func (x *GetOrderStatusBySnRequest) GetSn() string
- func (*GetOrderStatusBySnRequest) ProtoMessage()
- func (x *GetOrderStatusBySnRequest) ProtoReflect() protoreflect.Message
- func (x *GetOrderStatusBySnRequest) Reset()
- func (x *GetOrderStatusBySnRequest) String() string
- type GetOrderStatusBySnResponse
- func (*GetOrderStatusBySnResponse) Descriptor() ([]byte, []int)deprecated
- func (x *GetOrderStatusBySnResponse) GetStatus() int32
- func (*GetOrderStatusBySnResponse) ProtoMessage()
- func (x *GetOrderStatusBySnResponse) ProtoReflect() protoreflect.Message
- func (x *GetOrderStatusBySnResponse) Reset()
- func (x *GetOrderStatusBySnResponse) String() string
- type GetOrdersByStatusRequest
- func (*GetOrdersByStatusRequest) Descriptor() ([]byte, []int)deprecated
- func (x *GetOrdersByStatusRequest) GetIsAll() bool
- func (x *GetOrdersByStatusRequest) GetIsEstimation() bool
- func (x *GetOrdersByStatusRequest) GetPage() int64
- func (x *GetOrdersByStatusRequest) GetPageSize() int64
- func (x *GetOrdersByStatusRequest) GetStatus() int64
- func (x *GetOrdersByStatusRequest) GetUserId() int64
- func (*GetOrdersByStatusRequest) ProtoMessage()
- func (x *GetOrdersByStatusRequest) ProtoReflect() protoreflect.Message
- func (x *GetOrdersByStatusRequest) Reset()
- func (x *GetOrdersByStatusRequest) String() string
- type GetOrdersByStatusResponse
- func (*GetOrdersByStatusResponse) Descriptor() ([]byte, []int)deprecated
- func (x *GetOrdersByStatusResponse) GetOrderList() []*OrderInfo
- func (*GetOrdersByStatusResponse) ProtoMessage()
- func (x *GetOrdersByStatusResponse) ProtoReflect() protoreflect.Message
- func (x *GetOrdersByStatusResponse) Reset()
- func (x *GetOrdersByStatusResponse) String() string
- type GetRefundRecordByRefundIdRequest
- func (*GetRefundRecordByRefundIdRequest) Descriptor() ([]byte, []int)deprecated
- func (x *GetRefundRecordByRefundIdRequest) GetRefundId() int64
- func (*GetRefundRecordByRefundIdRequest) ProtoMessage()
- func (x *GetRefundRecordByRefundIdRequest) ProtoReflect() protoreflect.Message
- func (x *GetRefundRecordByRefundIdRequest) Reset()
- func (x *GetRefundRecordByRefundIdRequest) String() string
- type GetRefundRecordByRefundIdResponse
- func (*GetRefundRecordByRefundIdResponse) Descriptor() ([]byte, []int)deprecated
- func (x *GetRefundRecordByRefundIdResponse) GetRefundRecord() *RefundRecords
- func (*GetRefundRecordByRefundIdResponse) ProtoMessage()
- func (x *GetRefundRecordByRefundIdResponse) ProtoReflect() protoreflect.Message
- func (x *GetRefundRecordByRefundIdResponse) Reset()
- func (x *GetRefundRecordByRefundIdResponse) String() string
- type GetRefundRecordsRequest
- func (*GetRefundRecordsRequest) Descriptor() ([]byte, []int)deprecated
- func (x *GetRefundRecordsRequest) GetPage() int64
- func (x *GetRefundRecordsRequest) GetPageSize() int64
- func (x *GetRefundRecordsRequest) GetUserId() int64
- func (*GetRefundRecordsRequest) ProtoMessage()
- func (x *GetRefundRecordsRequest) ProtoReflect() protoreflect.Message
- func (x *GetRefundRecordsRequest) Reset()
- func (x *GetRefundRecordsRequest) String() string
- type GetRefundRecordsResponse
- func (*GetRefundRecordsResponse) Descriptor() ([]byte, []int)deprecated
- func (x *GetRefundRecordsResponse) GetRefundRecords() []*RefundRecords
- func (*GetRefundRecordsResponse) ProtoMessage()
- func (x *GetRefundRecordsResponse) ProtoReflect() protoreflect.Message
- func (x *GetRefundRecordsResponse) Reset()
- func (x *GetRefundRecordsResponse) String() string
- type OrderAddr
- func (*OrderAddr) Descriptor() ([]byte, []int)deprecated
- func (x *OrderAddr) GetAddress() string
- func (x *OrderAddr) GetMobile() string
- func (x *OrderAddr) GetNickname() string
- func (x *OrderAddr) GetOrderAddrId() int64
- func (x *OrderAddr) GetOrderId() int64
- func (*OrderAddr) ProtoMessage()
- func (x *OrderAddr) ProtoReflect() protoreflect.Message
- func (x *OrderAddr) Reset()
- func (x *OrderAddr) String() string
- type OrderInfo
- func (*OrderInfo) Descriptor() ([]byte, []int)deprecated
- func (x *OrderInfo) GetAmount() string
- func (x *OrderInfo) GetCouponId() int64
- func (x *OrderInfo) GetCreatedAt() string
- func (x *OrderInfo) GetDiscountAmount() string
- func (x *OrderInfo) GetIsEstimation() bool
- func (x *OrderInfo) GetItems() []*OrderItemInfo
- func (x *OrderInfo) GetOrderAddr() *OrderAddr
- func (x *OrderInfo) GetOrderId() int64
- func (x *OrderInfo) GetOrderType() int32
- func (x *OrderInfo) GetPaidAmount() string
- func (x *OrderInfo) GetPayTime() string
- func (x *OrderInfo) GetPayType() int32
- func (x *OrderInfo) GetRefundableOrNot() int32
- func (x *OrderInfo) GetSn() string
- func (x *OrderInfo) GetStatus() int32
- func (x *OrderInfo) GetUserId() int64
- func (*OrderInfo) ProtoMessage()
- func (x *OrderInfo) ProtoReflect() protoreflect.Message
- func (x *OrderInfo) Reset()
- func (x *OrderInfo) String() string
- type OrderItemInfo
- func (*OrderItemInfo) Descriptor() ([]byte, []int)deprecated
- func (x *OrderItemInfo) GetGoodsId() int64
- func (x *OrderItemInfo) GetGoodsPrice() string
- func (x *OrderItemInfo) GetGoodsTitle() string
- func (x *OrderItemInfo) GetImg() string
- func (x *OrderItemInfo) GetOrderId() int64
- func (x *OrderItemInfo) GetOrderItemId() int64
- func (x *OrderItemInfo) GetQuantity() int64
- func (*OrderItemInfo) ProtoMessage()
- func (x *OrderItemInfo) ProtoReflect() protoreflect.Message
- func (x *OrderItemInfo) Reset()
- func (x *OrderItemInfo) String() string
- type OrdersClient
- type OrdersServer
- type RefundRecords
- func (*RefundRecords) Descriptor() ([]byte, []int)deprecated
- func (x *RefundRecords) GetOrderID() int64
- func (x *RefundRecords) GetOrderSn() string
- func (x *RefundRecords) GetRefundAmount() string
- func (x *RefundRecords) GetRefundImageUrls() []string
- func (x *RefundRecords) GetRefundReason() string
- func (x *RefundRecords) GetRefundRecordsID() int64
- func (x *RefundRecords) GetRefundSn() string
- func (x *RefundRecords) GetRefundStatus() int32
- func (x *RefundRecords) GetUserId() int64
- func (*RefundRecords) ProtoMessage()
- func (x *RefundRecords) ProtoReflect() protoreflect.Message
- func (x *RefundRecords) Reset()
- func (x *RefundRecords) String() string
- type RefundsClient
- type RefundsServer
- type UnimplementedOrdersServer
- func (UnimplementedOrdersServer) CreateOrder(context.Context, *CreateOrderRequest) (*CreateOrderResponse, error)
- func (UnimplementedOrdersServer) GetOrderByOrderId(context.Context, *GetOrderByOrderIdRequest) (*GetOrderByOrderIdResponse, error)
- func (UnimplementedOrdersServer) GetOrderBySn(context.Context, *GetOrderBySnRequest) (*GetOrderBySnResponse, error)
- func (UnimplementedOrdersServer) GetOrderStatusBySn(context.Context, *GetOrderStatusBySnRequest) (*GetOrderStatusBySnResponse, error)
- func (UnimplementedOrdersServer) GetOrdersByStatus(context.Context, *GetOrdersByStatusRequest) (*GetOrdersByStatusResponse, error)
- func (UnimplementedOrdersServer) RollbackCreateOrder(context.Context, *CreateOrderRequest) (*CreateOrderResponse, error)
- func (UnimplementedOrdersServer) RollbackOrderStatusBySn(context.Context, *UpdateOrderBySnRequest) (*UpdateOrderBySnResponse, error)
- func (UnimplementedOrdersServer) UpdateOrderBySn(context.Context, *UpdateOrderBySnRequest) (*UpdateOrderBySnResponse, error)
- func (UnimplementedOrdersServer) UpdateOrderToPaidBySn(context.Context, *UpdOrderPaymentStatusRequest) (*UpdOrderPaymentStatusResponse, error)
- func (UnimplementedOrdersServer) UpdateOrderToTimedOutBySn(context.Context, *UpdOrderPaymentStatusRequest) (*UpdOrderPaymentStatusResponse, error)
- type UnimplementedRefundsServer
- func (UnimplementedRefundsServer) CreateRefundRecords(context.Context, *CreateRefundRecordsRequest) (*CreateRefundRecordsResponse, error)
- func (UnimplementedRefundsServer) GetRefundRecordByRefundId(context.Context, *GetRefundRecordByRefundIdRequest) (*GetRefundRecordByRefundIdResponse, error)
- func (UnimplementedRefundsServer) GetRefundRecords(context.Context, *GetRefundRecordsRequest) (*GetRefundRecordsResponse, error)
- func (UnimplementedRefundsServer) RollbackCreateRefundRecords(context.Context, *CreateRefundRecordsRequest) (*CreateRefundRecordsResponse, error)
- type UnsafeOrdersServer
- type UnsafeRefundsServer
- type UpdOrderPaymentStatusRequest
- func (*UpdOrderPaymentStatusRequest) Descriptor() ([]byte, []int)deprecated
- func (x *UpdOrderPaymentStatusRequest) GetOrderSn() string
- func (x *UpdOrderPaymentStatusRequest) GetPayTime() string
- func (*UpdOrderPaymentStatusRequest) ProtoMessage()
- func (x *UpdOrderPaymentStatusRequest) ProtoReflect() protoreflect.Message
- func (x *UpdOrderPaymentStatusRequest) Reset()
- func (x *UpdOrderPaymentStatusRequest) String() string
- type UpdOrderPaymentStatusResponse
- func (*UpdOrderPaymentStatusResponse) Descriptor() ([]byte, []int)deprecated
- func (*UpdOrderPaymentStatusResponse) ProtoMessage()
- func (x *UpdOrderPaymentStatusResponse) ProtoReflect() protoreflect.Message
- func (x *UpdOrderPaymentStatusResponse) Reset()
- func (x *UpdOrderPaymentStatusResponse) String() string
- type UpdateOrderBySnRequest
- func (*UpdateOrderBySnRequest) Descriptor() ([]byte, []int)deprecated
- func (x *UpdateOrderBySnRequest) GetOrderSn() string
- func (x *UpdateOrderBySnRequest) GetPayTime() string
- func (x *UpdateOrderBySnRequest) GetRefundableOrNot() int32
- func (x *UpdateOrderBySnRequest) GetRollbackRefundableOrNot() int32
- func (x *UpdateOrderBySnRequest) GetRollbackStatus() int32
- func (x *UpdateOrderBySnRequest) GetStatus() int32
- func (*UpdateOrderBySnRequest) ProtoMessage()
- func (x *UpdateOrderBySnRequest) ProtoReflect() protoreflect.Message
- func (x *UpdateOrderBySnRequest) Reset()
- func (x *UpdateOrderBySnRequest) String() string
- type UpdateOrderBySnResponse
Constants ¶
const ( Orders_CreateOrder_FullMethodName = "/orders.Orders/CreateOrder" Orders_GetOrderBySn_FullMethodName = "/orders.Orders/GetOrderBySn" Orders_GetOrderStatusBySn_FullMethodName = "/orders.Orders/GetOrderStatusBySn" Orders_GetOrderByOrderId_FullMethodName = "/orders.Orders/GetOrderByOrderId" Orders_GetOrdersByStatus_FullMethodName = "/orders.Orders/GetOrdersByStatus" Orders_UpdateOrderBySn_FullMethodName = "/orders.Orders/UpdateOrderBySn" Orders_RollbackOrderStatusBySn_FullMethodName = "/orders.Orders/RollbackOrderStatusBySn" Orders_UpdateOrderToPaidBySn_FullMethodName = "/orders.Orders/UpdateOrderToPaidBySn" Orders_UpdateOrderToTimedOutBySn_FullMethodName = "/orders.Orders/UpdateOrderToTimedOutBySn" Orders_RollbackCreateOrder_FullMethodName = "/orders.Orders/RollbackCreateOrder" )
const ( Refunds_CreateRefundRecords_FullMethodName = "/orders.Refunds/CreateRefundRecords" Refunds_RollbackCreateRefundRecords_FullMethodName = "/orders.Refunds/RollbackCreateRefundRecords" Refunds_GetRefundRecords_FullMethodName = "/orders.Refunds/GetRefundRecords" Refunds_GetRefundRecordByRefundId_FullMethodName = "/orders.Refunds/GetRefundRecordByRefundId" )
Variables ¶
var File_orders_proto protoreflect.FileDescriptor
var Orders_ServiceDesc = grpc.ServiceDesc{ ServiceName: "orders.Orders", HandlerType: (*OrdersServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "CreateOrder", Handler: _Orders_CreateOrder_Handler, }, { MethodName: "GetOrderBySn", Handler: _Orders_GetOrderBySn_Handler, }, { MethodName: "GetOrderStatusBySn", Handler: _Orders_GetOrderStatusBySn_Handler, }, { MethodName: "GetOrderByOrderId", Handler: _Orders_GetOrderByOrderId_Handler, }, { MethodName: "GetOrdersByStatus", Handler: _Orders_GetOrdersByStatus_Handler, }, { MethodName: "UpdateOrderBySn", Handler: _Orders_UpdateOrderBySn_Handler, }, { MethodName: "RollbackOrderStatusBySn", Handler: _Orders_RollbackOrderStatusBySn_Handler, }, { MethodName: "UpdateOrderToPaidBySn", Handler: _Orders_UpdateOrderToPaidBySn_Handler, }, { MethodName: "UpdateOrderToTimedOutBySn", Handler: _Orders_UpdateOrderToTimedOutBySn_Handler, }, { MethodName: "RollbackCreateOrder", Handler: _Orders_RollbackCreateOrder_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "orders.proto", }
Orders_ServiceDesc is the grpc.ServiceDesc for Orders service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
var Refunds_ServiceDesc = grpc.ServiceDesc{ ServiceName: "orders.Refunds", HandlerType: (*RefundsServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "CreateRefundRecords", Handler: _Refunds_CreateRefundRecords_Handler, }, { MethodName: "RollbackCreateRefundRecords", Handler: _Refunds_RollbackCreateRefundRecords_Handler, }, { MethodName: "GetRefundRecords", Handler: _Refunds_GetRefundRecords_Handler, }, { MethodName: "GetRefundRecordByRefundId", Handler: _Refunds_GetRefundRecordByRefundId_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "orders.proto", }
Refunds_ServiceDesc is the grpc.ServiceDesc for Refunds service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
Functions ¶
func RegisterOrdersServer ¶
func RegisterOrdersServer(s grpc.ServiceRegistrar, srv OrdersServer)
func RegisterRefundsServer ¶
func RegisterRefundsServer(s grpc.ServiceRegistrar, srv RefundsServer)
Types ¶
type CreateOrderRequest ¶
type CreateOrderRequest struct { OrderInfo *OrderInfo `protobuf:"bytes,10,opt,name=OrderInfo,proto3" json:"OrderInfo,omitempty"` // contains filtered or unexported fields }
func (*CreateOrderRequest) Descriptor
deprecated
func (*CreateOrderRequest) Descriptor() ([]byte, []int)
Deprecated: Use CreateOrderRequest.ProtoReflect.Descriptor instead.
func (*CreateOrderRequest) GetOrderInfo ¶
func (x *CreateOrderRequest) GetOrderInfo() *OrderInfo
func (*CreateOrderRequest) ProtoMessage ¶
func (*CreateOrderRequest) ProtoMessage()
func (*CreateOrderRequest) ProtoReflect ¶
func (x *CreateOrderRequest) ProtoReflect() protoreflect.Message
func (*CreateOrderRequest) Reset ¶
func (x *CreateOrderRequest) Reset()
func (*CreateOrderRequest) String ¶
func (x *CreateOrderRequest) String() string
type CreateOrderResponse ¶
type CreateOrderResponse struct { OrderId int64 `protobuf:"varint,10,opt,name=OrderId,proto3" json:"OrderId,omitempty"` // contains filtered or unexported fields }
func (*CreateOrderResponse) Descriptor
deprecated
func (*CreateOrderResponse) Descriptor() ([]byte, []int)
Deprecated: Use CreateOrderResponse.ProtoReflect.Descriptor instead.
func (*CreateOrderResponse) GetOrderId ¶
func (x *CreateOrderResponse) GetOrderId() int64
func (*CreateOrderResponse) ProtoMessage ¶
func (*CreateOrderResponse) ProtoMessage()
func (*CreateOrderResponse) ProtoReflect ¶
func (x *CreateOrderResponse) ProtoReflect() protoreflect.Message
func (*CreateOrderResponse) Reset ¶
func (x *CreateOrderResponse) Reset()
func (*CreateOrderResponse) String ¶
func (x *CreateOrderResponse) String() string
type CreateRefundRecordsRequest ¶
type CreateRefundRecordsRequest struct { RefundRecords *RefundRecords `protobuf:"bytes,10,opt,name=RefundRecords,proto3" json:"RefundRecords,omitempty"` // contains filtered or unexported fields }
func (*CreateRefundRecordsRequest) Descriptor
deprecated
func (*CreateRefundRecordsRequest) Descriptor() ([]byte, []int)
Deprecated: Use CreateRefundRecordsRequest.ProtoReflect.Descriptor instead.
func (*CreateRefundRecordsRequest) GetRefundRecords ¶
func (x *CreateRefundRecordsRequest) GetRefundRecords() *RefundRecords
func (*CreateRefundRecordsRequest) ProtoMessage ¶
func (*CreateRefundRecordsRequest) ProtoMessage()
func (*CreateRefundRecordsRequest) ProtoReflect ¶
func (x *CreateRefundRecordsRequest) ProtoReflect() protoreflect.Message
func (*CreateRefundRecordsRequest) Reset ¶
func (x *CreateRefundRecordsRequest) Reset()
func (*CreateRefundRecordsRequest) String ¶
func (x *CreateRefundRecordsRequest) String() string
type CreateRefundRecordsResponse ¶
type CreateRefundRecordsResponse struct { RefundRecords *RefundRecords `protobuf:"bytes,10,opt,name=RefundRecords,proto3" json:"RefundRecords,omitempty"` // contains filtered or unexported fields }
func (*CreateRefundRecordsResponse) Descriptor
deprecated
func (*CreateRefundRecordsResponse) Descriptor() ([]byte, []int)
Deprecated: Use CreateRefundRecordsResponse.ProtoReflect.Descriptor instead.
func (*CreateRefundRecordsResponse) GetRefundRecords ¶
func (x *CreateRefundRecordsResponse) GetRefundRecords() *RefundRecords
func (*CreateRefundRecordsResponse) ProtoMessage ¶
func (*CreateRefundRecordsResponse) ProtoMessage()
func (*CreateRefundRecordsResponse) ProtoReflect ¶
func (x *CreateRefundRecordsResponse) ProtoReflect() protoreflect.Message
func (*CreateRefundRecordsResponse) Reset ¶
func (x *CreateRefundRecordsResponse) Reset()
func (*CreateRefundRecordsResponse) String ¶
func (x *CreateRefundRecordsResponse) String() string
type GetOrderByOrderIdRequest ¶
type GetOrderByOrderIdRequest struct { OrderId int64 `protobuf:"varint,10,opt,name=OrderId,proto3" json:"OrderId,omitempty"` // contains filtered or unexported fields }
func (*GetOrderByOrderIdRequest) Descriptor
deprecated
func (*GetOrderByOrderIdRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetOrderByOrderIdRequest.ProtoReflect.Descriptor instead.
func (*GetOrderByOrderIdRequest) GetOrderId ¶
func (x *GetOrderByOrderIdRequest) GetOrderId() int64
func (*GetOrderByOrderIdRequest) ProtoMessage ¶
func (*GetOrderByOrderIdRequest) ProtoMessage()
func (*GetOrderByOrderIdRequest) ProtoReflect ¶
func (x *GetOrderByOrderIdRequest) ProtoReflect() protoreflect.Message
func (*GetOrderByOrderIdRequest) Reset ¶
func (x *GetOrderByOrderIdRequest) Reset()
func (*GetOrderByOrderIdRequest) String ¶
func (x *GetOrderByOrderIdRequest) String() string
type GetOrderByOrderIdResponse ¶
type GetOrderByOrderIdResponse struct { OrderInfo *OrderInfo `protobuf:"bytes,10,opt,name=OrderInfo,proto3" json:"OrderInfo,omitempty"` // contains filtered or unexported fields }
func (*GetOrderByOrderIdResponse) Descriptor
deprecated
func (*GetOrderByOrderIdResponse) Descriptor() ([]byte, []int)
Deprecated: Use GetOrderByOrderIdResponse.ProtoReflect.Descriptor instead.
func (*GetOrderByOrderIdResponse) GetOrderInfo ¶
func (x *GetOrderByOrderIdResponse) GetOrderInfo() *OrderInfo
func (*GetOrderByOrderIdResponse) ProtoMessage ¶
func (*GetOrderByOrderIdResponse) ProtoMessage()
func (*GetOrderByOrderIdResponse) ProtoReflect ¶
func (x *GetOrderByOrderIdResponse) ProtoReflect() protoreflect.Message
func (*GetOrderByOrderIdResponse) Reset ¶
func (x *GetOrderByOrderIdResponse) Reset()
func (*GetOrderByOrderIdResponse) String ¶
func (x *GetOrderByOrderIdResponse) String() string
type GetOrderBySnRequest ¶
type GetOrderBySnRequest struct { Sn string `protobuf:"bytes,10,opt,name=Sn,proto3" json:"Sn,omitempty"` // contains filtered or unexported fields }
func (*GetOrderBySnRequest) Descriptor
deprecated
func (*GetOrderBySnRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetOrderBySnRequest.ProtoReflect.Descriptor instead.
func (*GetOrderBySnRequest) GetSn ¶
func (x *GetOrderBySnRequest) GetSn() string
func (*GetOrderBySnRequest) ProtoMessage ¶
func (*GetOrderBySnRequest) ProtoMessage()
func (*GetOrderBySnRequest) ProtoReflect ¶
func (x *GetOrderBySnRequest) ProtoReflect() protoreflect.Message
func (*GetOrderBySnRequest) Reset ¶
func (x *GetOrderBySnRequest) Reset()
func (*GetOrderBySnRequest) String ¶
func (x *GetOrderBySnRequest) String() string
type GetOrderBySnResponse ¶
type GetOrderBySnResponse struct { OrderInfo *OrderInfo `protobuf:"bytes,10,opt,name=OrderInfo,proto3" json:"OrderInfo,omitempty"` // contains filtered or unexported fields }
func (*GetOrderBySnResponse) Descriptor
deprecated
func (*GetOrderBySnResponse) Descriptor() ([]byte, []int)
Deprecated: Use GetOrderBySnResponse.ProtoReflect.Descriptor instead.
func (*GetOrderBySnResponse) GetOrderInfo ¶
func (x *GetOrderBySnResponse) GetOrderInfo() *OrderInfo
func (*GetOrderBySnResponse) ProtoMessage ¶
func (*GetOrderBySnResponse) ProtoMessage()
func (*GetOrderBySnResponse) ProtoReflect ¶
func (x *GetOrderBySnResponse) ProtoReflect() protoreflect.Message
func (*GetOrderBySnResponse) Reset ¶
func (x *GetOrderBySnResponse) Reset()
func (*GetOrderBySnResponse) String ¶
func (x *GetOrderBySnResponse) String() string
type GetOrderStatusBySnRequest ¶
type GetOrderStatusBySnRequest struct { Sn string `protobuf:"bytes,10,opt,name=Sn,proto3" json:"Sn,omitempty"` // contains filtered or unexported fields }
func (*GetOrderStatusBySnRequest) Descriptor
deprecated
func (*GetOrderStatusBySnRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetOrderStatusBySnRequest.ProtoReflect.Descriptor instead.
func (*GetOrderStatusBySnRequest) GetSn ¶
func (x *GetOrderStatusBySnRequest) GetSn() string
func (*GetOrderStatusBySnRequest) ProtoMessage ¶
func (*GetOrderStatusBySnRequest) ProtoMessage()
func (*GetOrderStatusBySnRequest) ProtoReflect ¶
func (x *GetOrderStatusBySnRequest) ProtoReflect() protoreflect.Message
func (*GetOrderStatusBySnRequest) Reset ¶
func (x *GetOrderStatusBySnRequest) Reset()
func (*GetOrderStatusBySnRequest) String ¶
func (x *GetOrderStatusBySnRequest) String() string
type GetOrderStatusBySnResponse ¶
type GetOrderStatusBySnResponse struct { Status int32 `protobuf:"varint,10,opt,name=Status,proto3" json:"Status,omitempty"` // contains filtered or unexported fields }
func (*GetOrderStatusBySnResponse) Descriptor
deprecated
func (*GetOrderStatusBySnResponse) Descriptor() ([]byte, []int)
Deprecated: Use GetOrderStatusBySnResponse.ProtoReflect.Descriptor instead.
func (*GetOrderStatusBySnResponse) GetStatus ¶
func (x *GetOrderStatusBySnResponse) GetStatus() int32
func (*GetOrderStatusBySnResponse) ProtoMessage ¶
func (*GetOrderStatusBySnResponse) ProtoMessage()
func (*GetOrderStatusBySnResponse) ProtoReflect ¶
func (x *GetOrderStatusBySnResponse) ProtoReflect() protoreflect.Message
func (*GetOrderStatusBySnResponse) Reset ¶
func (x *GetOrderStatusBySnResponse) Reset()
func (*GetOrderStatusBySnResponse) String ¶
func (x *GetOrderStatusBySnResponse) String() string
type GetOrdersByStatusRequest ¶
type GetOrdersByStatusRequest struct { UserId int64 `protobuf:"varint,10,opt,name=UserId,proto3" json:"UserId,omitempty"` Status int64 `protobuf:"varint,20,opt,name=Status,proto3" json:"Status,omitempty"` IsAll bool `protobuf:"varint,30,opt,name=IsAll,proto3" json:"IsAll,omitempty"` IsEstimation bool `protobuf:"varint,40,opt,name=IsEstimation,proto3" json:"IsEstimation,omitempty"` Page int64 `protobuf:"varint,50,opt,name=Page,proto3" json:"Page,omitempty"` PageSize int64 `protobuf:"varint,60,opt,name=PageSize,proto3" json:"PageSize,omitempty"` // contains filtered or unexported fields }
func (*GetOrdersByStatusRequest) Descriptor
deprecated
func (*GetOrdersByStatusRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetOrdersByStatusRequest.ProtoReflect.Descriptor instead.
func (*GetOrdersByStatusRequest) GetIsAll ¶
func (x *GetOrdersByStatusRequest) GetIsAll() bool
func (*GetOrdersByStatusRequest) GetIsEstimation ¶
func (x *GetOrdersByStatusRequest) GetIsEstimation() bool
func (*GetOrdersByStatusRequest) GetPage ¶
func (x *GetOrdersByStatusRequest) GetPage() int64
func (*GetOrdersByStatusRequest) GetPageSize ¶
func (x *GetOrdersByStatusRequest) GetPageSize() int64
func (*GetOrdersByStatusRequest) GetStatus ¶
func (x *GetOrdersByStatusRequest) GetStatus() int64
func (*GetOrdersByStatusRequest) GetUserId ¶
func (x *GetOrdersByStatusRequest) GetUserId() int64
func (*GetOrdersByStatusRequest) ProtoMessage ¶
func (*GetOrdersByStatusRequest) ProtoMessage()
func (*GetOrdersByStatusRequest) ProtoReflect ¶
func (x *GetOrdersByStatusRequest) ProtoReflect() protoreflect.Message
func (*GetOrdersByStatusRequest) Reset ¶
func (x *GetOrdersByStatusRequest) Reset()
func (*GetOrdersByStatusRequest) String ¶
func (x *GetOrdersByStatusRequest) String() string
type GetOrdersByStatusResponse ¶
type GetOrdersByStatusResponse struct { OrderList []*OrderInfo `protobuf:"bytes,10,rep,name=OrderList,proto3" json:"OrderList,omitempty"` // contains filtered or unexported fields }
func (*GetOrdersByStatusResponse) Descriptor
deprecated
func (*GetOrdersByStatusResponse) Descriptor() ([]byte, []int)
Deprecated: Use GetOrdersByStatusResponse.ProtoReflect.Descriptor instead.
func (*GetOrdersByStatusResponse) GetOrderList ¶
func (x *GetOrdersByStatusResponse) GetOrderList() []*OrderInfo
func (*GetOrdersByStatusResponse) ProtoMessage ¶
func (*GetOrdersByStatusResponse) ProtoMessage()
func (*GetOrdersByStatusResponse) ProtoReflect ¶
func (x *GetOrdersByStatusResponse) ProtoReflect() protoreflect.Message
func (*GetOrdersByStatusResponse) Reset ¶
func (x *GetOrdersByStatusResponse) Reset()
func (*GetOrdersByStatusResponse) String ¶
func (x *GetOrdersByStatusResponse) String() string
type GetRefundRecordByRefundIdRequest ¶
type GetRefundRecordByRefundIdRequest struct { RefundId int64 `protobuf:"varint,10,opt,name=RefundId,proto3" json:"RefundId,omitempty"` // contains filtered or unexported fields }
func (*GetRefundRecordByRefundIdRequest) Descriptor
deprecated
func (*GetRefundRecordByRefundIdRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetRefundRecordByRefundIdRequest.ProtoReflect.Descriptor instead.
func (*GetRefundRecordByRefundIdRequest) GetRefundId ¶
func (x *GetRefundRecordByRefundIdRequest) GetRefundId() int64
func (*GetRefundRecordByRefundIdRequest) ProtoMessage ¶
func (*GetRefundRecordByRefundIdRequest) ProtoMessage()
func (*GetRefundRecordByRefundIdRequest) ProtoReflect ¶
func (x *GetRefundRecordByRefundIdRequest) ProtoReflect() protoreflect.Message
func (*GetRefundRecordByRefundIdRequest) Reset ¶
func (x *GetRefundRecordByRefundIdRequest) Reset()
func (*GetRefundRecordByRefundIdRequest) String ¶
func (x *GetRefundRecordByRefundIdRequest) String() string
type GetRefundRecordByRefundIdResponse ¶
type GetRefundRecordByRefundIdResponse struct { RefundRecord *RefundRecords `protobuf:"bytes,10,opt,name=RefundRecord,proto3" json:"RefundRecord,omitempty"` // contains filtered or unexported fields }
func (*GetRefundRecordByRefundIdResponse) Descriptor
deprecated
func (*GetRefundRecordByRefundIdResponse) Descriptor() ([]byte, []int)
Deprecated: Use GetRefundRecordByRefundIdResponse.ProtoReflect.Descriptor instead.
func (*GetRefundRecordByRefundIdResponse) GetRefundRecord ¶
func (x *GetRefundRecordByRefundIdResponse) GetRefundRecord() *RefundRecords
func (*GetRefundRecordByRefundIdResponse) ProtoMessage ¶
func (*GetRefundRecordByRefundIdResponse) ProtoMessage()
func (*GetRefundRecordByRefundIdResponse) ProtoReflect ¶
func (x *GetRefundRecordByRefundIdResponse) ProtoReflect() protoreflect.Message
func (*GetRefundRecordByRefundIdResponse) Reset ¶
func (x *GetRefundRecordByRefundIdResponse) Reset()
func (*GetRefundRecordByRefundIdResponse) String ¶
func (x *GetRefundRecordByRefundIdResponse) String() string
type GetRefundRecordsRequest ¶
type GetRefundRecordsRequest struct { UserId int64 `protobuf:"varint,20,opt,name=UserId,proto3" json:"UserId,omitempty"` Page int64 `protobuf:"varint,30,opt,name=Page,proto3" json:"Page,omitempty"` PageSize int64 `protobuf:"varint,40,opt,name=PageSize,proto3" json:"PageSize,omitempty"` // contains filtered or unexported fields }
func (*GetRefundRecordsRequest) Descriptor
deprecated
func (*GetRefundRecordsRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetRefundRecordsRequest.ProtoReflect.Descriptor instead.
func (*GetRefundRecordsRequest) GetPage ¶
func (x *GetRefundRecordsRequest) GetPage() int64
func (*GetRefundRecordsRequest) GetPageSize ¶
func (x *GetRefundRecordsRequest) GetPageSize() int64
func (*GetRefundRecordsRequest) GetUserId ¶
func (x *GetRefundRecordsRequest) GetUserId() int64
func (*GetRefundRecordsRequest) ProtoMessage ¶
func (*GetRefundRecordsRequest) ProtoMessage()
func (*GetRefundRecordsRequest) ProtoReflect ¶
func (x *GetRefundRecordsRequest) ProtoReflect() protoreflect.Message
func (*GetRefundRecordsRequest) Reset ¶
func (x *GetRefundRecordsRequest) Reset()
func (*GetRefundRecordsRequest) String ¶
func (x *GetRefundRecordsRequest) String() string
type GetRefundRecordsResponse ¶
type GetRefundRecordsResponse struct { RefundRecords []*RefundRecords `protobuf:"bytes,10,rep,name=RefundRecords,proto3" json:"RefundRecords,omitempty"` // contains filtered or unexported fields }
func (*GetRefundRecordsResponse) Descriptor
deprecated
func (*GetRefundRecordsResponse) Descriptor() ([]byte, []int)
Deprecated: Use GetRefundRecordsResponse.ProtoReflect.Descriptor instead.
func (*GetRefundRecordsResponse) GetRefundRecords ¶
func (x *GetRefundRecordsResponse) GetRefundRecords() []*RefundRecords
func (*GetRefundRecordsResponse) ProtoMessage ¶
func (*GetRefundRecordsResponse) ProtoMessage()
func (*GetRefundRecordsResponse) ProtoReflect ¶
func (x *GetRefundRecordsResponse) ProtoReflect() protoreflect.Message
func (*GetRefundRecordsResponse) Reset ¶
func (x *GetRefundRecordsResponse) Reset()
func (*GetRefundRecordsResponse) String ¶
func (x *GetRefundRecordsResponse) String() string
type OrderAddr ¶
type OrderAddr struct { OrderAddrId int64 `protobuf:"varint,10,opt,name=OrderAddrId,proto3" json:"OrderAddrId,omitempty"` OrderId int64 `protobuf:"varint,20,opt,name=OrderId,proto3" json:"OrderId,omitempty"` Mobile string `protobuf:"bytes,30,opt,name=Mobile,proto3" json:"Mobile,omitempty"` Nickname string `protobuf:"bytes,40,opt,name=Nickname,proto3" json:"Nickname,omitempty"` Address string `protobuf:"bytes,50,opt,name=Address,proto3" json:"Address,omitempty"` // contains filtered or unexported fields }
func (*OrderAddr) Descriptor
deprecated
func (*OrderAddr) GetAddress ¶
func (*OrderAddr) GetNickname ¶
func (*OrderAddr) GetOrderAddrId ¶
func (*OrderAddr) GetOrderId ¶
func (*OrderAddr) ProtoMessage ¶
func (*OrderAddr) ProtoMessage()
func (*OrderAddr) ProtoReflect ¶
func (x *OrderAddr) ProtoReflect() protoreflect.Message
type OrderInfo ¶
type OrderInfo struct { OrderId int64 `protobuf:"varint,10,opt,name=OrderId,proto3" json:"OrderId,omitempty"` CreatedAt string `protobuf:"bytes,11,opt,name=CreatedAt,proto3" json:"CreatedAt,omitempty"` UserId int64 `protobuf:"varint,20,opt,name=UserId,proto3" json:"UserId,omitempty"` CouponId int64 `protobuf:"varint,30,opt,name=CouponId,proto3" json:"CouponId,omitempty"` Sn string `protobuf:"bytes,40,opt,name=Sn,proto3" json:"Sn,omitempty"` Amount string `protobuf:"bytes,50,opt,name=Amount,proto3" json:"Amount,omitempty"` DiscountAmount string `protobuf:"bytes,60,opt,name=DiscountAmount,proto3" json:"DiscountAmount,omitempty"` PaidAmount string `protobuf:"bytes,70,opt,name=PaidAmount,proto3" json:"PaidAmount,omitempty"` PayType int32 `protobuf:"varint,80,opt,name=PayType,proto3" json:"PayType,omitempty"` PayTime string `protobuf:"bytes,90,opt,name=PayTime,proto3" json:"PayTime,omitempty"` Status int32 `protobuf:"varint,100,opt,name=Status,proto3" json:"Status,omitempty"` IsEstimation bool `protobuf:"varint,110,opt,name=IsEstimation,proto3" json:"IsEstimation,omitempty"` RefundableOrNot int32 `protobuf:"varint,120,opt,name=RefundableOrNot,proto3" json:"RefundableOrNot,omitempty"` OrderType int32 `protobuf:"varint,130,opt,name=OrderType,proto3" json:"OrderType,omitempty"` OrderAddr *OrderAddr `protobuf:"bytes,140,opt,name=OrderAddr,proto3" json:"OrderAddr,omitempty"` Items []*OrderItemInfo `protobuf:"bytes,150,rep,name=Items,proto3" json:"Items,omitempty"` // contains filtered or unexported fields }
func (*OrderInfo) Descriptor
deprecated
func (*OrderInfo) GetCouponId ¶
func (*OrderInfo) GetCreatedAt ¶
func (*OrderInfo) GetDiscountAmount ¶
func (*OrderInfo) GetIsEstimation ¶
func (*OrderInfo) GetItems ¶
func (x *OrderInfo) GetItems() []*OrderItemInfo
func (*OrderInfo) GetOrderAddr ¶
func (*OrderInfo) GetOrderId ¶
func (*OrderInfo) GetOrderType ¶
func (*OrderInfo) GetPaidAmount ¶
func (*OrderInfo) GetPayTime ¶
func (*OrderInfo) GetPayType ¶
func (*OrderInfo) GetRefundableOrNot ¶
func (*OrderInfo) ProtoMessage ¶
func (*OrderInfo) ProtoMessage()
func (*OrderInfo) ProtoReflect ¶
func (x *OrderInfo) ProtoReflect() protoreflect.Message
type OrderItemInfo ¶
type OrderItemInfo struct { OrderItemId int64 `protobuf:"varint,10,opt,name=OrderItemId,proto3" json:"OrderItemId,omitempty"` OrderId int64 `protobuf:"varint,20,opt,name=OrderId,proto3" json:"OrderId,omitempty"` GoodsId int64 `protobuf:"varint,30,opt,name=GoodsId,proto3" json:"GoodsId,omitempty"` Quantity int64 `protobuf:"varint,40,opt,name=Quantity,proto3" json:"Quantity,omitempty"` GoodsTitle string `protobuf:"bytes,50,opt,name=GoodsTitle,proto3" json:"GoodsTitle,omitempty"` GoodsPrice string `protobuf:"bytes,60,opt,name=GoodsPrice,proto3" json:"GoodsPrice,omitempty"` Img string `protobuf:"bytes,70,opt,name=Img,proto3" json:"Img,omitempty"` // contains filtered or unexported fields }
func (*OrderItemInfo) Descriptor
deprecated
func (*OrderItemInfo) Descriptor() ([]byte, []int)
Deprecated: Use OrderItemInfo.ProtoReflect.Descriptor instead.
func (*OrderItemInfo) GetGoodsId ¶
func (x *OrderItemInfo) GetGoodsId() int64
func (*OrderItemInfo) GetGoodsPrice ¶
func (x *OrderItemInfo) GetGoodsPrice() string
func (*OrderItemInfo) GetGoodsTitle ¶
func (x *OrderItemInfo) GetGoodsTitle() string
func (*OrderItemInfo) GetImg ¶
func (x *OrderItemInfo) GetImg() string
func (*OrderItemInfo) GetOrderId ¶
func (x *OrderItemInfo) GetOrderId() int64
func (*OrderItemInfo) GetOrderItemId ¶
func (x *OrderItemInfo) GetOrderItemId() int64
func (*OrderItemInfo) GetQuantity ¶
func (x *OrderItemInfo) GetQuantity() int64
func (*OrderItemInfo) ProtoMessage ¶
func (*OrderItemInfo) ProtoMessage()
func (*OrderItemInfo) ProtoReflect ¶
func (x *OrderItemInfo) ProtoReflect() protoreflect.Message
func (*OrderItemInfo) Reset ¶
func (x *OrderItemInfo) Reset()
func (*OrderItemInfo) String ¶
func (x *OrderItemInfo) String() string
type OrdersClient ¶
type OrdersClient interface { CreateOrder(ctx context.Context, in *CreateOrderRequest, opts ...grpc.CallOption) (*CreateOrderResponse, error) GetOrderBySn(ctx context.Context, in *GetOrderBySnRequest, opts ...grpc.CallOption) (*GetOrderBySnResponse, error) GetOrderStatusBySn(ctx context.Context, in *GetOrderStatusBySnRequest, opts ...grpc.CallOption) (*GetOrderStatusBySnResponse, error) GetOrderByOrderId(ctx context.Context, in *GetOrderByOrderIdRequest, opts ...grpc.CallOption) (*GetOrderByOrderIdResponse, error) GetOrdersByStatus(ctx context.Context, in *GetOrdersByStatusRequest, opts ...grpc.CallOption) (*GetOrdersByStatusResponse, error) UpdateOrderBySn(ctx context.Context, in *UpdateOrderBySnRequest, opts ...grpc.CallOption) (*UpdateOrderBySnResponse, error) RollbackOrderStatusBySn(ctx context.Context, in *UpdateOrderBySnRequest, opts ...grpc.CallOption) (*UpdateOrderBySnResponse, error) UpdateOrderToPaidBySn(ctx context.Context, in *UpdOrderPaymentStatusRequest, opts ...grpc.CallOption) (*UpdOrderPaymentStatusResponse, error) UpdateOrderToTimedOutBySn(ctx context.Context, in *UpdOrderPaymentStatusRequest, opts ...grpc.CallOption) (*UpdOrderPaymentStatusResponse, error) RollbackCreateOrder(ctx context.Context, in *CreateOrderRequest, opts ...grpc.CallOption) (*CreateOrderResponse, error) }
OrdersClient is the client API for Orders service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.
func NewOrdersClient ¶
func NewOrdersClient(cc grpc.ClientConnInterface) OrdersClient
type OrdersServer ¶
type OrdersServer interface { CreateOrder(context.Context, *CreateOrderRequest) (*CreateOrderResponse, error) GetOrderBySn(context.Context, *GetOrderBySnRequest) (*GetOrderBySnResponse, error) GetOrderStatusBySn(context.Context, *GetOrderStatusBySnRequest) (*GetOrderStatusBySnResponse, error) GetOrderByOrderId(context.Context, *GetOrderByOrderIdRequest) (*GetOrderByOrderIdResponse, error) GetOrdersByStatus(context.Context, *GetOrdersByStatusRequest) (*GetOrdersByStatusResponse, error) UpdateOrderBySn(context.Context, *UpdateOrderBySnRequest) (*UpdateOrderBySnResponse, error) RollbackOrderStatusBySn(context.Context, *UpdateOrderBySnRequest) (*UpdateOrderBySnResponse, error) UpdateOrderToPaidBySn(context.Context, *UpdOrderPaymentStatusRequest) (*UpdOrderPaymentStatusResponse, error) UpdateOrderToTimedOutBySn(context.Context, *UpdOrderPaymentStatusRequest) (*UpdOrderPaymentStatusResponse, error) RollbackCreateOrder(context.Context, *CreateOrderRequest) (*CreateOrderResponse, error) // contains filtered or unexported methods }
OrdersServer is the server API for Orders service. All implementations must embed UnimplementedOrdersServer for forward compatibility.
type RefundRecords ¶
type RefundRecords struct { RefundRecordsID int64 `protobuf:"varint,10,opt,name=RefundRecordsID,proto3" json:"RefundRecordsID,omitempty"` OrderID int64 `protobuf:"varint,20,opt,name=OrderID,proto3" json:"OrderID,omitempty"` UserId int64 `protobuf:"varint,30,opt,name=UserId,proto3" json:"UserId,omitempty"` OrderSn string `protobuf:"bytes,40,opt,name=OrderSn,proto3" json:"OrderSn,omitempty"` RefundAmount string `protobuf:"bytes,50,opt,name=RefundAmount,proto3" json:"RefundAmount,omitempty"` RefundSn string `protobuf:"bytes,60,opt,name=RefundSn,proto3" json:"RefundSn,omitempty"` RefundReason string `protobuf:"bytes,70,opt,name=RefundReason,proto3" json:"RefundReason,omitempty"` RefundStatus int32 `protobuf:"varint,80,opt,name=RefundStatus,proto3" json:"RefundStatus,omitempty"` RefundImageUrls []string `protobuf:"bytes,90,rep,name=RefundImageUrls,proto3" json:"RefundImageUrls,omitempty"` // contains filtered or unexported fields }
func (*RefundRecords) Descriptor
deprecated
func (*RefundRecords) Descriptor() ([]byte, []int)
Deprecated: Use RefundRecords.ProtoReflect.Descriptor instead.
func (*RefundRecords) GetOrderID ¶
func (x *RefundRecords) GetOrderID() int64
func (*RefundRecords) GetOrderSn ¶
func (x *RefundRecords) GetOrderSn() string
func (*RefundRecords) GetRefundAmount ¶
func (x *RefundRecords) GetRefundAmount() string
func (*RefundRecords) GetRefundImageUrls ¶
func (x *RefundRecords) GetRefundImageUrls() []string
func (*RefundRecords) GetRefundReason ¶
func (x *RefundRecords) GetRefundReason() string
func (*RefundRecords) GetRefundRecordsID ¶
func (x *RefundRecords) GetRefundRecordsID() int64
func (*RefundRecords) GetRefundSn ¶
func (x *RefundRecords) GetRefundSn() string
func (*RefundRecords) GetRefundStatus ¶
func (x *RefundRecords) GetRefundStatus() int32
func (*RefundRecords) GetUserId ¶
func (x *RefundRecords) GetUserId() int64
func (*RefundRecords) ProtoMessage ¶
func (*RefundRecords) ProtoMessage()
func (*RefundRecords) ProtoReflect ¶
func (x *RefundRecords) ProtoReflect() protoreflect.Message
func (*RefundRecords) Reset ¶
func (x *RefundRecords) Reset()
func (*RefundRecords) String ¶
func (x *RefundRecords) String() string
type RefundsClient ¶
type RefundsClient 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) }
RefundsClient is the client API for Refunds service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.
func NewRefundsClient ¶
func NewRefundsClient(cc grpc.ClientConnInterface) RefundsClient
type RefundsServer ¶
type RefundsServer interface { CreateRefundRecords(context.Context, *CreateRefundRecordsRequest) (*CreateRefundRecordsResponse, error) RollbackCreateRefundRecords(context.Context, *CreateRefundRecordsRequest) (*CreateRefundRecordsResponse, error) GetRefundRecords(context.Context, *GetRefundRecordsRequest) (*GetRefundRecordsResponse, error) GetRefundRecordByRefundId(context.Context, *GetRefundRecordByRefundIdRequest) (*GetRefundRecordByRefundIdResponse, error) // contains filtered or unexported methods }
RefundsServer is the server API for Refunds service. All implementations must embed UnimplementedRefundsServer for forward compatibility.
type UnimplementedOrdersServer ¶
type UnimplementedOrdersServer struct{}
UnimplementedOrdersServer must be embedded to have forward compatible implementations.
NOTE: this should be embedded by value instead of pointer to avoid a nil pointer dereference when methods are called.
func (UnimplementedOrdersServer) CreateOrder ¶
func (UnimplementedOrdersServer) CreateOrder(context.Context, *CreateOrderRequest) (*CreateOrderResponse, error)
func (UnimplementedOrdersServer) GetOrderByOrderId ¶
func (UnimplementedOrdersServer) GetOrderByOrderId(context.Context, *GetOrderByOrderIdRequest) (*GetOrderByOrderIdResponse, error)
func (UnimplementedOrdersServer) GetOrderBySn ¶
func (UnimplementedOrdersServer) GetOrderBySn(context.Context, *GetOrderBySnRequest) (*GetOrderBySnResponse, error)
func (UnimplementedOrdersServer) GetOrderStatusBySn ¶
func (UnimplementedOrdersServer) GetOrderStatusBySn(context.Context, *GetOrderStatusBySnRequest) (*GetOrderStatusBySnResponse, error)
func (UnimplementedOrdersServer) GetOrdersByStatus ¶
func (UnimplementedOrdersServer) GetOrdersByStatus(context.Context, *GetOrdersByStatusRequest) (*GetOrdersByStatusResponse, error)
func (UnimplementedOrdersServer) RollbackCreateOrder ¶
func (UnimplementedOrdersServer) RollbackCreateOrder(context.Context, *CreateOrderRequest) (*CreateOrderResponse, error)
func (UnimplementedOrdersServer) RollbackOrderStatusBySn ¶
func (UnimplementedOrdersServer) RollbackOrderStatusBySn(context.Context, *UpdateOrderBySnRequest) (*UpdateOrderBySnResponse, error)
func (UnimplementedOrdersServer) UpdateOrderBySn ¶
func (UnimplementedOrdersServer) UpdateOrderBySn(context.Context, *UpdateOrderBySnRequest) (*UpdateOrderBySnResponse, error)
func (UnimplementedOrdersServer) UpdateOrderToPaidBySn ¶
func (UnimplementedOrdersServer) UpdateOrderToPaidBySn(context.Context, *UpdOrderPaymentStatusRequest) (*UpdOrderPaymentStatusResponse, error)
func (UnimplementedOrdersServer) UpdateOrderToTimedOutBySn ¶
func (UnimplementedOrdersServer) UpdateOrderToTimedOutBySn(context.Context, *UpdOrderPaymentStatusRequest) (*UpdOrderPaymentStatusResponse, error)
type UnimplementedRefundsServer ¶
type UnimplementedRefundsServer struct{}
UnimplementedRefundsServer must be embedded to have forward compatible implementations.
NOTE: this should be embedded by value instead of pointer to avoid a nil pointer dereference when methods are called.
func (UnimplementedRefundsServer) CreateRefundRecords ¶
func (UnimplementedRefundsServer) CreateRefundRecords(context.Context, *CreateRefundRecordsRequest) (*CreateRefundRecordsResponse, error)
func (UnimplementedRefundsServer) GetRefundRecordByRefundId ¶
func (UnimplementedRefundsServer) GetRefundRecordByRefundId(context.Context, *GetRefundRecordByRefundIdRequest) (*GetRefundRecordByRefundIdResponse, error)
func (UnimplementedRefundsServer) GetRefundRecords ¶
func (UnimplementedRefundsServer) GetRefundRecords(context.Context, *GetRefundRecordsRequest) (*GetRefundRecordsResponse, error)
func (UnimplementedRefundsServer) RollbackCreateRefundRecords ¶
func (UnimplementedRefundsServer) RollbackCreateRefundRecords(context.Context, *CreateRefundRecordsRequest) (*CreateRefundRecordsResponse, error)
type UnsafeOrdersServer ¶
type UnsafeOrdersServer interface {
// contains filtered or unexported methods
}
UnsafeOrdersServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to OrdersServer will result in compilation errors.
type UnsafeRefundsServer ¶
type UnsafeRefundsServer interface {
// contains filtered or unexported methods
}
UnsafeRefundsServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to RefundsServer will result in compilation errors.
type UpdOrderPaymentStatusRequest ¶
type UpdOrderPaymentStatusRequest struct { OrderSn string `protobuf:"bytes,10,opt,name=OrderSn,proto3" json:"OrderSn,omitempty"` PayTime string `protobuf:"bytes,20,opt,name=PayTime,proto3" json:"PayTime,omitempty"` // contains filtered or unexported fields }
func (*UpdOrderPaymentStatusRequest) Descriptor
deprecated
func (*UpdOrderPaymentStatusRequest) Descriptor() ([]byte, []int)
Deprecated: Use UpdOrderPaymentStatusRequest.ProtoReflect.Descriptor instead.
func (*UpdOrderPaymentStatusRequest) GetOrderSn ¶
func (x *UpdOrderPaymentStatusRequest) GetOrderSn() string
func (*UpdOrderPaymentStatusRequest) GetPayTime ¶
func (x *UpdOrderPaymentStatusRequest) GetPayTime() string
func (*UpdOrderPaymentStatusRequest) ProtoMessage ¶
func (*UpdOrderPaymentStatusRequest) ProtoMessage()
func (*UpdOrderPaymentStatusRequest) ProtoReflect ¶
func (x *UpdOrderPaymentStatusRequest) ProtoReflect() protoreflect.Message
func (*UpdOrderPaymentStatusRequest) Reset ¶
func (x *UpdOrderPaymentStatusRequest) Reset()
func (*UpdOrderPaymentStatusRequest) String ¶
func (x *UpdOrderPaymentStatusRequest) String() string
type UpdOrderPaymentStatusResponse ¶
type UpdOrderPaymentStatusResponse struct {
// contains filtered or unexported fields
}
func (*UpdOrderPaymentStatusResponse) Descriptor
deprecated
func (*UpdOrderPaymentStatusResponse) Descriptor() ([]byte, []int)
Deprecated: Use UpdOrderPaymentStatusResponse.ProtoReflect.Descriptor instead.
func (*UpdOrderPaymentStatusResponse) ProtoMessage ¶
func (*UpdOrderPaymentStatusResponse) ProtoMessage()
func (*UpdOrderPaymentStatusResponse) ProtoReflect ¶
func (x *UpdOrderPaymentStatusResponse) ProtoReflect() protoreflect.Message
func (*UpdOrderPaymentStatusResponse) Reset ¶
func (x *UpdOrderPaymentStatusResponse) Reset()
func (*UpdOrderPaymentStatusResponse) String ¶
func (x *UpdOrderPaymentStatusResponse) String() string
type UpdateOrderBySnRequest ¶
type UpdateOrderBySnRequest struct { OrderSn string `protobuf:"bytes,10,opt,name=OrderSn,proto3" json:"OrderSn,omitempty"` Status int32 `protobuf:"varint,20,opt,name=Status,proto3" json:"Status,omitempty"` PayTime string `protobuf:"bytes,30,opt,name=PayTime,proto3" json:"PayTime,omitempty"` RefundableOrNot int32 `protobuf:"varint,40,opt,name=RefundableOrNot,proto3" json:"RefundableOrNot,omitempty"` RollbackStatus int32 `protobuf:"varint,50,opt,name=RollbackStatus,proto3" json:"RollbackStatus,omitempty"` RollbackRefundableOrNot int32 `protobuf:"varint,60,opt,name=RollbackRefundableOrNot,proto3" json:"RollbackRefundableOrNot,omitempty"` // contains filtered or unexported fields }
func (*UpdateOrderBySnRequest) Descriptor
deprecated
func (*UpdateOrderBySnRequest) Descriptor() ([]byte, []int)
Deprecated: Use UpdateOrderBySnRequest.ProtoReflect.Descriptor instead.
func (*UpdateOrderBySnRequest) GetOrderSn ¶
func (x *UpdateOrderBySnRequest) GetOrderSn() string
func (*UpdateOrderBySnRequest) GetPayTime ¶
func (x *UpdateOrderBySnRequest) GetPayTime() string
func (*UpdateOrderBySnRequest) GetRefundableOrNot ¶
func (x *UpdateOrderBySnRequest) GetRefundableOrNot() int32
func (*UpdateOrderBySnRequest) GetRollbackRefundableOrNot ¶
func (x *UpdateOrderBySnRequest) GetRollbackRefundableOrNot() int32
func (*UpdateOrderBySnRequest) GetRollbackStatus ¶
func (x *UpdateOrderBySnRequest) GetRollbackStatus() int32
func (*UpdateOrderBySnRequest) GetStatus ¶
func (x *UpdateOrderBySnRequest) GetStatus() int32
func (*UpdateOrderBySnRequest) ProtoMessage ¶
func (*UpdateOrderBySnRequest) ProtoMessage()
func (*UpdateOrderBySnRequest) ProtoReflect ¶
func (x *UpdateOrderBySnRequest) ProtoReflect() protoreflect.Message
func (*UpdateOrderBySnRequest) Reset ¶
func (x *UpdateOrderBySnRequest) Reset()
func (*UpdateOrderBySnRequest) String ¶
func (x *UpdateOrderBySnRequest) String() string
type UpdateOrderBySnResponse ¶
type UpdateOrderBySnResponse struct {
// contains filtered or unexported fields
}
func (*UpdateOrderBySnResponse) Descriptor
deprecated
func (*UpdateOrderBySnResponse) Descriptor() ([]byte, []int)
Deprecated: Use UpdateOrderBySnResponse.ProtoReflect.Descriptor instead.
func (*UpdateOrderBySnResponse) ProtoMessage ¶
func (*UpdateOrderBySnResponse) ProtoMessage()
func (*UpdateOrderBySnResponse) ProtoReflect ¶
func (x *UpdateOrderBySnResponse) ProtoReflect() protoreflect.Message
func (*UpdateOrderBySnResponse) Reset ¶
func (x *UpdateOrderBySnResponse) Reset()
func (*UpdateOrderBySnResponse) String ¶
func (x *UpdateOrderBySnResponse) String() string