order

package
v0.0.0-...-a16dd36 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 5, 2022 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_proto_order_order_proto protoreflect.FileDescriptor

Functions

func NewOrderEndpoints

func NewOrderEndpoints() []*api.Endpoint

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) Descriptor() ([]byte, []int)

Deprecated: Use AllOrder.ProtoReflect.Descriptor instead.

func (*AllOrder) GetOrderInfo

func (x *AllOrder) GetOrderInfo() []*OrderInfo

func (*AllOrder) ProtoMessage

func (*AllOrder) ProtoMessage()

func (*AllOrder) ProtoReflect

func (x *AllOrder) ProtoReflect() protoreflect.Message

func (*AllOrder) Reset

func (x *AllOrder) Reset()

func (*AllOrder) String

func (x *AllOrder) String() string

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) Descriptor() ([]byte, []int)

Deprecated: Use OrderID.ProtoReflect.Descriptor instead.

func (*OrderID) GetOrderId

func (x *OrderID) GetOrderId() int64

func (*OrderID) ProtoMessage

func (*OrderID) ProtoMessage()

func (*OrderID) ProtoReflect

func (x *OrderID) ProtoReflect() protoreflect.Message

func (*OrderID) Reset

func (x *OrderID) Reset()

func (*OrderID) String

func (x *OrderID) String() string

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) Descriptor() ([]byte, []int)

Deprecated: Use OrderInfo.ProtoReflect.Descriptor instead.

func (*OrderInfo) GetId

func (x *OrderInfo) GetId() int64

func (*OrderInfo) GetOrderDetail

func (x *OrderInfo) GetOrderDetail() []*OrderDetail

func (*OrderInfo) GetPayStatus

func (x *OrderInfo) GetPayStatus() int32

func (*OrderInfo) GetPrice

func (x *OrderInfo) GetPrice() float64

func (*OrderInfo) GetShipStatus

func (x *OrderInfo) GetShipStatus() int32

func (*OrderInfo) ProtoMessage

func (*OrderInfo) ProtoMessage()

func (*OrderInfo) ProtoReflect

func (x *OrderInfo) ProtoReflect() protoreflect.Message

func (*OrderInfo) Reset

func (x *OrderInfo) Reset()

func (*OrderInfo) String

func (x *OrderInfo) String() string

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) Descriptor() ([]byte, []int)

Deprecated: Use PayStatus.ProtoReflect.Descriptor instead.

func (*PayStatus) GetOrderId

func (x *PayStatus) GetOrderId() int64

func (*PayStatus) GetPayStatus

func (x *PayStatus) GetPayStatus() int32

func (*PayStatus) ProtoMessage

func (*PayStatus) ProtoMessage()

func (*PayStatus) ProtoReflect

func (x *PayStatus) ProtoReflect() protoreflect.Message

func (*PayStatus) Reset

func (x *PayStatus) Reset()

func (*PayStatus) String

func (x *PayStatus) String() string

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) Descriptor() ([]byte, []int)

Deprecated: Use Response.ProtoReflect.Descriptor instead.

func (*Response) GetMsg

func (x *Response) GetMsg() string

func (*Response) ProtoMessage

func (*Response) ProtoMessage()

func (*Response) ProtoReflect

func (x *Response) ProtoReflect() protoreflect.Message

func (*Response) Reset

func (x *Response) Reset()

func (*Response) String

func (x *Response) String() string

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL