Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ListOrdersService ¶
type ListOrdersService struct { pb.UnimplementedListOrdersServiceServer ListOrdersUseCase usecase.ListOrdersUseCase }
func NewListOrdersService ¶
func NewListOrdersService(ListOrdersUseCase usecase.ListOrdersUseCase) *ListOrdersService
func (*ListOrdersService) ListOrders ¶
func (s *ListOrdersService) ListOrders(ctx context.Context, in *pb.ListOrdersRequest) (*pb.ListOrdersResponse, error)
type OrderService ¶
type OrderService struct { pb.UnimplementedOrderServiceServer CreateOrderUseCase usecase.CreateOrderUseCase }
func NewOrderService ¶
func NewOrderService(createOrderUseCase usecase.CreateOrderUseCase) *OrderService
func (*OrderService) CreateOrder ¶
func (s *OrderService) CreateOrder(ctx context.Context, in *pb.CreateOrderRequest) (*pb.CreateOrderResponse, error)
Click to show internal directories.
Click to hide internal directories.