controllers

package
v0.0.0-...-55179ed Latest Latest
Warning

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

Go to latest
Published: Oct 16, 2023 License: MPL-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type OrderController

type OrderController struct {
	Repository entity.OrderRepository
	Publisher  entity.OrderPublisher
}

func NewOrderController

func NewOrderController(
	orderRepository entity.OrderRepository,
	orderPublisher entity.OrderPublisher,
) *OrderController

func (*OrderController) Create

func (oc *OrderController) Create(w http.ResponseWriter, r *http.Request)

func (*OrderController) CreateOrderItem

func (oc *OrderController) CreateOrderItem(w http.ResponseWriter, r *http.Request)

func (*OrderController) DeleteOrderItem

func (oc *OrderController) DeleteOrderItem(w http.ResponseWriter, r *http.Request)

func (*OrderController) FindAll

func (oc *OrderController) FindAll(w http.ResponseWriter, r *http.Request)

func (*OrderController) FindById

func (oc *OrderController) FindById(w http.ResponseWriter, r *http.Request)

func (*OrderController) UpdateStatus

func (oc *OrderController) UpdateStatus(w http.ResponseWriter, r *http.Request)

Jump to

Keyboard shortcuts

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