errs

package
v0.0.0-...-db9179b Latest Latest
Warning

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

Go to latest
Published: Apr 27, 2024 License: BSD-3-Clause Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	TokenGenerateErr = status.New(401001, "令牌生成出错")
	TokenMiss        = status.New(401002, "令牌缺失")
	TokenInvalid     = status.New(401003, "令牌无效")
	TokenExpired     = status.New(401004, "令牌过期")
	TokenOut         = status.New(401005, "令牌失效") // Token 被覆盖(已登出)
)
View Source
var (
	AdminUsernameDuplicated   = status.New(400001, "用户名重复")
	AdminUnUsernameDuplicated = status.New(400002, "用户名重复")
	AdminLoginFail            = status.New(400003, "登录名或密码不正确")
	AdminNotFound             = status.New(400004, "找不到该用户")
	AdminLoginForbidden       = status.New(400005, "帐号已被禁用")
	AdminOldPwdErr            = status.New(400006, "旧密码错误")

	AdminEmailDuplicated = status.New(400008, "邮箱已经存在")
)
View Source
var BadRequest = errs.BadRequest
View Source
var (
	MenuNotFound = status.New(400100, "找不到该菜单")
)

Functions

This section is empty.

Types

This section is empty.

Jump to

Keyboard shortcuts

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