init: hgmj server initial commit

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
This commit is contained in:
2026-10-08 16:50:13 +08:00
co-authored by Claude Opus 4.7
commit 625e89c15d
1870 changed files with 254090 additions and 0 deletions
+24
View File
@@ -0,0 +1,24 @@
package router
import (
"91jd-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)
}
}