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.
20 lines
456 B
20 lines
456 B
|
10 months ago
|
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) //根据用户发送信息
|
||
|
|
}
|
||
|
|
}
|