beego

package
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: Oct 18, 2019 License: Apache-2.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 Controller

type Controller struct {
	beego.Controller
}

Controller 入口

func (*Controller) GetPostJson

func (c *Controller) GetPostJson(v interface{}) ([]byte, error)

GetPostJson 获取 post JSON 数据 转换成入参类型

func (*Controller) ResJson

func (c *Controller) ResJson(data interface{})

ResJson 成功跳转

type Meta

type Meta struct {
	Status      int `json:"status"`
	Code        int `json:"code"`
	TotalCount  int `json:"total_count"`
	PageCount   int `json:"page_count"`
	CurrentPage int `json:"current_page"`
	PerPage     int `json:"per_page"`
}

Meta 返回参数

type Res

type Res struct {
	Meta Meta            `json:"meta"`
	Data json.RawMessage `json:"data"`
}

Res 返回参数

Jump to

Keyboard shortcuts

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