response

package
v1.4.3 Latest Latest
Warning

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

Go to latest
Published: Apr 17, 2021 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Custum

func Custum(c *gin.Context, data gin.H)

Custum 兼容函数

func Error

func Error(c *gin.Context, code int, err error, msg string)

Error 失败数据处理

func OK

func OK(c *gin.Context, data interface{}, msg string)

OK 通常成功数据处理

func PageOK

func PageOK(c *gin.Context, result interface{}, count int, pageIndex int, pageSize int, msg string)

PageOK 分页数据处理

Types

type Page

type Page struct {
	Count     int `json:"count"`
	PageIndex int `json:"pageIndex"`
	PageSize  int `json:"pageSize"`
}

type Response

type Response struct {
	pbErrors.Error
}

Jump to

Keyboard shortcuts

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