constants

package
v0.0.0-...-997d260 Latest Latest
Warning

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

Go to latest
Published: Jan 6, 2022 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

View Source
const (
	AnnoPermission = "per"
	AnnoAuth       = "auth"
)
View Source
const (
	CtxAuth  = "auth"
	CtxError = "error"
)
View Source
const (
	HeaderAuth   = "Authorization"
	HeaderUserId = "x-user-id"
)
View Source
const (
	CacheApplicationByClientId = "application_client_id"
)

Variables

View Source
var (
	CodeNoAuth            = gcode.New(1001, "您还未登录", nil)
	CodeNoPermission      = gcode.New(1002, "权限不足!", nil)
	CodeTokenExpired      = gcode.New(1003, "您的Token已过期,请重新登录", nil)
	CodeTokenResolveError = gcode.New(1004, "Token解析失败", nil)
	CodeTokenInvalid      = gcode.New(1005, "您的Token已失效", nil)
	CodeUserNotExists     = gcode.New(1006, "用户不存在", nil)
	CodeGetTokenFailed    = gcode.New(1007, "获取Token失败", nil)
	CodeParseTokenFailed  = gcode.New(1008, "解析Token失败", nil)
)
View Source
var (
	CodeParamCantBlank  = gcode.New(2001, "参数不能为空", nil)
	CodeUserFindError   = gcode.New(2002, "查询用户失败", nil)
	CodeRecordNotExists = gcode.New(2003, "记录不存在", nil)
	CodeAppNotExists    = gcode.New(2004, "应用不存在", nil)
)

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