pb

package
v0.0.0-...-8176360 Latest Latest
Warning

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

Go to latest
Published: May 20, 2023 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_order_proto protoreflect.FileDescriptor

Functions

func RegisterOrderApiServer

func RegisterOrderApiServer(s *grpc.Server, srv OrderApiServer)

Types

type OrderApiClient

type OrderApiClient interface {
	Create(ctx context.Context, in *OrderReqDto, opts ...grpc.CallOption) (*OrderDto, error)
	GetOrderByID(ctx context.Context, in *wrappers.StringValue, opts ...grpc.CallOption) (*OrderDto, error)
	ListOrderByUserID(ctx context.Context, in *wrappers.StringValue, opts ...grpc.CallOption) (*OrderDtoList, error)
}

OrderApiClient is the client API for OrderApi service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.

func NewOrderApiClient

func NewOrderApiClient(cc grpc.ClientConnInterface) OrderApiClient

type OrderApiServer

type OrderApiServer interface {
	Create(context.Context, *OrderReqDto) (*OrderDto, error)
	GetOrderByID(context.Context, *wrappers.StringValue) (*OrderDto, error)
	ListOrderByUserID(context.Context, *wrappers.StringValue) (*OrderDtoList, error)
}

OrderApiServer is the server API for OrderApi service.

type OrderDetailDto

type OrderDetailDto struct {
	ProductId string `protobuf:"bytes,1,opt,name=productId,proto3" json:"productId,omitempty"`
	Qty       int64  `protobuf:"varint,2,opt,name=qty,proto3" json:"qty,omitempty"`
	// contains filtered or unexported fields
}

func (*OrderDetailDto) Descriptor deprecated

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

Deprecated: Use OrderDetailDto.ProtoReflect.Descriptor instead.

func (*OrderDetailDto) GetProductId

func (x *OrderDetailDto) GetProductId() string

func (*OrderDetailDto) GetQty

func (x *OrderDetailDto) GetQty() int64

func (*OrderDetailDto) ProtoMessage

func (*OrderDetailDto) ProtoMessage()

func (*OrderDetailDto) ProtoReflect

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

func (*OrderDetailDto) Reset

func (x *OrderDetailDto) Reset()

func (*OrderDetailDto) String

func (x *OrderDetailDto) String() string

type OrderDto

type OrderDto struct {
	Id          string            `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	UserId      string            `protobuf:"bytes,2,opt,name=userId,proto3" json:"userId,omitempty"`
	NoInv       string            `protobuf:"bytes,3,opt,name=noInv,proto3" json:"noInv,omitempty"`
	Status      bool              `protobuf:"varint,4,opt,name=status,proto3" json:"status,omitempty"`
	OrderDetail []*OrderDetailDto `protobuf:"bytes,5,rep,name=orderDetail,proto3" json:"orderDetail,omitempty"`
	// contains filtered or unexported fields
}

func (*OrderDto) Descriptor deprecated

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

Deprecated: Use OrderDto.ProtoReflect.Descriptor instead.

func (*OrderDto) GetId

func (x *OrderDto) GetId() string

func (*OrderDto) GetNoInv

func (x *OrderDto) GetNoInv() string

func (*OrderDto) GetOrderDetail

func (x *OrderDto) GetOrderDetail() []*OrderDetailDto

func (*OrderDto) GetStatus

func (x *OrderDto) GetStatus() bool

func (*OrderDto) GetUserId

func (x *OrderDto) GetUserId() string

func (*OrderDto) ProtoMessage

func (*OrderDto) ProtoMessage()

func (*OrderDto) ProtoReflect

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

func (*OrderDto) Reset

func (x *OrderDto) Reset()

func (*OrderDto) String

func (x *OrderDto) String() string

type OrderDtoList

type OrderDtoList struct {
	List []*OrderDto `protobuf:"bytes,1,rep,name=list,proto3" json:"list,omitempty"`
	// contains filtered or unexported fields
}

func (*OrderDtoList) Descriptor deprecated

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

Deprecated: Use OrderDtoList.ProtoReflect.Descriptor instead.

func (*OrderDtoList) GetList

func (x *OrderDtoList) GetList() []*OrderDto

func (*OrderDtoList) ProtoMessage

func (*OrderDtoList) ProtoMessage()

func (*OrderDtoList) ProtoReflect

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

func (*OrderDtoList) Reset

func (x *OrderDtoList) Reset()

func (*OrderDtoList) String

func (x *OrderDtoList) String() string

type OrderReqDto

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

func (*OrderReqDto) Descriptor deprecated

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

Deprecated: Use OrderReqDto.ProtoReflect.Descriptor instead.

func (*OrderReqDto) GetOrder

func (x *OrderReqDto) GetOrder() []*OrderDetailDto

func (*OrderReqDto) ProtoMessage

func (*OrderReqDto) ProtoMessage()

func (*OrderReqDto) ProtoReflect

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

func (*OrderReqDto) Reset

func (x *OrderReqDto) Reset()

func (*OrderReqDto) String

func (x *OrderReqDto) String() string

type UnimplementedOrderApiServer

type UnimplementedOrderApiServer struct {
}

UnimplementedOrderApiServer can be embedded to have forward compatible implementations.

func (*UnimplementedOrderApiServer) Create

func (*UnimplementedOrderApiServer) GetOrderByID

func (*UnimplementedOrderApiServer) ListOrderByUserID

Jump to

Keyboard shortcuts

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