e

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Dec 15, 2021 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Success               = 00000
	Error                 = 10000
	RequestParamsNotValid = 10001

	TokenNotExist = 11000
	TokenNotLegal = 11001
	TokenExpired  = 11002

	LoginFailed    = 12000
	RegisterFailed = 12001
)

Variables

View Source
var MsgFlags = map[int]string{
	Success:               "ok",
	Error:                 "system error",
	RequestParamsNotValid: "request params not valid",
	TokenNotExist:         "token not exist",
	TokenNotLegal:         "token is required",
	TokenExpired:          "token expired",
	LoginFailed:           "login failed",
	RegisterFailed:        "register failed",
}

MsgFlags Code message map

Functions

func GetMsg

func GetMsg(code int) string

GetMsg get error information based on Code

Types

This section is empty.

Jump to

Keyboard shortcuts

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