feat(notification): 新增全部标记已读接口

This commit is contained in:
2026-09-16 02:45:36 +08:00
parent c2519c4b6d
commit 89b59c7b91
5 changed files with 76 additions and 2 deletions
+2
View File
@@ -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)