response

package
v0.0.0-...-6b52b4a Latest Latest
Warning

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

Go to latest
Published: Apr 9, 2024 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetResponseCode

func GetResponseCode(code int) int

func GetResponseMsg

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

func UtilResponseReturnJson

func UtilResponseReturnJson(c *gin.Context, code int, model interface{}, msg ...string)

func UtilResponseReturnJsonFailed

func UtilResponseReturnJsonFailed(c *gin.Context, code int)

func UtilResponseReturnJsonWithMsg

func UtilResponseReturnJsonWithMsg(c *gin.Context, code int, msg string, model interface{},
	callbackFlag bool, unifyCode bool)

Types

This section is empty.

Jump to

Keyboard shortcuts

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