controllers

package
v1.7.11 Latest Latest
Warning

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

Go to latest
Published: Jul 19, 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

type GoodsController struct {
	Worker freedom.Worker
}

func (*GoodsController) GetBy

func (goods *GoodsController) GetBy(id int) (result dto.Goods, e error)

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

type ShopController

type ShopController struct {
	Worker   freedom.Worker
	Shopping *domain.ShopService
}

func (*ShopController) GetBy

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