Files
huangguo_server/web/router/im.go
T
rootandClaude Opus 5 8679200f41 Initial commit
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
2026-09-15 13:57:10 +08:00

25 lines
786 B
Go

package router
import (
"91porn-server/web/api/web_im"
"github.com/gin-gonic/gin"
)
func imRouter(router *gin.RouterGroup) {
group := router.Group("/im")
{
group.POST("/sync-users", web_im.SyncIMUsers)
group.GET("/sync-users/status", web_im.SyncIMUsersStatus)
group.POST("/users/list", web_im.ListIMUsers)
group.POST("/users/sync", web_im.SyncIMUsersByIDs)
group.POST("/friend/add-direct", web_im.AddIMFriendDirect)
group.POST("/friends/add-direct", web_im.AddIMFriendDirect)
group.POST("/online/status", web_im.BatchIMOnlineStatus)
group.POST("/online/status/batch", web_im.BatchIMOnlineStatus)
group.POST("/passthrough/send", web_im.SendIMPassthrough)
group.POST("/ad/notify", web_im.SendIMAdNotify)
group.POST("/message/send", web_im.SendIMMessage)
}
}