render

package
v0.0.0-...-b705d59 Latest Latest
Warning

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

Go to latest
Published: Dec 25, 2019 License: MPL-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const (
	CODE_OK                     = 0
	CODE_ERR_SYSTEM             = 1000
	CODE_ERR_APP                = 1001
	CODE_ERR_PARAM              = 1002
	CODE_ERR_DATA_REPEAT        = 1003
	CODE_ERR_LOGIN_FAILED       = 1004
	CODE_ERR_NO_LOGIN           = 1005
	CODE_ERR_NO_PRIV            = 1006
	CODE_ERR_TASK_ERROR         = 1007
	CODE_ERR_USER_OR_PASS_WRONG = 1008
	CODE_ERR_NO_DATA            = 1009
)

Variables

This section is empty.

Functions

func AppError

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

func CustomerError

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

func JSON

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

func MicroParse

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

func NoDataError

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

func ParamError

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

func RepeatError

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

func Success

func Success(c *gin.Context)

Types

This section is empty.

Jump to

Keyboard shortcuts

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