feat(notification): 新增全部标记已读接口
This commit is contained in:
@@ -121,6 +121,8 @@ func NewRouter() *gin.Engine {
|
||||
// 通知
|
||||
auth.GET("/notification", notificationHandler.List)
|
||||
auth.GET("/notification/unread", notificationHandler.Unread)
|
||||
// 静态路径 /notification/read-all 与 /notification/:uuid/read 段数不同,不会互相抢占
|
||||
auth.POST("/notification/read-all", notificationHandler.ReadAll)
|
||||
auth.GET("/notification/:uuid", notificationHandler.Get)
|
||||
auth.POST("/notification/:uuid/read", notificationHandler.Read)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user