errcode

package
v0.4.20 Latest Latest
Warning

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

Go to latest
Published: Dec 12, 2024 License: GPL-3.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

View Source
const (
	CodeOK uint32 = 0

	ErrCode_BadRequest    = http.StatusBadRequest
	ErrCode_InternalError = http.StatusInternalServerError
	ErrCode_NotFound      = http.StatusNotFound
	ErrCode_Unauthorized  = http.StatusUnauthorized
	ErrCode_NoPermission  = http.StatusForbidden

	ErrCode_WrongUsernameOrPassword        = 10001
	ErrCode_UserStatusNotNormal            = 10002
	ErrCode_UserHasNoPlatform              = 10003
	ErrCode_NotSupportMobileForgotPassword = 10004
	ErrCode_SendVerifyCodeTooBusy          = 10005
	ErrCode_PasswordTooShort               = 10006
	ErrCode_RequireMemberLogin             = 10007 // 需要添加家庭成员并选择
)

Variables

This section is empty.

Functions

func GetMessage

func GetMessage(code uint32) string

GetMessage returns the error message of the error code.

Types

This section is empty.

Jump to

Keyboard shortcuts

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