handler

package
v0.0.0-...-8499f05 Latest Latest
Warning

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

Go to latest
Published: Nov 16, 2020 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewHTTPBillHandler

func NewHTTPBillHandler(e *echo.Echo, billUcase bill.Usecase)

NewHTTPBillHandler define the routing for HTTPBillHandler.

Types

type BillResponse

type BillResponse struct {
	Bill  []bill.Bill `json:"bill"`
	Total bill.Total  `json:"total"`
}

BillResponse define the default json response for the bill.

type HTTPBillHandler

type HTTPBillHandler struct {
	// contains filtered or unexported fields
}

HTTPBillHandler define the http delivery layer for the bill.

func (*HTTPBillHandler) GetBill

func (handler *HTTPBillHandler) GetBill(c echo.Context) (err error)

GetBill get the bill list that has been calculated.

Jump to

Keyboard shortcuts

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