controllers

package
v0.0.0-...-34963ce Latest Latest
Warning

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

Go to latest
Published: Aug 22, 2013 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Cart

type Cart struct {
	Items map[string]Item
}

func (*Cart) Add

func (c *Cart) Add(id string, qty int) string

func (*Cart) Remove

func (c *Cart) Remove(id string)

type CartController

type CartController struct {
	beego.Controller
}

func (*CartController) Add

func (this *CartController) Add()

func (*CartController) Remove

func (this *CartController) Remove()

func (*CartController) View

func (this *CartController) View()

type EcsGoods

type EcsGoods struct {
	GoodsId   string
	GoodsName string
	ShopPrice string
}

type Item

type Item struct {
	Id    string
	Name  string
	Price string
	Qty   int
}

type MainController

type MainController struct {
	beego.Controller
}

func (*MainController) Get

func (this *MainController) Get()

type Shopping

type Shopping interface {
	Add(name string, qty int) string
	Remove(name string)
}

type TestController

type TestController struct {
	beego.Controller
}

func (*TestController) Bootstrap

func (this *TestController) Bootstrap()

Jump to

Keyboard shortcuts

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