e

package
v0.0.0-...-85027f2 Latest Latest
Warning

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

Go to latest
Published: Jun 26, 2023 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

View Source
const (
	CACHE_ARTICLE = "ARTICLE"
	CACHE_TAG     = "TAG"
)
View Source
const (
	SUCCESS        = 1
	ERROR          = 0
	SYS_ERR        = 500
	INVALID_PARAMS = 300
	NOT_LOGIN      = 200
	LOGIN_ERR      = 404
)

Variables

View Source
var MsgFlags = map[int]string{
	SUCCESS:        "success",
	ERROR:          "err",
	INVALID_PARAMS: "request param happen error",
	NOT_LOGIN:      "please login",
	LOGIN_ERR:      "login error",
	SYS_ERR:        "system error",
}

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