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 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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