api

package
v0.3.1 Latest Latest
Warning

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

Go to latest
Published: Feb 9, 2018 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AppController added in v0.3.0

type AppController struct {
	BaseController
}

func (*AppController) Get added in v0.3.0

func (c *AppController) Get()

type BaseController

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

BaseController API基础控制器

func (*BaseController) Finish

func (c *BaseController) Finish()

Finish beego Controller Finish事件

func (*BaseController) Prepare

func (c *BaseController) Prepare()

Prepare beego Controller Prepare事件

func (*BaseController) SetData

func (c *BaseController) SetData(key string, val interface{})

SetData 设置响应数据

func (*BaseController) SetError

func (c *BaseController) SetError(options ...interface{})

SetError 设置错误响应信息

func (*BaseController) SetModel

func (c *BaseController) SetModel(model interface{})

SetModel 设置响应的数据模型

type LogController

type LogController struct {
	BaseController
}

func (*LogController) Get

func (c *LogController) Get()

func (*LogController) Post

func (c *LogController) Post()

type ReqController

type ReqController struct {
	BaseController
}

func (*ReqController) Post

func (c *ReqController) Post()

type ResponseCodeType

type ResponseCodeType int

ResponseCodeType 响应代码类型

const (
	// ResponseOK 正常响应
	ResponseOK ResponseCodeType = 10000
	// ResponseError 错误响应
	ResponseError ResponseCodeType = 90000
	// ResponseUnauthorized 没有权限
	ResponseUnauthorized ResponseCodeType = 90100
)

Jump to

Keyboard shortcuts

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