Documentation ¶
Index ¶
- Variables
- func RegisterOrderServer(s grpc.ServiceRegistrar, srv OrderServer)
- type Code
- type CreateOrderReply
- func (*CreateOrderReply) Descriptor() ([]byte, []int)deprecated
- func (x *CreateOrderReply) GetCode() Code
- func (x *CreateOrderReply) GetData() *CreateOrderReplyOrder
- func (x *CreateOrderReply) GetMsg() string
- func (*CreateOrderReply) ProtoMessage()
- func (x *CreateOrderReply) ProtoReflect() protoreflect.Message
- func (x *CreateOrderReply) Reset()
- func (x *CreateOrderReply) String() string
- func (m *CreateOrderReply) Validate() error
- type CreateOrderReplyOrder
- func (*CreateOrderReplyOrder) Descriptor() ([]byte, []int)deprecated
- func (x *CreateOrderReplyOrder) GetId() int64
- func (*CreateOrderReplyOrder) ProtoMessage()
- func (x *CreateOrderReplyOrder) ProtoReflect() protoreflect.Message
- func (x *CreateOrderReplyOrder) Reset()
- func (x *CreateOrderReplyOrder) String() string
- func (m *CreateOrderReplyOrder) Validate() error
- type CreateOrderReplyOrderValidationError
- func (e CreateOrderReplyOrderValidationError) Cause() error
- func (e CreateOrderReplyOrderValidationError) Error() string
- func (e CreateOrderReplyOrderValidationError) ErrorName() string
- func (e CreateOrderReplyOrderValidationError) Field() string
- func (e CreateOrderReplyOrderValidationError) Key() bool
- func (e CreateOrderReplyOrderValidationError) Reason() string
- type CreateOrderReplyValidationError
- func (e CreateOrderReplyValidationError) Cause() error
- func (e CreateOrderReplyValidationError) Error() string
- func (e CreateOrderReplyValidationError) ErrorName() string
- func (e CreateOrderReplyValidationError) Field() string
- func (e CreateOrderReplyValidationError) Key() bool
- func (e CreateOrderReplyValidationError) Reason() string
- type CreateOrderReq
- func (*CreateOrderReq) Descriptor() ([]byte, []int)deprecated
- func (x *CreateOrderReq) GetExtra() string
- func (x *CreateOrderReq) GetItems() []*CreateOrderReqItem
- func (x *CreateOrderReq) GetRemark() string
- func (x *CreateOrderReq) GetUserAddress() string
- func (x *CreateOrderReq) GetUserName() string
- func (x *CreateOrderReq) GetUserPhone() string
- func (*CreateOrderReq) ProtoMessage()
- func (x *CreateOrderReq) ProtoReflect() protoreflect.Message
- func (x *CreateOrderReq) Reset()
- func (x *CreateOrderReq) String() string
- func (m *CreateOrderReq) Validate() error
- type CreateOrderReqItem
- func (*CreateOrderReqItem) Descriptor() ([]byte, []int)deprecated
- func (x *CreateOrderReqItem) GetAmount() int64
- func (x *CreateOrderReqItem) GetImage() string
- func (x *CreateOrderReqItem) GetPrice() int64
- func (x *CreateOrderReqItem) GetProductId() int64
- func (x *CreateOrderReqItem) GetProductSkuId() int64
- func (x *CreateOrderReqItem) GetTitle() string
- func (*CreateOrderReqItem) ProtoMessage()
- func (x *CreateOrderReqItem) ProtoReflect() protoreflect.Message
- func (x *CreateOrderReqItem) Reset()
- func (x *CreateOrderReqItem) String() string
- func (m *CreateOrderReqItem) Validate() error
- type CreateOrderReqItemValidationError
- func (e CreateOrderReqItemValidationError) Cause() error
- func (e CreateOrderReqItemValidationError) Error() string
- func (e CreateOrderReqItemValidationError) ErrorName() string
- func (e CreateOrderReqItemValidationError) Field() string
- func (e CreateOrderReqItemValidationError) Key() bool
- func (e CreateOrderReqItemValidationError) Reason() string
- type CreateOrderReqValidationError
- func (e CreateOrderReqValidationError) Cause() error
- func (e CreateOrderReqValidationError) Error() string
- func (e CreateOrderReqValidationError) ErrorName() string
- func (e CreateOrderReqValidationError) Field() string
- func (e CreateOrderReqValidationError) Key() bool
- func (e CreateOrderReqValidationError) Reason() string
- type OrderClient
- type OrderInfo
- func (*OrderInfo) Descriptor() ([]byte, []int)deprecated
- func (x *OrderInfo) GetExtra() string
- func (x *OrderInfo) GetId() int64
- func (x *OrderInfo) GetOrderId() string
- func (x *OrderInfo) GetOrderStatus() int32
- func (x *OrderInfo) GetPaidAt() int64
- func (x *OrderInfo) GetPaymentNo() string
- func (x *OrderInfo) GetRefundNo() int32
- func (x *OrderInfo) GetRefundStatus() int32
- func (x *OrderInfo) GetRemark() string
- func (x *OrderInfo) GetTotalAmount() string
- func (x *OrderInfo) GetUserAddress() string
- func (x *OrderInfo) GetUserName() string
- func (x *OrderInfo) GetUserPhone() string
- func (*OrderInfo) ProtoMessage()
- func (x *OrderInfo) ProtoReflect() protoreflect.Message
- func (x *OrderInfo) Reset()
- func (x *OrderInfo) String() string
- func (m *OrderInfo) Validate() error
- type OrderInfoValidationError
- type OrderItemInfo
- func (*OrderItemInfo) Descriptor() ([]byte, []int)deprecated
- func (x *OrderItemInfo) GetAmount() int64
- func (x *OrderItemInfo) GetId() int64
- func (x *OrderItemInfo) GetImage() string
- func (x *OrderItemInfo) GetOrderId() string
- func (x *OrderItemInfo) GetPrice() int64
- func (x *OrderItemInfo) GetProductId() int64
- func (x *OrderItemInfo) GetProductSkuId() int64
- func (x *OrderItemInfo) GetTitle() string
- func (*OrderItemInfo) ProtoMessage()
- func (x *OrderItemInfo) ProtoReflect() protoreflect.Message
- func (x *OrderItemInfo) Reset()
- func (x *OrderItemInfo) String() string
- func (m *OrderItemInfo) Validate() error
- type OrderItemInfoValidationError
- func (e OrderItemInfoValidationError) Cause() error
- func (e OrderItemInfoValidationError) Error() string
- func (e OrderItemInfoValidationError) ErrorName() string
- func (e OrderItemInfoValidationError) Field() string
- func (e OrderItemInfoValidationError) Key() bool
- func (e OrderItemInfoValidationError) Reason() string
- type OrderPaidReply
- func (*OrderPaidReply) Descriptor() ([]byte, []int)deprecated
- func (x *OrderPaidReply) GetCode() Code
- func (x *OrderPaidReply) GetData() *OrderPaidReplyOrder
- func (x *OrderPaidReply) GetMsg() string
- func (*OrderPaidReply) ProtoMessage()
- func (x *OrderPaidReply) ProtoReflect() protoreflect.Message
- func (x *OrderPaidReply) Reset()
- func (x *OrderPaidReply) String() string
- func (m *OrderPaidReply) Validate() error
- type OrderPaidReplyOrder
- func (*OrderPaidReplyOrder) Descriptor() ([]byte, []int)deprecated
- func (x *OrderPaidReplyOrder) GetId() int64
- func (*OrderPaidReplyOrder) ProtoMessage()
- func (x *OrderPaidReplyOrder) ProtoReflect() protoreflect.Message
- func (x *OrderPaidReplyOrder) Reset()
- func (x *OrderPaidReplyOrder) String() string
- func (m *OrderPaidReplyOrder) Validate() error
- type OrderPaidReplyOrderValidationError
- func (e OrderPaidReplyOrderValidationError) Cause() error
- func (e OrderPaidReplyOrderValidationError) Error() string
- func (e OrderPaidReplyOrderValidationError) ErrorName() string
- func (e OrderPaidReplyOrderValidationError) Field() string
- func (e OrderPaidReplyOrderValidationError) Key() bool
- func (e OrderPaidReplyOrderValidationError) Reason() string
- type OrderPaidReplyValidationError
- func (e OrderPaidReplyValidationError) Cause() error
- func (e OrderPaidReplyValidationError) Error() string
- func (e OrderPaidReplyValidationError) ErrorName() string
- func (e OrderPaidReplyValidationError) Field() string
- func (e OrderPaidReplyValidationError) Key() bool
- func (e OrderPaidReplyValidationError) Reason() string
- type OrderPaidReq
- func (*OrderPaidReq) Descriptor() ([]byte, []int)deprecated
- func (x *OrderPaidReq) GetOrderId() string
- func (x *OrderPaidReq) GetPaidAmount() int64
- func (x *OrderPaidReq) GetPaidAt() int64
- func (x *OrderPaidReq) GetPaymentNo() string
- func (*OrderPaidReq) ProtoMessage()
- func (x *OrderPaidReq) ProtoReflect() protoreflect.Message
- func (x *OrderPaidReq) Reset()
- func (x *OrderPaidReq) String() string
- func (m *OrderPaidReq) Validate() error
- type OrderPaidReqValidationError
- func (e OrderPaidReqValidationError) Cause() error
- func (e OrderPaidReqValidationError) Error() string
- func (e OrderPaidReqValidationError) ErrorName() string
- func (e OrderPaidReqValidationError) Field() string
- func (e OrderPaidReqValidationError) Key() bool
- func (e OrderPaidReqValidationError) Reason() string
- type OrderServer
- type UnimplementedOrderServer
- type UnsafeOrderServer
Constants ¶
This section is empty.
Variables ¶
var ( Code_name = map[int32]string{ 0: "NOKnow", 200: "Success", 20001: "CreateErr", 20002: "OrderPaidErr", } Code_value = map[string]int32{ "NOKnow": 0, "Success": 200, "CreateErr": 20001, "OrderPaidErr": 20002, } )
Enum value maps for Code.
var File_order_proto protoreflect.FileDescriptor
var Order_ServiceDesc = grpc.ServiceDesc{ ServiceName: "Order", HandlerType: (*OrderServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "CreateOrder", Handler: _Order_CreateOrder_Handler, }, { MethodName: "OrderPaid", Handler: _Order_OrderPaid_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "order.proto", }
Order_ServiceDesc is the grpc.ServiceDesc for Order service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
Functions ¶
func RegisterOrderServer ¶
func RegisterOrderServer(s grpc.ServiceRegistrar, srv OrderServer)
Types ¶
type Code ¶
type Code int32
func (Code) Descriptor ¶
func (Code) Descriptor() protoreflect.EnumDescriptor
func (Code) EnumDescriptor
deprecated
func (Code) Number ¶
func (x Code) Number() protoreflect.EnumNumber
func (Code) Type ¶
func (Code) Type() protoreflect.EnumType
type CreateOrderReply ¶
type CreateOrderReply struct { Code Code `protobuf:"varint,1,opt,name=code,proto3,enum=Code" json:"code,omitempty"` Msg string `protobuf:"bytes,2,opt,name=msg,proto3" json:"msg,omitempty"` Data *CreateOrderReplyOrder `protobuf:"bytes,3,opt,name=data,proto3" json:"data,omitempty"` // contains filtered or unexported fields }
func (*CreateOrderReply) Descriptor
deprecated
func (*CreateOrderReply) Descriptor() ([]byte, []int)
Deprecated: Use CreateOrderReply.ProtoReflect.Descriptor instead.
func (*CreateOrderReply) GetCode ¶
func (x *CreateOrderReply) GetCode() Code
func (*CreateOrderReply) GetData ¶
func (x *CreateOrderReply) GetData() *CreateOrderReplyOrder
func (*CreateOrderReply) GetMsg ¶
func (x *CreateOrderReply) GetMsg() string
func (*CreateOrderReply) ProtoMessage ¶
func (*CreateOrderReply) ProtoMessage()
func (*CreateOrderReply) ProtoReflect ¶
func (x *CreateOrderReply) ProtoReflect() protoreflect.Message
func (*CreateOrderReply) Reset ¶
func (x *CreateOrderReply) Reset()
func (*CreateOrderReply) String ¶
func (x *CreateOrderReply) String() string
func (*CreateOrderReply) Validate ¶
func (m *CreateOrderReply) Validate() error
Validate checks the field values on CreateOrderReply with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.
type CreateOrderReplyOrder ¶
type CreateOrderReplyOrder struct { Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` // contains filtered or unexported fields }
func (*CreateOrderReplyOrder) Descriptor
deprecated
func (*CreateOrderReplyOrder) Descriptor() ([]byte, []int)
Deprecated: Use CreateOrderReplyOrder.ProtoReflect.Descriptor instead.
func (*CreateOrderReplyOrder) GetId ¶
func (x *CreateOrderReplyOrder) GetId() int64
func (*CreateOrderReplyOrder) ProtoMessage ¶
func (*CreateOrderReplyOrder) ProtoMessage()
func (*CreateOrderReplyOrder) ProtoReflect ¶
func (x *CreateOrderReplyOrder) ProtoReflect() protoreflect.Message
func (*CreateOrderReplyOrder) Reset ¶
func (x *CreateOrderReplyOrder) Reset()
func (*CreateOrderReplyOrder) String ¶
func (x *CreateOrderReplyOrder) String() string
func (*CreateOrderReplyOrder) Validate ¶
func (m *CreateOrderReplyOrder) Validate() error
Validate checks the field values on CreateOrderReplyOrder with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.
type CreateOrderReplyOrderValidationError ¶
type CreateOrderReplyOrderValidationError struct {
// contains filtered or unexported fields
}
CreateOrderReplyOrderValidationError is the validation error returned by CreateOrderReplyOrder.Validate if the designated constraints aren't met.
func (CreateOrderReplyOrderValidationError) Cause ¶
func (e CreateOrderReplyOrderValidationError) Cause() error
Cause function returns cause value.
func (CreateOrderReplyOrderValidationError) Error ¶
func (e CreateOrderReplyOrderValidationError) Error() string
Error satisfies the builtin error interface
func (CreateOrderReplyOrderValidationError) ErrorName ¶
func (e CreateOrderReplyOrderValidationError) ErrorName() string
ErrorName returns error name.
func (CreateOrderReplyOrderValidationError) Field ¶
func (e CreateOrderReplyOrderValidationError) Field() string
Field function returns field value.
func (CreateOrderReplyOrderValidationError) Key ¶
func (e CreateOrderReplyOrderValidationError) Key() bool
Key function returns key value.
func (CreateOrderReplyOrderValidationError) Reason ¶
func (e CreateOrderReplyOrderValidationError) Reason() string
Reason function returns reason value.
type CreateOrderReplyValidationError ¶
type CreateOrderReplyValidationError struct {
// contains filtered or unexported fields
}
CreateOrderReplyValidationError is the validation error returned by CreateOrderReply.Validate if the designated constraints aren't met.
func (CreateOrderReplyValidationError) Cause ¶
func (e CreateOrderReplyValidationError) Cause() error
Cause function returns cause value.
func (CreateOrderReplyValidationError) Error ¶
func (e CreateOrderReplyValidationError) Error() string
Error satisfies the builtin error interface
func (CreateOrderReplyValidationError) ErrorName ¶
func (e CreateOrderReplyValidationError) ErrorName() string
ErrorName returns error name.
func (CreateOrderReplyValidationError) Field ¶
func (e CreateOrderReplyValidationError) Field() string
Field function returns field value.
func (CreateOrderReplyValidationError) Key ¶
func (e CreateOrderReplyValidationError) Key() bool
Key function returns key value.
func (CreateOrderReplyValidationError) Reason ¶
func (e CreateOrderReplyValidationError) Reason() string
Reason function returns reason value.
type CreateOrderReq ¶
type CreateOrderReq struct { UserName string `protobuf:"bytes,1,opt,name=user_name,json=userName,proto3" json:"user_name,omitempty"` UserPhone string `protobuf:"bytes,2,opt,name=user_phone,json=userPhone,proto3" json:"user_phone,omitempty"` UserAddress string `protobuf:"bytes,3,opt,name=user_address,json=userAddress,proto3" json:"user_address,omitempty"` Extra string `protobuf:"bytes,4,opt,name=extra,proto3" json:"extra,omitempty"` Remark string `protobuf:"bytes,5,opt,name=remark,proto3" json:"remark,omitempty"` Items []*CreateOrderReqItem `protobuf:"bytes,6,rep,name=items,proto3" json:"items,omitempty"` // contains filtered or unexported fields }
func (*CreateOrderReq) Descriptor
deprecated
func (*CreateOrderReq) Descriptor() ([]byte, []int)
Deprecated: Use CreateOrderReq.ProtoReflect.Descriptor instead.
func (*CreateOrderReq) GetExtra ¶
func (x *CreateOrderReq) GetExtra() string
func (*CreateOrderReq) GetItems ¶
func (x *CreateOrderReq) GetItems() []*CreateOrderReqItem
func (*CreateOrderReq) GetRemark ¶
func (x *CreateOrderReq) GetRemark() string
func (*CreateOrderReq) GetUserAddress ¶
func (x *CreateOrderReq) GetUserAddress() string
func (*CreateOrderReq) GetUserName ¶
func (x *CreateOrderReq) GetUserName() string
func (*CreateOrderReq) GetUserPhone ¶
func (x *CreateOrderReq) GetUserPhone() string
func (*CreateOrderReq) ProtoMessage ¶
func (*CreateOrderReq) ProtoMessage()
func (*CreateOrderReq) ProtoReflect ¶
func (x *CreateOrderReq) ProtoReflect() protoreflect.Message
func (*CreateOrderReq) Reset ¶
func (x *CreateOrderReq) Reset()
func (*CreateOrderReq) String ¶
func (x *CreateOrderReq) String() string
func (*CreateOrderReq) Validate ¶
func (m *CreateOrderReq) Validate() error
Validate checks the field values on CreateOrderReq with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.
type CreateOrderReqItem ¶
type CreateOrderReqItem struct { ProductId int64 `protobuf:"varint,3,opt,name=product_id,json=productId,proto3" json:"product_id,omitempty"` ProductSkuId int64 `protobuf:"varint,4,opt,name=product_sku_id,json=productSkuId,proto3" json:"product_sku_id,omitempty"` Amount int64 `protobuf:"varint,5,opt,name=amount,proto3" json:"amount,omitempty"` Price int64 `protobuf:"varint,6,opt,name=price,proto3" json:"price,omitempty"` Title string `protobuf:"bytes,7,opt,name=title,proto3" json:"title,omitempty"` Image string `protobuf:"bytes,8,opt,name=image,proto3" json:"image,omitempty"` // contains filtered or unexported fields }
func (*CreateOrderReqItem) Descriptor
deprecated
func (*CreateOrderReqItem) Descriptor() ([]byte, []int)
Deprecated: Use CreateOrderReqItem.ProtoReflect.Descriptor instead.
func (*CreateOrderReqItem) GetAmount ¶
func (x *CreateOrderReqItem) GetAmount() int64
func (*CreateOrderReqItem) GetImage ¶
func (x *CreateOrderReqItem) GetImage() string
func (*CreateOrderReqItem) GetPrice ¶
func (x *CreateOrderReqItem) GetPrice() int64
func (*CreateOrderReqItem) GetProductId ¶
func (x *CreateOrderReqItem) GetProductId() int64
func (*CreateOrderReqItem) GetProductSkuId ¶
func (x *CreateOrderReqItem) GetProductSkuId() int64
func (*CreateOrderReqItem) GetTitle ¶
func (x *CreateOrderReqItem) GetTitle() string
func (*CreateOrderReqItem) ProtoMessage ¶
func (*CreateOrderReqItem) ProtoMessage()
func (*CreateOrderReqItem) ProtoReflect ¶
func (x *CreateOrderReqItem) ProtoReflect() protoreflect.Message
func (*CreateOrderReqItem) Reset ¶
func (x *CreateOrderReqItem) Reset()
func (*CreateOrderReqItem) String ¶
func (x *CreateOrderReqItem) String() string
func (*CreateOrderReqItem) Validate ¶
func (m *CreateOrderReqItem) Validate() error
Validate checks the field values on CreateOrderReqItem with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.
type CreateOrderReqItemValidationError ¶
type CreateOrderReqItemValidationError struct {
// contains filtered or unexported fields
}
CreateOrderReqItemValidationError is the validation error returned by CreateOrderReqItem.Validate if the designated constraints aren't met.
func (CreateOrderReqItemValidationError) Cause ¶
func (e CreateOrderReqItemValidationError) Cause() error
Cause function returns cause value.
func (CreateOrderReqItemValidationError) Error ¶
func (e CreateOrderReqItemValidationError) Error() string
Error satisfies the builtin error interface
func (CreateOrderReqItemValidationError) ErrorName ¶
func (e CreateOrderReqItemValidationError) ErrorName() string
ErrorName returns error name.
func (CreateOrderReqItemValidationError) Field ¶
func (e CreateOrderReqItemValidationError) Field() string
Field function returns field value.
func (CreateOrderReqItemValidationError) Key ¶
func (e CreateOrderReqItemValidationError) Key() bool
Key function returns key value.
func (CreateOrderReqItemValidationError) Reason ¶
func (e CreateOrderReqItemValidationError) Reason() string
Reason function returns reason value.
type CreateOrderReqValidationError ¶
type CreateOrderReqValidationError struct {
// contains filtered or unexported fields
}
CreateOrderReqValidationError is the validation error returned by CreateOrderReq.Validate if the designated constraints aren't met.
func (CreateOrderReqValidationError) Cause ¶
func (e CreateOrderReqValidationError) Cause() error
Cause function returns cause value.
func (CreateOrderReqValidationError) Error ¶
func (e CreateOrderReqValidationError) Error() string
Error satisfies the builtin error interface
func (CreateOrderReqValidationError) ErrorName ¶
func (e CreateOrderReqValidationError) ErrorName() string
ErrorName returns error name.
func (CreateOrderReqValidationError) Field ¶
func (e CreateOrderReqValidationError) Field() string
Field function returns field value.
func (CreateOrderReqValidationError) Key ¶
func (e CreateOrderReqValidationError) Key() bool
Key function returns key value.
func (CreateOrderReqValidationError) Reason ¶
func (e CreateOrderReqValidationError) Reason() string
Reason function returns reason value.
type OrderClient ¶
type OrderClient interface { CreateOrder(ctx context.Context, in *CreateOrderReq, opts ...grpc.CallOption) (*CreateOrderReply, error) OrderPaid(ctx context.Context, in *OrderPaidReq, opts ...grpc.CallOption) (*OrderPaidReply, error) }
OrderClient is the client API for Order 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 NewOrderClient ¶
func NewOrderClient(cc grpc.ClientConnInterface) OrderClient
type OrderInfo ¶
type OrderInfo struct { Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` OrderId string `protobuf:"bytes,2,opt,name=order_id,json=orderId,proto3" json:"order_id,omitempty"` UserName string `protobuf:"bytes,3,opt,name=user_name,json=userName,proto3" json:"user_name,omitempty"` UserPhone string `protobuf:"bytes,4,opt,name=user_phone,json=userPhone,proto3" json:"user_phone,omitempty"` UserAddress string `protobuf:"bytes,5,opt,name=user_address,json=userAddress,proto3" json:"user_address,omitempty"` TotalAmount string `protobuf:"bytes,6,opt,name=total_amount,json=totalAmount,proto3" json:"total_amount,omitempty"` PaidAt int64 `protobuf:"varint,7,opt,name=paid_at,json=paidAt,proto3" json:"paid_at,omitempty"` PaymentNo string `protobuf:"bytes,8,opt,name=payment_no,json=paymentNo,proto3" json:"payment_no,omitempty"` RefundStatus int32 `protobuf:"varint,9,opt,name=refund_status,json=refundStatus,proto3" json:"refund_status,omitempty"` RefundNo int32 `protobuf:"varint,10,opt,name=refund_no,json=refundNo,proto3" json:"refund_no,omitempty"` OrderStatus int32 `protobuf:"varint,11,opt,name=order_status,json=orderStatus,proto3" json:"order_status,omitempty"` Extra string `protobuf:"bytes,12,opt,name=extra,proto3" json:"extra,omitempty"` Remark string `protobuf:"bytes,13,opt,name=remark,proto3" json:"remark,omitempty"` // contains filtered or unexported fields }
func (*OrderInfo) Descriptor
deprecated
func (*OrderInfo) GetOrderId ¶
func (*OrderInfo) GetOrderStatus ¶
func (*OrderInfo) GetPaymentNo ¶
func (*OrderInfo) GetRefundNo ¶
func (*OrderInfo) GetRefundStatus ¶
func (*OrderInfo) GetTotalAmount ¶
func (*OrderInfo) GetUserAddress ¶
func (*OrderInfo) GetUserName ¶
func (*OrderInfo) GetUserPhone ¶
func (*OrderInfo) ProtoMessage ¶
func (*OrderInfo) ProtoMessage()
func (*OrderInfo) ProtoReflect ¶
func (x *OrderInfo) ProtoReflect() protoreflect.Message
type OrderInfoValidationError ¶
type OrderInfoValidationError struct {
// contains filtered or unexported fields
}
OrderInfoValidationError is the validation error returned by OrderInfo.Validate if the designated constraints aren't met.
func (OrderInfoValidationError) Cause ¶
func (e OrderInfoValidationError) Cause() error
Cause function returns cause value.
func (OrderInfoValidationError) Error ¶
func (e OrderInfoValidationError) Error() string
Error satisfies the builtin error interface
func (OrderInfoValidationError) ErrorName ¶
func (e OrderInfoValidationError) ErrorName() string
ErrorName returns error name.
func (OrderInfoValidationError) Field ¶
func (e OrderInfoValidationError) Field() string
Field function returns field value.
func (OrderInfoValidationError) Key ¶
func (e OrderInfoValidationError) Key() bool
Key function returns key value.
func (OrderInfoValidationError) Reason ¶
func (e OrderInfoValidationError) Reason() string
Reason function returns reason value.
type OrderItemInfo ¶
type OrderItemInfo struct { Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` OrderId string `protobuf:"bytes,2,opt,name=order_id,json=orderId,proto3" json:"order_id,omitempty"` ProductId int64 `protobuf:"varint,3,opt,name=product_id,json=productId,proto3" json:"product_id,omitempty"` ProductSkuId int64 `protobuf:"varint,4,opt,name=product_sku_id,json=productSkuId,proto3" json:"product_sku_id,omitempty"` Amount int64 `protobuf:"varint,5,opt,name=amount,proto3" json:"amount,omitempty"` Price int64 `protobuf:"varint,6,opt,name=price,proto3" json:"price,omitempty"` Title string `protobuf:"bytes,7,opt,name=title,proto3" json:"title,omitempty"` Image string `protobuf:"bytes,8,opt,name=image,proto3" json:"image,omitempty"` // contains filtered or unexported fields }
func (*OrderItemInfo) Descriptor
deprecated
func (*OrderItemInfo) Descriptor() ([]byte, []int)
Deprecated: Use OrderItemInfo.ProtoReflect.Descriptor instead.
func (*OrderItemInfo) GetAmount ¶
func (x *OrderItemInfo) GetAmount() int64
func (*OrderItemInfo) GetId ¶
func (x *OrderItemInfo) GetId() int64
func (*OrderItemInfo) GetImage ¶
func (x *OrderItemInfo) GetImage() string
func (*OrderItemInfo) GetOrderId ¶
func (x *OrderItemInfo) GetOrderId() string
func (*OrderItemInfo) GetPrice ¶
func (x *OrderItemInfo) GetPrice() int64
func (*OrderItemInfo) GetProductId ¶
func (x *OrderItemInfo) GetProductId() int64
func (*OrderItemInfo) GetProductSkuId ¶
func (x *OrderItemInfo) GetProductSkuId() int64
func (*OrderItemInfo) GetTitle ¶
func (x *OrderItemInfo) GetTitle() string
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
func (*OrderItemInfo) Validate ¶
func (m *OrderItemInfo) Validate() error
Validate checks the field values on OrderItemInfo with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.
type OrderItemInfoValidationError ¶
type OrderItemInfoValidationError struct {
// contains filtered or unexported fields
}
OrderItemInfoValidationError is the validation error returned by OrderItemInfo.Validate if the designated constraints aren't met.
func (OrderItemInfoValidationError) Cause ¶
func (e OrderItemInfoValidationError) Cause() error
Cause function returns cause value.
func (OrderItemInfoValidationError) Error ¶
func (e OrderItemInfoValidationError) Error() string
Error satisfies the builtin error interface
func (OrderItemInfoValidationError) ErrorName ¶
func (e OrderItemInfoValidationError) ErrorName() string
ErrorName returns error name.
func (OrderItemInfoValidationError) Field ¶
func (e OrderItemInfoValidationError) Field() string
Field function returns field value.
func (OrderItemInfoValidationError) Key ¶
func (e OrderItemInfoValidationError) Key() bool
Key function returns key value.
func (OrderItemInfoValidationError) Reason ¶
func (e OrderItemInfoValidationError) Reason() string
Reason function returns reason value.
type OrderPaidReply ¶
type OrderPaidReply struct { Code Code `protobuf:"varint,1,opt,name=code,proto3,enum=Code" json:"code,omitempty"` Msg string `protobuf:"bytes,2,opt,name=msg,proto3" json:"msg,omitempty"` Data *OrderPaidReplyOrder `protobuf:"bytes,3,opt,name=data,proto3" json:"data,omitempty"` // contains filtered or unexported fields }
func (*OrderPaidReply) Descriptor
deprecated
func (*OrderPaidReply) Descriptor() ([]byte, []int)
Deprecated: Use OrderPaidReply.ProtoReflect.Descriptor instead.
func (*OrderPaidReply) GetCode ¶
func (x *OrderPaidReply) GetCode() Code
func (*OrderPaidReply) GetData ¶
func (x *OrderPaidReply) GetData() *OrderPaidReplyOrder
func (*OrderPaidReply) GetMsg ¶
func (x *OrderPaidReply) GetMsg() string
func (*OrderPaidReply) ProtoMessage ¶
func (*OrderPaidReply) ProtoMessage()
func (*OrderPaidReply) ProtoReflect ¶
func (x *OrderPaidReply) ProtoReflect() protoreflect.Message
func (*OrderPaidReply) Reset ¶
func (x *OrderPaidReply) Reset()
func (*OrderPaidReply) String ¶
func (x *OrderPaidReply) String() string
func (*OrderPaidReply) Validate ¶
func (m *OrderPaidReply) Validate() error
Validate checks the field values on OrderPaidReply with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.
type OrderPaidReplyOrder ¶
type OrderPaidReplyOrder struct { Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` // contains filtered or unexported fields }
func (*OrderPaidReplyOrder) Descriptor
deprecated
func (*OrderPaidReplyOrder) Descriptor() ([]byte, []int)
Deprecated: Use OrderPaidReplyOrder.ProtoReflect.Descriptor instead.
func (*OrderPaidReplyOrder) GetId ¶
func (x *OrderPaidReplyOrder) GetId() int64
func (*OrderPaidReplyOrder) ProtoMessage ¶
func (*OrderPaidReplyOrder) ProtoMessage()
func (*OrderPaidReplyOrder) ProtoReflect ¶
func (x *OrderPaidReplyOrder) ProtoReflect() protoreflect.Message
func (*OrderPaidReplyOrder) Reset ¶
func (x *OrderPaidReplyOrder) Reset()
func (*OrderPaidReplyOrder) String ¶
func (x *OrderPaidReplyOrder) String() string
func (*OrderPaidReplyOrder) Validate ¶
func (m *OrderPaidReplyOrder) Validate() error
Validate checks the field values on OrderPaidReplyOrder with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.
type OrderPaidReplyOrderValidationError ¶
type OrderPaidReplyOrderValidationError struct {
// contains filtered or unexported fields
}
OrderPaidReplyOrderValidationError is the validation error returned by OrderPaidReplyOrder.Validate if the designated constraints aren't met.
func (OrderPaidReplyOrderValidationError) Cause ¶
func (e OrderPaidReplyOrderValidationError) Cause() error
Cause function returns cause value.
func (OrderPaidReplyOrderValidationError) Error ¶
func (e OrderPaidReplyOrderValidationError) Error() string
Error satisfies the builtin error interface
func (OrderPaidReplyOrderValidationError) ErrorName ¶
func (e OrderPaidReplyOrderValidationError) ErrorName() string
ErrorName returns error name.
func (OrderPaidReplyOrderValidationError) Field ¶
func (e OrderPaidReplyOrderValidationError) Field() string
Field function returns field value.
func (OrderPaidReplyOrderValidationError) Key ¶
func (e OrderPaidReplyOrderValidationError) Key() bool
Key function returns key value.
func (OrderPaidReplyOrderValidationError) Reason ¶
func (e OrderPaidReplyOrderValidationError) Reason() string
Reason function returns reason value.
type OrderPaidReplyValidationError ¶
type OrderPaidReplyValidationError struct {
// contains filtered or unexported fields
}
OrderPaidReplyValidationError is the validation error returned by OrderPaidReply.Validate if the designated constraints aren't met.
func (OrderPaidReplyValidationError) Cause ¶
func (e OrderPaidReplyValidationError) Cause() error
Cause function returns cause value.
func (OrderPaidReplyValidationError) Error ¶
func (e OrderPaidReplyValidationError) Error() string
Error satisfies the builtin error interface
func (OrderPaidReplyValidationError) ErrorName ¶
func (e OrderPaidReplyValidationError) ErrorName() string
ErrorName returns error name.
func (OrderPaidReplyValidationError) Field ¶
func (e OrderPaidReplyValidationError) Field() string
Field function returns field value.
func (OrderPaidReplyValidationError) Key ¶
func (e OrderPaidReplyValidationError) Key() bool
Key function returns key value.
func (OrderPaidReplyValidationError) Reason ¶
func (e OrderPaidReplyValidationError) Reason() string
Reason function returns reason value.
type OrderPaidReq ¶
type OrderPaidReq struct { OrderId string `protobuf:"bytes,1,opt,name=order_id,json=orderId,proto3" json:"order_id,omitempty"` PaymentNo string `protobuf:"bytes,2,opt,name=payment_no,json=paymentNo,proto3" json:"payment_no,omitempty"` PaidAt int64 `protobuf:"varint,3,opt,name=paid_at,json=paidAt,proto3" json:"paid_at,omitempty"` PaidAmount int64 `protobuf:"varint,4,opt,name=paid_amount,json=paidAmount,proto3" json:"paid_amount,omitempty"` // contains filtered or unexported fields }
func (*OrderPaidReq) Descriptor
deprecated
func (*OrderPaidReq) Descriptor() ([]byte, []int)
Deprecated: Use OrderPaidReq.ProtoReflect.Descriptor instead.
func (*OrderPaidReq) GetOrderId ¶
func (x *OrderPaidReq) GetOrderId() string
func (*OrderPaidReq) GetPaidAmount ¶
func (x *OrderPaidReq) GetPaidAmount() int64
func (*OrderPaidReq) GetPaidAt ¶
func (x *OrderPaidReq) GetPaidAt() int64
func (*OrderPaidReq) GetPaymentNo ¶
func (x *OrderPaidReq) GetPaymentNo() string
func (*OrderPaidReq) ProtoMessage ¶
func (*OrderPaidReq) ProtoMessage()
func (*OrderPaidReq) ProtoReflect ¶
func (x *OrderPaidReq) ProtoReflect() protoreflect.Message
func (*OrderPaidReq) Reset ¶
func (x *OrderPaidReq) Reset()
func (*OrderPaidReq) String ¶
func (x *OrderPaidReq) String() string
func (*OrderPaidReq) Validate ¶
func (m *OrderPaidReq) Validate() error
Validate checks the field values on OrderPaidReq with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.
type OrderPaidReqValidationError ¶
type OrderPaidReqValidationError struct {
// contains filtered or unexported fields
}
OrderPaidReqValidationError is the validation error returned by OrderPaidReq.Validate if the designated constraints aren't met.
func (OrderPaidReqValidationError) Cause ¶
func (e OrderPaidReqValidationError) Cause() error
Cause function returns cause value.
func (OrderPaidReqValidationError) Error ¶
func (e OrderPaidReqValidationError) Error() string
Error satisfies the builtin error interface
func (OrderPaidReqValidationError) ErrorName ¶
func (e OrderPaidReqValidationError) ErrorName() string
ErrorName returns error name.
func (OrderPaidReqValidationError) Field ¶
func (e OrderPaidReqValidationError) Field() string
Field function returns field value.
func (OrderPaidReqValidationError) Key ¶
func (e OrderPaidReqValidationError) Key() bool
Key function returns key value.
func (OrderPaidReqValidationError) Reason ¶
func (e OrderPaidReqValidationError) Reason() string
Reason function returns reason value.
type OrderServer ¶
type OrderServer interface { CreateOrder(context.Context, *CreateOrderReq) (*CreateOrderReply, error) OrderPaid(context.Context, *OrderPaidReq) (*OrderPaidReply, error) // contains filtered or unexported methods }
OrderServer is the server API for Order service. All implementations must embed UnimplementedOrderServer for forward compatibility
type UnimplementedOrderServer ¶
type UnimplementedOrderServer struct { }
UnimplementedOrderServer must be embedded to have forward compatible implementations.
func (UnimplementedOrderServer) CreateOrder ¶
func (UnimplementedOrderServer) CreateOrder(context.Context, *CreateOrderReq) (*CreateOrderReply, error)
func (UnimplementedOrderServer) OrderPaid ¶
func (UnimplementedOrderServer) OrderPaid(context.Context, *OrderPaidReq) (*OrderPaidReply, error)
type UnsafeOrderServer ¶
type UnsafeOrderServer interface {
// contains filtered or unexported methods
}
UnsafeOrderServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to OrderServer will result in compilation errors.