评论分页

This commit is contained in:
2026-09-07 10:33:41 +08:00
parent 7f5bb974fa
commit caa9436e6a
5 changed files with 151 additions and 51 deletions
+1
View File
@@ -81,6 +81,7 @@ func setupAuthenticatedAPIRoutes(api *gin.RouterGroup) {
// 评论管理(查看所有评论,需登录)
auth.GET("/comments", backend.GetComments)
auth.GET("/comments/posts", backend.GetCommentPosts) // 有评论的文章列表(筛选下拉框)
auth.PUT("/comments/:id/approve", backend.ApproveComment)
auth.PUT("/comments/:id/spam", backend.MarkSpamComment)
auth.DELETE("/comments/:id", backend.DeleteComment)