feat: 完善后端脚手架基础能力

This commit is contained in:
2026-08-09 01:06:21 +08:00
parent e311f416f2
commit f95311a107
61 changed files with 5630 additions and 521 deletions
+8 -2
View File
@@ -1,8 +1,14 @@
package ws
import "github.com/gin-gonic/gin"
import (
wsModule "skeleton/modules/ws"
"github.com/gin-gonic/gin"
)
// ApplyWebSocketRoutes WebSocket路由挂载点
func ApplyWebSocketRoutes(r *gin.RouterGroup) {
_ = r
hub := wsModule.NewHub()
controller := wsModule.NewController(hub)
r.GET("/ws", controller.Connect)
}