order

package
v0.0.0-...-2486f02 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_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       int32  `protobuf:"varint,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() int32

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 ListOrderReq

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

func (*ListOrderReq) Descriptor deprecated

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

Deprecated: Use ListOrderReq.ProtoReflect.Descriptor instead.

func (*ListOrderReq) FastRead

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

func (*ListOrderReq) FastWrite

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

func (*ListOrderReq) GetUserId

func (x *ListOrderReq) GetUserId() uint32

func (*ListOrderReq) ProtoMessage

func (*ListOrderReq) ProtoMessage()

func (*ListOrderReq) ProtoReflect

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

func (*ListOrderReq) Reset

func (x *ListOrderReq) Reset()

func (*ListOrderReq) Size

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

func (*ListOrderReq) String

func (x *ListOrderReq) String() string

type ListOrderResp

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

func (*ListOrderResp) Descriptor deprecated

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

Deprecated: Use ListOrderResp.ProtoReflect.Descriptor instead.

func (*ListOrderResp) FastRead

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

func (*ListOrderResp) FastWrite

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

func (*ListOrderResp) GetOrders

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

func (*ListOrderResp) ProtoMessage

func (*ListOrderResp) ProtoMessage()

func (*ListOrderResp) ProtoReflect

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

func (*ListOrderResp) Reset

func (x *ListOrderResp) Reset()

func (*ListOrderResp) Size

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

func (*ListOrderResp) String

func (x *ListOrderResp) String() string

type MarkOrderPaidReq

type MarkOrderPaidReq struct {
	UserId  uint32 `protobuf:"varint,1,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"`
	OrderId string `protobuf:"bytes,2,opt,name=order_id,json=orderId,proto3" json:"order_id,omitempty"`
	// contains filtered or unexported fields
}

func (*MarkOrderPaidReq) Descriptor deprecated

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

Deprecated: Use MarkOrderPaidReq.ProtoReflect.Descriptor instead.

func (*MarkOrderPaidReq) FastRead

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

func (*MarkOrderPaidReq) FastWrite

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

func (*MarkOrderPaidReq) GetOrderId

func (x *MarkOrderPaidReq) GetOrderId() string

func (*MarkOrderPaidReq) GetUserId

func (x *MarkOrderPaidReq) GetUserId() uint32

func (*MarkOrderPaidReq) ProtoMessage

func (*MarkOrderPaidReq) ProtoMessage()

func (*MarkOrderPaidReq) ProtoReflect

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

func (*MarkOrderPaidReq) Reset

func (x *MarkOrderPaidReq) Reset()

func (*MarkOrderPaidReq) Size

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

func (*MarkOrderPaidReq) String

func (x *MarkOrderPaidReq) String() string

type MarkOrderPaidResp

type MarkOrderPaidResp struct {
	// contains filtered or unexported fields
}

func (*MarkOrderPaidResp) Descriptor deprecated

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

Deprecated: Use MarkOrderPaidResp.ProtoReflect.Descriptor instead.

func (*MarkOrderPaidResp) FastRead

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

func (*MarkOrderPaidResp) FastWrite

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

func (*MarkOrderPaidResp) ProtoMessage

func (*MarkOrderPaidResp) ProtoMessage()

func (*MarkOrderPaidResp) ProtoReflect

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

func (*MarkOrderPaidResp) Reset

func (x *MarkOrderPaidResp) Reset()

func (*MarkOrderPaidResp) Size

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

func (*MarkOrderPaidResp) String

func (x *MarkOrderPaidResp) String() string

type Order

type Order struct {
	OrderItems   []*OrderItem `protobuf:"bytes,1,rep,name=order_items,json=orderItems,proto3" json:"order_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"`
	UserCurrency string       `protobuf:"bytes,4,opt,name=user_currency,json=userCurrency,proto3" json:"user_currency,omitempty"`
	Address      *Address     `protobuf:"bytes,5,opt,name=address,proto3" json:"address,omitempty"`
	Email        string       `protobuf:"bytes,6,opt,name=email,proto3" json:"email,omitempty"`
	CreatedAt    int32        `protobuf:"varint,7,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) GetOrderId

func (x *Order) GetOrderId() string

func (*Order) GetOrderItems

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

func (*Order) GetUserCurrency

func (x *Order) GetUserCurrency() 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)
	ListOrder(ctx context.Context, req *ListOrderReq) (res *ListOrderResp, err error)
	MarkOrderPaid(ctx context.Context, req *MarkOrderPaidReq) (res *MarkOrderPaidResp, err error)
}

type PlaceOrderReq

type PlaceOrderReq struct {
	UserId       uint32       `protobuf:"varint,1,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"`
	UserCurrency string       `protobuf:"bytes,2,opt,name=user_currency,json=userCurrency,proto3" json:"user_currency,omitempty"`
	Address      *Address     `protobuf:"bytes,3,opt,name=address,proto3" json:"address,omitempty"`
	Email        string       `protobuf:"bytes,4,opt,name=email,proto3" json:"email,omitempty"`
	OrderItems   []*OrderItem `protobuf:"bytes,5,rep,name=order_items,json=orderItems,proto3" json:"order_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) GetOrderItems

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

func (*PlaceOrderReq) GetUserCurrency

func (x *PlaceOrderReq) GetUserCurrency() string

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.8.0.
Code generated by Kitex v0.8.0.

Jump to

Keyboard shortcuts

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