bee

package
v0.0.0-...-4719e15 Latest Latest
Warning

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

Go to latest
Published: May 7, 2017 License: AGPL-3.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Context

type Context struct {
	context.Context
}

Context 扩展Beego的Context

func (*Context) JSON

func (ctx *Context) JSON(data interface{}, httpCode ...int)

JSON 输出JSON数据到Http Response。 当data为Error类型时,将直接输出{error:"Error信息"}

type Controller

type Controller struct {
	beego.Controller
}

Controller 可扩展Controller

func (*Controller) JSON

func (c *Controller) JSON(data interface{}, httpCode ...int)

JSON 输出JSON数据到Http Response。 当data为Error类型时,将直接输出{error:"Error信息"}

Jump to

Keyboard shortcuts

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