controllers

package
v1.3.1 Latest Latest
Warning

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

Go to latest
Published: Jan 20, 2020 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type GoodsController added in v1.3.0

type GoodsController struct {
	Runtime freedom.Runtime
}

func (*GoodsController) GetBy added in v1.3.0

func (goods *GoodsController) GetBy(id int) (result models.GoodsModel, e error)

Get handles the GET: /goods/:id route.

type ShopController added in v1.3.0

type ShopController struct {
	Runtime  freedom.Runtime
	Shopping services.ShoppingInterface
}

func (*ShopController) GetBy added in v1.3.0

func (s *ShopController) GetBy(id int) string

Get handles the GET: /shop/:id route.

Jump to

Keyboard shortcuts

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