errmsg

package
v0.0.0-...-c2dc3ab Latest Latest
Warning

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

Go to latest
Published: Mar 13, 2023 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const (
	SUCCESS    = 200
	ERROR      = 500
	PARAMERROR = 501
	//code = 1000... 用户模块错误
	ERROR_USERNAME_USED      = 1001
	ERROR_PASSWORD_WRONG     = 1002
	ERROR_USER_NOT_EXIST     = 1003
	ERROR_TOKEN_NOT_EXIST    = 1004
	ERROR_TOKEN_RUNTIME_OUT  = 1005
	ERROR_TOKEN_WRONG        = 1006
	ERROR_TOKEN_FORMAT_WRONG = 1007
	ERROR_USER_NO_RIGHT      = 1008

	//code = 2000... 文章模块错误
	ERROR_ART_NOT_EXIST = 2001

	//code = 3000... 分类模块错误
	ERROR_CATEGORY_USED      = 3001
	ERROR_CATEGORY_NOT_EXIST = 3002
)

Variables

This section is empty.

Functions

func GetErrMsg

func GetErrMsg(code int) string

func SendBinJsonError

func SendBinJsonError(ctx *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