controllers

package
v0.0.0-...-3406725 Latest Latest
Warning

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

Go to latest
Published: Mar 17, 2014 License: BSD-3-Clause Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type APIController

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

func (*APIController) Finish

func (this *APIController) Finish()

func (*APIController) MustInt64

func (this *APIController) MustInt64(key string) int64

func (*APIController) MustString

func (this *APIController) MustString(key string) string

key must exists, ^_^

type MainController

type MainController struct {
	beego.Controller
}

func (*MainController) Get

func (this *MainController) Get()

type NopController

type NopController struct {
	APIController
}

func (*NopController) NotExisted

func (this *NopController) NotExisted()

type UserController

type UserController struct {
	APIController
}

func (*UserController) All

func (this *UserController) All()

GET /api/user/all

func (*UserController) Delete

func (this *UserController) Delete()

DELELE /api/user/delete

func (*UserController) Get

func (this *UserController) Get()

GET /api/user/:id

func (*UserController) Post

func (this *UserController) Post()

POST /api/user/:id

func (*UserController) Save

func (this *UserController) Save()

POST /api/user/save

Jump to

Keyboard shortcuts

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