response

package
v1.7.0 Latest Latest
Warning

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

Go to latest
Published: Sep 3, 2024 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ERROR added in v1.7.0

func ERROR(c *gin.Context, code int, message string)

func Exception

func Exception() gin.HandlerFunc

func Fatal added in v1.7.0

func Fatal(c *gin.Context, message string)

func RespJson

func RespJson(c *gin.Context, code int, message string, data interface{})

func Success

func Success(c *gin.Context, data interface{})

Types

type Resp

type Resp struct {
	Code    int         `json:"code"`
	Message string      `json:"message"`
	Data    interface{} `json:"data"`
}

Jump to

Keyboard shortcuts

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