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

This commit is contained in:
2024-11-26 17:39:27 +08:00
parent 7216c11f0c
commit aed3a5ac22
3 changed files with 8 additions and 4 deletions
+2 -2
View File
@@ -32,7 +32,7 @@ type HttpController interface {
Route() req.Route
// 内部调用
Call(code string, params map[string]any, category ...req.RouteFilterOption) (req.HttpResponse, error)
Call(code string, params map[string]any, category ...req.RouteMatchOption) (req.HttpResponse, error)
// 内部调用
// Invoke()
@@ -57,7 +57,7 @@ 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, opts ...req.RouteFilterOption) (req.HttpResponse, error) {
func (this HttpHandleController) Call(code string, params map[string]any, opts ...req.RouteMatchOption) (req.HttpResponse, error) {
return do.MustInvoke[req.Router](this.Container()).Call(this.Request(), code, params, opts...)
}