controllers

package
v0.0.0-...-d5996f0 Latest Latest
Warning

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

Go to latest
Published: Dec 13, 2019 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type OrderController

type OrderController struct {
	Ctx          iris.Context
	OrderService service.IOrderService
}

func (*OrderController) Get

func (o *OrderController) Get() mvc.View

查询全部订单

type ProductController

type ProductController struct {
	Ctx            iris.Context
	ProductService service.IProductService
}

func (*ProductController) GetAdd

func (p *ProductController) GetAdd() mvc.View

显示添加商品页面

func (*ProductController) GetAll

func (p *ProductController) GetAll() mvc.View

func (*ProductController) GetDelete

func (p *ProductController) GetDelete()

func (*ProductController) GetManager

func (p *ProductController) GetManager() mvc.View

展示商品修改页面

func (*ProductController) PostAdd

func (p *ProductController) PostAdd()

处理添加商品逻辑

func (*ProductController) PostUpdate

func (p *ProductController) PostUpdate()

修改商品

Jump to

Keyboard shortcuts

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