feat: 升级 samber/do v1 → v2

This commit is contained in:
2026-05-15 09:04:12 +08:00
parent 7741f7584d
commit 9ad5d25836
47 changed files with 1456 additions and 684 deletions
+2 -2
View File
@@ -5,7 +5,7 @@ import (
"git.fsdpf.net/go/req"
"github.com/gorilla/websocket"
"github.com/samber/do"
"github.com/samber/do/v2"
)
type WsClientGroup string
@@ -90,7 +90,7 @@ func (WsHandleController) ClientGroup(req.GlobalParams) WsClientGroup {
return defaultWsClientGroup
}
func NewWsController(container *do.Injector, request *http.Request, ws WsClient) WsController {
func NewWsController(container do.Injector, request *http.Request, ws WsClient) WsController {
return &WsHandleController{
Controller: &BaseController{container},
request: request,