mirror of
https://github.com/bufanyun/hotgo.git
synced 2025-11-11 03:33:53 +08:00
发布v2.13.1版本,更新内容请查看:https://github.com/bufanyun/hotgo/blob/v2.0/docs/guide-zh-CN/start-update-log.md
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
// ================================================================================
|
||||
// Code generated by GoFrame CLI tool. DO NOT EDIT.
|
||||
// Code generated and maintained by GoFrame CLI tool. DO NOT EDIT.
|
||||
// You can delete these comments if you wish manually maintain this interface file.
|
||||
// ================================================================================
|
||||
|
||||
@@ -13,22 +13,44 @@ import (
|
||||
|
||||
type (
|
||||
IMiddleware interface {
|
||||
// AdminAuth 后台鉴权中间件
|
||||
AdminAuth(r *ghttp.Request)
|
||||
// ApiAuth API鉴权中间件
|
||||
ApiAuth(r *ghttp.Request)
|
||||
// HomeAuth 前台页面鉴权中间件
|
||||
HomeAuth(r *ghttp.Request)
|
||||
// Ctx 初始化请求上下文
|
||||
Ctx(r *ghttp.Request)
|
||||
// CORS allows Cross-origin resource sharing.
|
||||
CORS(r *ghttp.Request)
|
||||
// DemoLimit 演示系统操作限制
|
||||
DemoLimit(r *ghttp.Request)
|
||||
// Addon 插件中间件
|
||||
Addon(r *ghttp.Request)
|
||||
// DeliverUserContext 将用户信息传递到上下文中
|
||||
DeliverUserContext(r *ghttp.Request) (err error)
|
||||
// IsExceptAuth 是否是不需要验证权限的路由地址
|
||||
IsExceptAuth(ctx context.Context, appName, path string) bool
|
||||
// IsExceptLogin 是否是不需要登录的路由地址
|
||||
IsExceptLogin(ctx context.Context, appName, path string) bool
|
||||
// Blacklist IP黑名单限制中间件
|
||||
Blacklist(r *ghttp.Request)
|
||||
// Develop 开发工具白名单过滤
|
||||
Develop(r *ghttp.Request)
|
||||
// GetFilterRoutes 获取支持预处理的web路由
|
||||
GetFilterRoutes(r *ghttp.Request) map[string]ghttp.RouterItem
|
||||
GenFilterRouteKey(router *ghttp.Router) string
|
||||
// GenFilterRequestKey 根据请求生成唯一key
|
||||
GenFilterRequestKey(r *ghttp.Request) string
|
||||
// GenFilterRouteKey 根据路由生成唯一key
|
||||
GenFilterRouteKey(r *ghttp.Router) string
|
||||
// GenRouteKey 生成唯一key
|
||||
GenRouteKey(method, path string) string
|
||||
// PreFilter 请求输入预处理
|
||||
// api使用gf规范路由并且XxxReq结构体实现了validate.Filter接口即可
|
||||
PreFilter(r *ghttp.Request)
|
||||
// ResponseHandler HTTP响应预处理
|
||||
ResponseHandler(r *ghttp.Request)
|
||||
// WebSocketAuth websocket鉴权中间件
|
||||
WebSocketAuth(r *ghttp.Request)
|
||||
}
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user