Documentation ¶
Index ¶
- Variables
- func RegisterOrderApiServer(s *grpc.Server, srv OrderApiServer)
- type OrderApiClient
- type OrderApiServer
- type OrderDetailDto
- func (*OrderDetailDto) Descriptor() ([]byte, []int)deprecated
- func (x *OrderDetailDto) GetProductId() string
- func (x *OrderDetailDto) GetQty() int64
- func (*OrderDetailDto) ProtoMessage()
- func (x *OrderDetailDto) ProtoReflect() protoreflect.Message
- func (x *OrderDetailDto) Reset()
- func (x *OrderDetailDto) String() string
- type OrderDto
- func (*OrderDto) Descriptor() ([]byte, []int)deprecated
- func (x *OrderDto) GetId() string
- func (x *OrderDto) GetNoInv() string
- func (x *OrderDto) GetOrderDetail() []*OrderDetailDto
- func (x *OrderDto) GetStatus() bool
- func (x *OrderDto) GetUserId() string
- func (*OrderDto) ProtoMessage()
- func (x *OrderDto) ProtoReflect() protoreflect.Message
- func (x *OrderDto) Reset()
- func (x *OrderDto) String() string
- type OrderDtoList
- type OrderReqDto
- type UnimplementedOrderApiServer
- func (*UnimplementedOrderApiServer) Create(context.Context, *OrderReqDto) (*OrderDto, error)
- func (*UnimplementedOrderApiServer) GetOrderByID(context.Context, *wrappers.StringValue) (*OrderDto, error)
- func (*UnimplementedOrderApiServer) ListOrderByUserID(context.Context, *wrappers.StringValue) (*OrderDtoList, error)
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) GetOrderDetail ¶
func (x *OrderDto) GetOrderDetail() []*OrderDetailDto
func (*OrderDto) ProtoMessage ¶
func (*OrderDto) ProtoMessage()
func (*OrderDto) ProtoReflect ¶
func (x *OrderDto) ProtoReflect() protoreflect.Message
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) Create(context.Context, *OrderReqDto) (*OrderDto, error)
func (*UnimplementedOrderApiServer) GetOrderByID ¶
func (*UnimplementedOrderApiServer) GetOrderByID(context.Context, *wrappers.StringValue) (*OrderDto, error)
func (*UnimplementedOrderApiServer) ListOrderByUserID ¶
func (*UnimplementedOrderApiServer) ListOrderByUserID(context.Context, *wrappers.StringValue) (*OrderDtoList, error)
Click to show internal directories.
Click to hide internal directories.