添加用户获取消息通知接口

This commit is contained in:
JACKYMYPERSON
2025-09-28 19:18:40 +08:00
parent 9081472c10
commit 59846dea8d
2 changed files with 81 additions and 0 deletions

View File

@@ -8,6 +8,7 @@ import (
"toutoukan/controllers/comments/publishComments"
"toutoukan/controllers/goods"
"toutoukan/controllers/kills"
"toutoukan/controllers/notifications/getnotifications"
"toutoukan/controllers/search"
"toutoukan/controllers/system"
"toutoukan/controllers/user"
@@ -55,6 +56,10 @@ func SetupRouter() *gin.Engine {
commentGroup.POST("/get", getcomments.GetComments)
commentGroup.POST("/publish", publishComments.PublishComment)
}
notificationGroup := r.Group("/notification")
{
notificationGroup.POST("/get", getnotifications.GetNotifications)
}
return r
}