Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
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信息"}
Click to show internal directories.
Click to hide internal directories.