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 wraps general functionality.
func (Controller) Validate ¶
func (base Controller) Validate(val interface{}) error
Validate the parameters.
func (Controller) WriteStatusAndDataJSON ¶
func (base Controller) WriteStatusAndDataJSON(status int, data interface{})
WriteStatusAndDataJSON write JSON encoding status (and data) to controller and sends a response. The data is optional.
func (Controller) WriteStatusAndTokenJSON ¶
func (base Controller) WriteStatusAndTokenJSON(status int, token interface{})
WriteStatusAndTokenJSON write JSON encoding status and token to controller and sends a response.
Click to show internal directories.
Click to hide internal directories.