order

package
v0.0.0-...-aeb4011 Latest Latest
Warning

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

Go to latest
Published: Dec 1, 2024 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_rpc_order_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

type Address

type Address struct {
	StreetAddress string `protobuf:"bytes,1,opt,name=street_address,json=streetAddress,proto3" json:"street_address,omitempty"`
	City          string `protobuf:"bytes,2,opt,name=city,proto3" json:"city,omitempty"`
	State         string `protobuf:"bytes,3,opt,name=state,proto3" json:"state,omitempty"`
	Country       string `protobuf:"bytes,4,opt,name=country,proto3" json:"country,omitempty"`
	ZipCode       string `protobuf:"bytes,5,opt,name=zip_code,json=zipCode,proto3" json:"zip_code,omitempty"`
	// contains filtered or unexported fields
}

func (*Address) Descriptor deprecated

func (*Address) Descriptor() ([]byte, []int)

Deprecated: Use Address.ProtoReflect.Descriptor instead.

func (*Address) FastRead

func (x *Address) FastRead(buf []byte, _type int8, number int32) (offset int, err error)

func (*Address) FastWrite

func (x *Address) FastWrite(buf []byte) (offset int)

func (*Address) GetCity

func (x *Address) GetCity() string

func (*Address) GetCountry

func (x *Address) GetCountry() string

func (*Address) GetState

func (x *Address) GetState() string

func (*Address) GetStreetAddress

func (x *Address) GetStreetAddress() string

func (*Address) GetZipCode

func (x *Address) GetZipCode() string

func (*Address) ProtoMessage

func (*Address) ProtoMessage()

func (*Address) ProtoReflect

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

func (*Address) Reset

func (x *Address) Reset()

func (*Address) Size

func (x *Address) Size() (n int)

func (*Address) String

func (x *Address) String() string

type ListOrdersReq

type ListOrdersReq struct {
	UserId uint32 `protobuf:"varint,1,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"`
	// contains filtered or unexported fields
}

func (*ListOrdersReq) Descriptor deprecated

func (*ListOrdersReq) Descriptor() ([]byte, []int)

Deprecated: Use ListOrdersReq.ProtoReflect.Descriptor instead.

func (*ListOrdersReq) FastRead

func (x *ListOrdersReq) FastRead(buf []byte, _type int8, number int32) (offset int, err error)

func (*ListOrdersReq) FastWrite

func (x *ListOrdersReq) FastWrite(buf []byte) (offset int)

func (*ListOrdersReq) GetUserId

func (x *ListOrdersReq) GetUserId() uint32

func (*ListOrdersReq) ProtoMessage

func (*ListOrdersReq) ProtoMessage()

func (*ListOrdersReq) ProtoReflect

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

func (*ListOrdersReq) Reset

func (x *ListOrdersReq) Reset()

func (*ListOrdersReq) Size

func (x *ListOrdersReq) Size() (n int)

func (*ListOrdersReq) String

func (x *ListOrdersReq) String() string

type ListOrdersResp

type ListOrdersResp struct {
	Orders []*Order `protobuf:"bytes,1,rep,name=orders,proto3" json:"orders,omitempty"`
	// contains filtered or unexported fields
}

func (*ListOrdersResp) Descriptor deprecated

func (*ListOrdersResp) Descriptor() ([]byte, []int)

Deprecated: Use ListOrdersResp.ProtoReflect.Descriptor instead.

func (*ListOrdersResp) FastRead

func (x *ListOrdersResp) FastRead(buf []byte, _type int8, number int32) (offset int, err error)

func (*ListOrdersResp) FastWrite

func (x *ListOrdersResp) FastWrite(buf []byte) (offset int)

func (*ListOrdersResp) GetOrders

func (x *ListOrdersResp) GetOrders() []*Order

func (*ListOrdersResp) ProtoMessage

func (*ListOrdersResp) ProtoMessage()

func (*ListOrdersResp) ProtoReflect

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

func (*ListOrdersResp) Reset

func (x *ListOrdersResp) Reset()

func (*ListOrdersResp) Size

func (x *ListOrdersResp) Size() (n int)

func (*ListOrdersResp) String

func (x *ListOrdersResp) String() string

type Order

type Order struct {
	Items     []*OrderItem `protobuf:"bytes,1,rep,name=items,proto3" json:"items,omitempty"`
	OrderId   string       `protobuf:"bytes,2,opt,name=order_id,json=orderId,proto3" json:"order_id,omitempty"`
	UserId    uint32       `protobuf:"varint,3,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"`
	Address   *Address     `protobuf:"bytes,4,opt,name=address,proto3" json:"address,omitempty"`
	Email     string       `protobuf:"bytes,5,opt,name=email,proto3" json:"email,omitempty"`
	CreatedAt int32        `protobuf:"varint,6,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"`
	// contains filtered or unexported fields
}

func (*Order) Descriptor deprecated

func (*Order) Descriptor() ([]byte, []int)

Deprecated: Use Order.ProtoReflect.Descriptor instead.

func (*Order) FastRead

func (x *Order) FastRead(buf []byte, _type int8, number int32) (offset int, err error)

func (*Order) FastWrite

func (x *Order) FastWrite(buf []byte) (offset int)

func (*Order) GetAddress

func (x *Order) GetAddress() *Address

func (*Order) GetCreatedAt

func (x *Order) GetCreatedAt() int32

func (*Order) GetEmail

func (x *Order) GetEmail() string

func (*Order) GetItems

func (x *Order) GetItems() []*OrderItem

func (*Order) GetOrderId

func (x *Order) GetOrderId() string

func (*Order) GetUserId

func (x *Order) GetUserId() uint32

func (*Order) ProtoMessage

func (*Order) ProtoMessage()

func (*Order) ProtoReflect

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

func (*Order) Reset

func (x *Order) Reset()

func (*Order) Size

func (x *Order) Size() (n int)

func (*Order) String

func (x *Order) String() string

type OrderItem

type OrderItem struct {
	Item *cart.CartItem `protobuf:"bytes,1,opt,name=item,proto3" json:"item,omitempty"`
	Cost float32        `protobuf:"fixed32,2,opt,name=cost,proto3" json:"cost,omitempty"`
	// contains filtered or unexported fields
}

func (*OrderItem) Descriptor deprecated

func (*OrderItem) Descriptor() ([]byte, []int)

Deprecated: Use OrderItem.ProtoReflect.Descriptor instead.

func (*OrderItem) FastRead

func (x *OrderItem) FastRead(buf []byte, _type int8, number int32) (offset int, err error)

func (*OrderItem) FastWrite

func (x *OrderItem) FastWrite(buf []byte) (offset int)

func (*OrderItem) GetCost

func (x *OrderItem) GetCost() float32

func (*OrderItem) GetItem

func (x *OrderItem) GetItem() *cart.CartItem

func (*OrderItem) ProtoMessage

func (*OrderItem) ProtoMessage()

func (*OrderItem) ProtoReflect

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

func (*OrderItem) Reset

func (x *OrderItem) Reset()

func (*OrderItem) Size

func (x *OrderItem) Size() (n int)

func (*OrderItem) String

func (x *OrderItem) String() string

type OrderResult

type OrderResult struct {
	OrderId string `protobuf:"bytes,1,opt,name=order_id,json=orderId,proto3" json:"order_id,omitempty"`
	// contains filtered or unexported fields
}

func (*OrderResult) Descriptor deprecated

func (*OrderResult) Descriptor() ([]byte, []int)

Deprecated: Use OrderResult.ProtoReflect.Descriptor instead.

func (*OrderResult) FastRead

func (x *OrderResult) FastRead(buf []byte, _type int8, number int32) (offset int, err error)

func (*OrderResult) FastWrite

func (x *OrderResult) FastWrite(buf []byte) (offset int)

func (*OrderResult) GetOrderId

func (x *OrderResult) GetOrderId() string

func (*OrderResult) ProtoMessage

func (*OrderResult) ProtoMessage()

func (*OrderResult) ProtoReflect

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

func (*OrderResult) Reset

func (x *OrderResult) Reset()

func (*OrderResult) Size

func (x *OrderResult) Size() (n int)

func (*OrderResult) String

func (x *OrderResult) String() string

type OrderService

type OrderService interface {
	PlaceOrder(ctx context.Context, req *PlaceOrderReq) (res *PlaceOrderResp, err error)
	ListOrders(ctx context.Context, req *ListOrdersReq) (res *ListOrdersResp, err error)
}

type PlaceOrderReq

type PlaceOrderReq struct {
	UserId  uint32       `protobuf:"varint,1,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"`
	Address *Address     `protobuf:"bytes,2,opt,name=address,proto3" json:"address,omitempty"`
	Email   string       `protobuf:"bytes,3,opt,name=email,proto3" json:"email,omitempty"`
	Items   []*OrderItem `protobuf:"bytes,4,rep,name=items,proto3" json:"items,omitempty"`
	// contains filtered or unexported fields
}

func (*PlaceOrderReq) Descriptor deprecated

func (*PlaceOrderReq) Descriptor() ([]byte, []int)

Deprecated: Use PlaceOrderReq.ProtoReflect.Descriptor instead.

func (*PlaceOrderReq) FastRead

func (x *PlaceOrderReq) FastRead(buf []byte, _type int8, number int32) (offset int, err error)

func (*PlaceOrderReq) FastWrite

func (x *PlaceOrderReq) FastWrite(buf []byte) (offset int)

func (*PlaceOrderReq) GetAddress

func (x *PlaceOrderReq) GetAddress() *Address

func (*PlaceOrderReq) GetEmail

func (x *PlaceOrderReq) GetEmail() string

func (*PlaceOrderReq) GetItems

func (x *PlaceOrderReq) GetItems() []*OrderItem

func (*PlaceOrderReq) GetUserId

func (x *PlaceOrderReq) GetUserId() uint32

func (*PlaceOrderReq) ProtoMessage

func (*PlaceOrderReq) ProtoMessage()

func (*PlaceOrderReq) ProtoReflect

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

func (*PlaceOrderReq) Reset

func (x *PlaceOrderReq) Reset()

func (*PlaceOrderReq) Size

func (x *PlaceOrderReq) Size() (n int)

func (*PlaceOrderReq) String

func (x *PlaceOrderReq) String() string

type PlaceOrderResp

type PlaceOrderResp struct {
	Order *OrderResult `protobuf:"bytes,1,opt,name=order,proto3" json:"order,omitempty"`
	// contains filtered or unexported fields
}

func (*PlaceOrderResp) Descriptor deprecated

func (*PlaceOrderResp) Descriptor() ([]byte, []int)

Deprecated: Use PlaceOrderResp.ProtoReflect.Descriptor instead.

func (*PlaceOrderResp) FastRead

func (x *PlaceOrderResp) FastRead(buf []byte, _type int8, number int32) (offset int, err error)

func (*PlaceOrderResp) FastWrite

func (x *PlaceOrderResp) FastWrite(buf []byte) (offset int)

func (*PlaceOrderResp) GetOrder

func (x *PlaceOrderResp) GetOrder() *OrderResult

func (*PlaceOrderResp) ProtoMessage

func (*PlaceOrderResp) ProtoMessage()

func (*PlaceOrderResp) ProtoReflect

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

func (*PlaceOrderResp) Reset

func (x *PlaceOrderResp) Reset()

func (*PlaceOrderResp) Size

func (x *PlaceOrderResp) Size() (n int)

func (*PlaceOrderResp) String

func (x *PlaceOrderResp) String() string

Directories

Path Synopsis
Code generated by Kitex v0.9.1.
Code generated by Kitex v0.9.1.

Jump to

Keyboard shortcuts

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