Documentation ¶
Index ¶
- type OrderController
- func (oc *OrderController) Create(w http.ResponseWriter, r *http.Request)
- func (oc *OrderController) CreateOrderItem(w http.ResponseWriter, r *http.Request)
- func (oc *OrderController) DeleteOrderItem(w http.ResponseWriter, r *http.Request)
- func (oc *OrderController) FindAll(w http.ResponseWriter, r *http.Request)
- func (oc *OrderController) FindById(w http.ResponseWriter, r *http.Request)
- func (oc *OrderController) UpdateStatus(w http.ResponseWriter, r *http.Request)
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)
Click to show internal directories.
Click to hide internal directories.