app

package
v0.0.0-...-d482505 Latest Latest
Warning

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

Go to latest
Published: Sep 5, 2015 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Controller

type Controller struct {
	as.Controller
	// contains filtered or unexported fields
}

func New

func New() *Controller

func (*Controller) Add

func (this *Controller) Add(req *http.Request) (int, []byte)

新增 @router /apps (user) [post]

func (*Controller) Get

func (this *Controller) Get(param martini.Params) (int, []byte)

获取 @router /apps/:path [get]

func (*Controller) Gets

func (this *Controller) Gets(req *http.Request) (int, []byte)

获取总分类信息 @router /apps [get]

func (*Controller) Type

func (this *Controller) Type(req *http.Request, param martini.Params) (int, []byte)

获取各分类信息 @router /apps/type/:type [get]

func (*Controller) Update

func (this *Controller) Update(param martini.Params, req *http.Request) (int, []byte)

修改 @router /apps/:id (user) [patch]

func (*Controller) User

func (this *Controller) User(session sessions.Session, res http.ResponseWriter)

获取登陆用户信息

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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