hsc

package
v0.0.0-...-081b122 Latest Latest
Warning

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

Go to latest
Published: Dec 20, 2021 License: Apache-2.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

View Source
const (
	SUCCESS        = 0
	ERROR          = 500
	INVALID_PARAMS = 400
	NO_LOGIN       = 401
	NOT_PROMISE    = 403

	ERROR_AUTH_CHECK_TOKEN_FAIL    = 20001
	ERROR_AUTH_CHECK_TOKEN_TIMEOUT = 20002
	ERROR_AUTH_TOKEN               = 20003
	ERROR_AUTH                     = 20004
)

提供状态码

Variables

View Source
var MsgFlags = map[int]string{
	SUCCESS:        "succes",
	ERROR:          "error",
	INVALID_PARAMS: "invalid params",
	NOT_PROMISE:    "no promise",

	ERROR_AUTH_CHECK_TOKEN_FAIL:    "Token Check Fail",
	ERROR_AUTH_CHECK_TOKEN_TIMEOUT: "Token Timeout",
	ERROR_AUTH_TOKEN:               "Token Create Fail",
	ERROR_AUTH:                     "Token Error",
}

提供错误信息

Functions

func GetMsg

func GetMsg(code int) string

Types

This section is empty.

Jump to

Keyboard shortcuts

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