response

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Feb 13, 2023 License: Apache-2.0 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