Documentation ¶
Index ¶
- Variables
- func NewOrderEndpoints() []*api.Endpoint
- func RegisterOrderHandler(s server.Server, hdlr OrderHandler, opts ...server.HandlerOption) error
- type AllOrder
- type AllOrderRequest
- type OrderDetail
- func (*OrderDetail) Descriptor() ([]byte, []int)deprecated
- func (x *OrderDetail) GetId() int64
- func (x *OrderDetail) GetOrderId() int64
- func (x *OrderDetail) GetProductId() int64
- func (x *OrderDetail) GetProductNum() int64
- func (x *OrderDetail) GetProductPrice() int64
- func (x *OrderDetail) GetProductSizeId() int64
- func (*OrderDetail) ProtoMessage()
- func (x *OrderDetail) ProtoReflect() protoreflect.Message
- func (x *OrderDetail) Reset()
- func (x *OrderDetail) String() string
- type OrderHandler
- type OrderID
- type OrderInfo
- func (*OrderInfo) Descriptor() ([]byte, []int)deprecated
- func (x *OrderInfo) GetId() int64
- func (x *OrderInfo) GetOrderDetail() []*OrderDetail
- func (x *OrderInfo) GetPayStatus() int32
- func (x *OrderInfo) GetPrice() float64
- func (x *OrderInfo) GetShipStatus() int32
- func (*OrderInfo) ProtoMessage()
- func (x *OrderInfo) ProtoReflect() protoreflect.Message
- func (x *OrderInfo) Reset()
- func (x *OrderInfo) String() string
- type OrderService
- type PayStatus
- type Response
- type ShipStatus
Constants ¶
This section is empty.
Variables ¶
View Source
var File_proto_order_order_proto protoreflect.FileDescriptor
Functions ¶
func NewOrderEndpoints ¶
func RegisterOrderHandler ¶
func RegisterOrderHandler(s server.Server, hdlr OrderHandler, opts ...server.HandlerOption) error
Types ¶
type AllOrder ¶
type AllOrder struct { OrderInfo []*OrderInfo `protobuf:"bytes,1,rep,name=order_info,json=orderInfo,proto3" json:"order_info,omitempty"` // contains filtered or unexported fields }
func (*AllOrder) Descriptor
deprecated
func (*AllOrder) GetOrderInfo ¶
func (*AllOrder) ProtoMessage ¶
func (*AllOrder) ProtoMessage()
func (*AllOrder) ProtoReflect ¶
func (x *AllOrder) ProtoReflect() protoreflect.Message
type AllOrderRequest ¶
type AllOrderRequest struct {
// contains filtered or unexported fields
}
func (*AllOrderRequest) Descriptor
deprecated
func (*AllOrderRequest) Descriptor() ([]byte, []int)
Deprecated: Use AllOrderRequest.ProtoReflect.Descriptor instead.
func (*AllOrderRequest) ProtoMessage ¶
func (*AllOrderRequest) ProtoMessage()
func (*AllOrderRequest) ProtoReflect ¶
func (x *AllOrderRequest) ProtoReflect() protoreflect.Message
func (*AllOrderRequest) Reset ¶
func (x *AllOrderRequest) Reset()
func (*AllOrderRequest) String ¶
func (x *AllOrderRequest) String() string
type OrderDetail ¶
type OrderDetail struct { Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` ProductId int64 `protobuf:"varint,2,opt,name=product_id,json=productId,proto3" json:"product_id,omitempty"` ProductNum int64 `protobuf:"varint,3,opt,name=product_num,json=productNum,proto3" json:"product_num,omitempty"` ProductSizeId int64 `protobuf:"varint,4,opt,name=product_size_id,json=productSizeId,proto3" json:"product_size_id,omitempty"` ProductPrice int64 `protobuf:"varint,5,opt,name=product_price,json=productPrice,proto3" json:"product_price,omitempty"` OrderId int64 `protobuf:"varint,6,opt,name=order_id,json=orderId,proto3" json:"order_id,omitempty"` // contains filtered or unexported fields }
func (*OrderDetail) Descriptor
deprecated
func (*OrderDetail) Descriptor() ([]byte, []int)
Deprecated: Use OrderDetail.ProtoReflect.Descriptor instead.
func (*OrderDetail) GetId ¶
func (x *OrderDetail) GetId() int64
func (*OrderDetail) GetOrderId ¶
func (x *OrderDetail) GetOrderId() int64
func (*OrderDetail) GetProductId ¶
func (x *OrderDetail) GetProductId() int64
func (*OrderDetail) GetProductNum ¶
func (x *OrderDetail) GetProductNum() int64
func (*OrderDetail) GetProductPrice ¶
func (x *OrderDetail) GetProductPrice() int64
func (*OrderDetail) GetProductSizeId ¶
func (x *OrderDetail) GetProductSizeId() int64
func (*OrderDetail) ProtoMessage ¶
func (*OrderDetail) ProtoMessage()
func (*OrderDetail) ProtoReflect ¶
func (x *OrderDetail) ProtoReflect() protoreflect.Message
func (*OrderDetail) Reset ¶
func (x *OrderDetail) Reset()
func (*OrderDetail) String ¶
func (x *OrderDetail) String() string
type OrderHandler ¶
type OrderHandler interface { GetOrderByID(context.Context, *OrderID, *OrderInfo) error GetAllOrder(context.Context, *AllOrderRequest, *AllOrder) error CreateOrder(context.Context, *OrderInfo, *OrderID) error DeleteOrderByID(context.Context, *OrderID, *Response) error UpdateOrderPayStatus(context.Context, *PayStatus, *Response) error UpdateOrderShipStatus(context.Context, *ShipStatus, *Response) error UpdateOrder(context.Context, *OrderInfo, *Response) error }
type OrderID ¶
type OrderID struct { OrderId int64 `protobuf:"varint,1,opt,name=order_id,json=orderId,proto3" json:"order_id,omitempty"` // contains filtered or unexported fields }
func (*OrderID) Descriptor
deprecated
func (*OrderID) GetOrderId ¶
func (*OrderID) ProtoMessage ¶
func (*OrderID) ProtoMessage()
func (*OrderID) ProtoReflect ¶
func (x *OrderID) ProtoReflect() protoreflect.Message
type OrderInfo ¶
type OrderInfo struct { Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` PayStatus int32 `protobuf:"varint,2,opt,name=pay_status,json=payStatus,proto3" json:"pay_status,omitempty"` ShipStatus int32 `protobuf:"varint,3,opt,name=ship_status,json=shipStatus,proto3" json:"ship_status,omitempty"` Price float64 `protobuf:"fixed64,4,opt,name=price,proto3" json:"price,omitempty"` OrderDetail []*OrderDetail `protobuf:"bytes,5,rep,name=order_detail,json=orderDetail,proto3" json:"order_detail,omitempty"` // contains filtered or unexported fields }
func (*OrderInfo) Descriptor
deprecated
func (*OrderInfo) GetOrderDetail ¶
func (x *OrderInfo) GetOrderDetail() []*OrderDetail
func (*OrderInfo) GetPayStatus ¶
func (*OrderInfo) GetShipStatus ¶
func (*OrderInfo) ProtoMessage ¶
func (*OrderInfo) ProtoMessage()
func (*OrderInfo) ProtoReflect ¶
func (x *OrderInfo) ProtoReflect() protoreflect.Message
type OrderService ¶
type OrderService interface { GetOrderByID(ctx context.Context, in *OrderID, opts ...client.CallOption) (*OrderInfo, error) GetAllOrder(ctx context.Context, in *AllOrderRequest, opts ...client.CallOption) (*AllOrder, error) CreateOrder(ctx context.Context, in *OrderInfo, opts ...client.CallOption) (*OrderID, error) DeleteOrderByID(ctx context.Context, in *OrderID, opts ...client.CallOption) (*Response, error) UpdateOrderPayStatus(ctx context.Context, in *PayStatus, opts ...client.CallOption) (*Response, error) UpdateOrderShipStatus(ctx context.Context, in *ShipStatus, opts ...client.CallOption) (*Response, error) UpdateOrder(ctx context.Context, in *OrderInfo, opts ...client.CallOption) (*Response, error) }
func NewOrderService ¶
func NewOrderService(name string, c client.Client) OrderService
type PayStatus ¶
type PayStatus struct { OrderId int64 `protobuf:"varint,1,opt,name=order_id,json=orderId,proto3" json:"order_id,omitempty"` PayStatus int32 `protobuf:"varint,2,opt,name=pay_status,json=payStatus,proto3" json:"pay_status,omitempty"` // contains filtered or unexported fields }
func (*PayStatus) Descriptor
deprecated
func (*PayStatus) GetOrderId ¶
func (*PayStatus) GetPayStatus ¶
func (*PayStatus) ProtoMessage ¶
func (*PayStatus) ProtoMessage()
func (*PayStatus) ProtoReflect ¶
func (x *PayStatus) ProtoReflect() protoreflect.Message
type Response ¶
type Response struct { Msg string `protobuf:"bytes,1,opt,name=msg,proto3" json:"msg,omitempty"` // contains filtered or unexported fields }
func (*Response) Descriptor
deprecated
func (*Response) ProtoMessage ¶
func (*Response) ProtoMessage()
func (*Response) ProtoReflect ¶
func (x *Response) ProtoReflect() protoreflect.Message
type ShipStatus ¶
type ShipStatus struct { OrderId int64 `protobuf:"varint,1,opt,name=order_id,json=orderId,proto3" json:"order_id,omitempty"` ShipStatus int32 `protobuf:"varint,2,opt,name=ship_status,json=shipStatus,proto3" json:"ship_status,omitempty"` // contains filtered or unexported fields }
func (*ShipStatus) Descriptor
deprecated
func (*ShipStatus) Descriptor() ([]byte, []int)
Deprecated: Use ShipStatus.ProtoReflect.Descriptor instead.
func (*ShipStatus) GetOrderId ¶
func (x *ShipStatus) GetOrderId() int64
func (*ShipStatus) GetShipStatus ¶
func (x *ShipStatus) GetShipStatus() int32
func (*ShipStatus) ProtoMessage ¶
func (*ShipStatus) ProtoMessage()
func (*ShipStatus) ProtoReflect ¶
func (x *ShipStatus) ProtoReflect() protoreflect.Message
func (*ShipStatus) Reset ¶
func (x *ShipStatus) Reset()
func (*ShipStatus) String ¶
func (x *ShipStatus) String() string
Click to show internal directories.
Click to hide internal directories.