ecode

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Aug 15, 2023 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ParseParamsError  = 100001
	AdminUnauthorized = 100002
	UserNotFound      = 101002

	ChatGptApiError = 102001
)
View Source
const (
	Success      = 0
	ServerError  = -500
	Unauthorized = 403

	DemoErrorCode = 100
)
View Source
const DefaultErrorMsg = "Server Error!"
View Source
const DefaultErrorReason = ""

Variables

This section is empty.

Functions

func GetErrorMsg

func GetErrorMsg(code int) (msg string)

func GetErrorReason

func GetErrorReason(code int) (reason string)

Types

This section is empty.

Jump to

Keyboard shortcuts

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