controller

package
v1.9.5 Latest Latest
Warning

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

Go to latest
Published: Sep 5, 2023 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
}

GoodsController .

func (*GoodsController) GetBy

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

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

type ShopController

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

ShopController .

func (*ShopController) GetBy

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

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

Jump to

Keyboard shortcuts

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