article

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: 9 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 /app/articles (login,category,app) [post]

func (*Controller) App

func (this *Controller) App(req *http.Request, res http.ResponseWriter)

根据分类获取所属app的信息

func (*Controller) Category

func (this *Controller) Category(req *http.Request, res http.ResponseWriter)

获取所属category的信息 @param category

func (*Controller) Get

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

获取 @router /app/articles/:id [get]

func (*Controller) Gets

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

分页获取 @router /app/articles [get]

func (*Controller) Login

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

获取登录用户

Jump to

Keyboard shortcuts

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