feat: 添加远程地址字段到评论功能,支持记录用户的远程地址

This commit is contained in:
2025-09-12 15:50:44 +08:00
parent 4c907f0a87
commit 5fab1806bc
5 changed files with 131 additions and 127 deletions

View File

@ -14,7 +14,7 @@ func registerCommentRoutes(group *route.RouterGroup) {
commentGroup.POST("/c", commentController.CreateComment)
commentGroup.PUT("/c/:id", commentController.UpdateComment)
commentGroup.DELETE("/c/:id", commentController.DeleteComment)
commentGroup.PUT("/c/:id/react", commentController.ReactComment) // 暂时先不写
commentGroup.PUT("/c/:id/react", commentController.ReactComment)
commentGroupWithoutAuth.GET("/c/:id", commentController.GetComment)
commentGroupWithoutAuth.GET("/list", commentController.GetCommentList)
}