order

package
v0.0.0-...-266b4ff Latest Latest
Warning

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

Go to latest
Published: Oct 16, 2024 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Routes

func Routes(c OrderController) chi.Router

Routes for order controller

Types

type OrderController

type OrderController interface {
	CreateOrder(w http.ResponseWriter, r *http.Request)
	UpdateOrderStatusShipped(w http.ResponseWriter, r *http.Request)
	UpdateOrderStatusDelivered(w http.ResponseWriter, r *http.Request)
	GetOrdersHistory(w http.ResponseWriter, r *http.Request)
}

OrderController interface for orders

func NewController

func NewController(orderService service.OrderService, tokenService service.TokenService) OrderController

NewController constructor for controller layer

Jump to

Keyboard shortcuts

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