mirror of
https://github.com/bufanyun/hotgo.git
synced 2025-11-14 05:03:49 +08:00
1、泛型化参数,预留泛型约束,方便以后代码扩展的类型安全校验
2、升级goframe至v2.7.3
This commit is contained in:
@@ -29,7 +29,7 @@ func WebSocket(ctx context.Context, group *ghttp.RouterGroup) {
|
||||
group.Middleware(service.Middleware().WebSocketAuth)
|
||||
|
||||
// ws
|
||||
group.GET("/", websocket.WsPage)
|
||||
group.GET("/", websocket.WsPage[any])
|
||||
})
|
||||
|
||||
// 启动websocket监听
|
||||
|
||||
Reference in New Issue
Block a user