Documentation ¶
Overview ¶
中间件层
中间件层
Index ¶
Constants ¶
View Source
const ( INVALID_PARAMS int = 40001 ERROR_AUTH_CHECK_TOKEN_FAIL int = 40002 ERROR_AUTH_CHECK_TOKEN_TIMEOUT int = 40003 ERROR_RBAC_LOAD int = 40004 ERROR_RBAC_AUTH int = 40005 )
内置异常
View Source
const ADMIN_ROLE = 1
Variables ¶
View Source
var TOKEN_ERROR = map[int]string{ INVALID_PARAMS: "Token不能为空", ERROR_AUTH_CHECK_TOKEN_FAIL: "Token鉴权失败", ERROR_AUTH_CHECK_TOKEN_TIMEOUT: "Token已超时", ERROR_RBAC_LOAD: "读取rdbc权限列表失败", ERROR_RBAC_AUTH: "您没有该资源的访问权限", }
内置异常表 TOKEN_ERROR
Functions ¶
func JwtMiddleware ¶
func OperaterLog ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.