response

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Sep 15, 2021 License: MulanPSL-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewDataListResult

func NewDataListResult(data []gin.H, total int64, page, size int) *gin.H

NewDataListResult 统一数据列表响应结构

func NewEmptyJsonList

func NewEmptyJsonList() []gin.H

NewEmptyJsonList 获取空的json列表

func Pagination

func Pagination(total int64, page, size int) *gin.H

Pagination 统一分页

func Response

func Response(context *gin.Context, code int, message string, data *gin.H)

Response 响应一个错误消息

func Success

func Success(context *gin.Context, code int, data *gin.H)

Success 响应一个成功消息

Types

This section is empty.

Jump to

Keyboard shortcuts

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