feat: 升级 samber/do v1 → v2
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user