api

package
v0.0.0-...-9123e61 Latest Latest
Warning

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

Go to latest
Published: Oct 30, 2018 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ApiHandler

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

func NewHandler

func NewHandler(s *server.Server) *ApiHandler

TODO : add services

func (*ApiHandler) ServeHTTP

func (ah *ApiHandler) ServeHTTP(w http.ResponseWriter, r *http.Request)

type BasketDTO

type BasketDTO struct {
	Id uuid.UUID `json:"id"`
}

type BasketItemDTO

type BasketItemDTO struct {
	ItemId uuid.UUID `json:"item_id"`
	Count  int       `json:"count"`
}

type TaxDTO

type TaxDTO struct {
	Id         uuid.UUID           `json:"id"`
	Name       string              `json:"name"`
	Rate       decimal.Decimal     `json:"rate"`
	Origin     models.TaxOrigin    `json:"origin"`
	Condition  models.TaxCondition `json:"condition"`
	Categories []uuid.UUID         `json:"categories"`
}

Jump to

Keyboard shortcuts

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