@@ -0,0 +1,25 @@
|
||||
package router
|
||||
|
||||
import (
|
||||
"91porn-server/app/api/imctrl"
|
||||
"91porn-server/app/middleware/limitHandler"
|
||||
|
||||
"github.com/gin-gonic/gin"
|
||||
)
|
||||
|
||||
func imdRouter(router *gin.RouterGroup) {
|
||||
im := router.Group("/im")
|
||||
{
|
||||
im.GET("/sign", imctrl.GetImSign)
|
||||
im.GET("/whiteSign", imctrl.GetWhiteImSign)
|
||||
im.GET("/newSign", imctrl.ImSign)
|
||||
im.POST("/token", imctrl.Token)
|
||||
im.POST("/user-id", imctrl.UserID)
|
||||
im.POST("/friend/ensure", imctrl.EnsureFriend)
|
||||
// im skd获取
|
||||
//im.POST("/friend/list", imctrl.FriendList)
|
||||
//im.POST("/message/history", imctrl.MessageHistory)
|
||||
im.POST("/message/send", limitHandler.FilterRequestLimit, imctrl.SendMessage)
|
||||
im.POST("/ad", imctrl.GetIMAd)
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user