controllers

package
v1.7.2 Latest Latest
Warning

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

Go to latest
Published: Jun 6, 2020 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	EventSell = "event-sell"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type ShopController

type ShopController struct {
	Worker   freedom.Worker
	Producer kafka.Producer
}

func (*ShopController) GetBy

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

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

type StoreController

type StoreController struct {
	Worker freedom.Worker
}

func (*StoreController) PostSellGoodsBy

func (s *StoreController) PostSellGoodsBy(eventID string) error

PostSellGoodsBy 事件方法为 Post开头, 参数是事件id

Jump to

Keyboard shortcuts

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