order

package
v0.0.0-...-99ed3b9 Latest Latest
Warning

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

Go to latest
Published: Aug 21, 2021 License: MIT Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
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.

View Source
var File_order_proto protoreflect.FileDescriptor
View Source
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
const (
	Code_NOKnow       Code = 0
	Code_Success      Code = 200
	Code_CreateErr    Code = 20001
	Code_OrderPaidErr Code = 20002
)

func (Code) Descriptor

func (Code) Descriptor() protoreflect.EnumDescriptor

func (Code) Enum

func (x Code) Enum() *Code

func (Code) EnumDescriptor deprecated

func (Code) EnumDescriptor() ([]byte, []int)

Deprecated: Use Code.Descriptor instead.

func (Code) Number

func (x Code) Number() protoreflect.EnumNumber

func (Code) String

func (x Code) String() string

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 (*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

Cause function returns cause value.

func (CreateOrderReplyOrderValidationError) Error

Error satisfies the builtin error interface

func (CreateOrderReplyOrderValidationError) ErrorName

ErrorName returns error name.

func (CreateOrderReplyOrderValidationError) Field

Field function returns field value.

func (CreateOrderReplyOrderValidationError) Key

Key function returns key value.

func (CreateOrderReplyOrderValidationError) Reason

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

Cause function returns cause value.

func (CreateOrderReplyValidationError) Error

Error satisfies the builtin error interface

func (CreateOrderReplyValidationError) ErrorName

ErrorName returns error name.

func (CreateOrderReplyValidationError) Field

Field function returns field value.

func (CreateOrderReplyValidationError) Key

Key function returns key value.

func (CreateOrderReplyValidationError) Reason

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

Cause function returns cause value.

func (CreateOrderReqItemValidationError) Error

Error satisfies the builtin error interface

func (CreateOrderReqItemValidationError) ErrorName

ErrorName returns error name.

func (CreateOrderReqItemValidationError) Field

Field function returns field value.

func (CreateOrderReqItemValidationError) Key

Key function returns key value.

func (CreateOrderReqItemValidationError) Reason

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

Cause function returns cause value.

func (CreateOrderReqValidationError) Error

Error satisfies the builtin error interface

func (CreateOrderReqValidationError) ErrorName

func (e CreateOrderReqValidationError) ErrorName() string

ErrorName returns error name.

func (CreateOrderReqValidationError) Field

Field function returns field value.

func (CreateOrderReqValidationError) Key

Key function returns key value.

func (CreateOrderReqValidationError) Reason

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

Deprecated: Use OrderInfo.ProtoReflect.Descriptor instead.

func (*OrderInfo) GetExtra

func (x *OrderInfo) GetExtra() string

func (*OrderInfo) GetId

func (x *OrderInfo) GetId() int64

func (*OrderInfo) GetOrderId

func (x *OrderInfo) GetOrderId() string

func (*OrderInfo) GetOrderStatus

func (x *OrderInfo) GetOrderStatus() int32

func (*OrderInfo) GetPaidAt

func (x *OrderInfo) GetPaidAt() int64

func (*OrderInfo) GetPaymentNo

func (x *OrderInfo) GetPaymentNo() string

func (*OrderInfo) GetRefundNo

func (x *OrderInfo) GetRefundNo() int32

func (*OrderInfo) GetRefundStatus

func (x *OrderInfo) GetRefundStatus() int32

func (*OrderInfo) GetRemark

func (x *OrderInfo) GetRemark() string

func (*OrderInfo) GetTotalAmount

func (x *OrderInfo) GetTotalAmount() string

func (*OrderInfo) GetUserAddress

func (x *OrderInfo) GetUserAddress() string

func (*OrderInfo) GetUserName

func (x *OrderInfo) GetUserName() string

func (*OrderInfo) GetUserPhone

func (x *OrderInfo) GetUserPhone() string

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

func (*OrderInfo) Validate

func (m *OrderInfo) Validate() error

Validate checks the field values on OrderInfo with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.

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

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

Cause function returns cause value.

func (OrderItemInfoValidationError) Error

Error satisfies the builtin error interface

func (OrderItemInfoValidationError) ErrorName

func (e OrderItemInfoValidationError) ErrorName() string

ErrorName returns error name.

func (OrderItemInfoValidationError) Field

Field function returns field value.

func (OrderItemInfoValidationError) Key

Key function returns key value.

func (OrderItemInfoValidationError) Reason

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

Cause function returns cause value.

func (OrderPaidReplyOrderValidationError) Error

Error satisfies the builtin error interface

func (OrderPaidReplyOrderValidationError) ErrorName

ErrorName returns error name.

func (OrderPaidReplyOrderValidationError) Field

Field function returns field value.

func (OrderPaidReplyOrderValidationError) Key

Key function returns key value.

func (OrderPaidReplyOrderValidationError) Reason

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

Cause function returns cause value.

func (OrderPaidReplyValidationError) Error

Error satisfies the builtin error interface

func (OrderPaidReplyValidationError) ErrorName

func (e OrderPaidReplyValidationError) ErrorName() string

ErrorName returns error name.

func (OrderPaidReplyValidationError) Field

Field function returns field value.

func (OrderPaidReplyValidationError) Key

Key function returns key value.

func (OrderPaidReplyValidationError) Reason

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

Cause function returns cause value.

func (OrderPaidReqValidationError) Error

Error satisfies the builtin error interface

func (OrderPaidReqValidationError) ErrorName

func (e OrderPaidReqValidationError) ErrorName() string

ErrorName returns error name.

func (OrderPaidReqValidationError) Field

Field function returns field value.

func (OrderPaidReqValidationError) Key

Key function returns key value.

func (OrderPaidReqValidationError) Reason

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) OrderPaid

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.

Jump to

Keyboard shortcuts

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