Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Register ¶
func Register(area string, c IController) collections.List[*context.HttpRoute]
Register 自动注册控制器下的所有Action方法
Types ¶
type BaseController ¶
type BaseController struct { *context.HttpContext // 上下文 Action map[string]Action // 设置每个Action参数 }
type HandleMiddleware ¶ added in v0.2.0
type HandleMiddleware struct { }
func (HandleMiddleware) Invoke ¶ added in v0.2.0
func (receiver HandleMiddleware) Invoke(httpContext *context.HttpContext)
type IActionFilter ¶ added in v0.2.0
type IActionFilter interface { // OnActionExecuting Action执行前 OnActionExecuting() // OnActionExecuted Action执行后 OnActionExecuted() }
IActionFilter 过滤器
type IController ¶
type IController interface {
// contains filtered or unexported methods
}
Click to show internal directories.
Click to hide internal directories.