[feat] git.fsdpf.net/go/req 依赖更新

This commit is contained in:
2024-11-26 17:09:07 +08:00
parent abd333d9b6
commit 7216c11f0c
3 changed files with 13 additions and 5 deletions
+3 -3
View File
@@ -32,7 +32,7 @@ type HttpController interface {
Route() req.Route
// 内部调用
Call(code string, params map[string]any, category ...req.RouteCategory) (req.HttpResponse, error)
Call(code string, params map[string]any, category ...req.RouteFilterOption) (req.HttpResponse, error)
// 内部调用
// Invoke()
@@ -57,8 +57,8 @@ func (this HttpHandleController) User() req.User {
return this.Request().Context().Value(req.RouteCtx{Name: "User"}).(req.User)
}
func (this HttpHandleController) Call(code string, params map[string]any, category ...req.RouteCategory) (req.HttpResponse, error) {
return do.MustInvoke[req.Router](this.Container()).Call(this.Request(), code, params, category...)
func (this HttpHandleController) Call(code string, params map[string]any, opts ...req.RouteFilterOption) (req.HttpResponse, error) {
return do.MustInvoke[req.Router](this.Container()).Call(this.Request(), code, params, opts...)
}
func (HttpHandleController) Execute(params req.GlobalParams) any {