You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
19 lines
456 B
19 lines
456 B
package websocketRouters
|
|
|
|
import (
|
|
"appNewPlatform/controller"
|
|
|
|
"github.com/gin-gonic/gin"
|
|
)
|
|
|
|
//ws 路由
|
|
|
|
func (a *ApiRouter) RouterGroup(router *gin.RouterGroup) {
|
|
apiRouter := router.Group("ws")
|
|
var methodBinding = controller.ApiInlet.CommonApi
|
|
{
|
|
apiRouter.GET("", methodBinding.WsIndex) //入口
|
|
// apiRouter.POST("", methodBinding.WsIndex) //入口
|
|
apiRouter.GET("identity_link", methodBinding.IdentityLink) //根据用户发送信息
|
|
}
|
|
}
|
|
|