package
Version:
v1.6.0
Opens a new window with list of versions in this module.
Published: Aug 7, 2023
License: MIT
Opens a new window with license information.
Imports: 13
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
AdminLogger 管理员操作日志
@return gin.HandlerFunc
CatchError 异常捕捉
@return gin.HandlerFunc 返回一个中间件上下文
CheckPermission 权限检测
@return gin.HandlerFunc
Cors 直接放行所有跨域请求并放行所有 OPTIONS 方法
@return gin.HandlerFunc
Jwt 鉴权
@return gin.HandlerFunc 返回一个中间件上下文
VerifyRoute 判断访问路径是否为白名单,在白名单直接返回true不验证token
@param string route 当前请求路由
@param string method 当前请求的http方法
@param map[string]string routes 路由组
@return bool 返回一个路由是否存在不校验token数组路由中的值
Source Files
¶
Click to show internal directories.
Click to hide internal directories.