From 13eb25056e01183764601bd56f39a87691123abd Mon Sep 17 00:00:00 2001 From: dengbiao Date: Wed, 4 Dec 2024 11:13:52 +0800 Subject: [PATCH] update --- app/hdl/friend_circle/hdl_comment.go | 4 +--- app/router/router.go | 6 +++--- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/app/hdl/friend_circle/hdl_comment.go b/app/hdl/friend_circle/hdl_comment.go index 9935015..d681bdb 100644 --- a/app/hdl/friend_circle/hdl_comment.go +++ b/app/hdl/friend_circle/hdl_comment.go @@ -157,9 +157,7 @@ func Comment(c *gin.Context) { func CommentDelete(c *gin.Context) { e.OutSuc(c, "success", nil) } -func CommentShare(c *gin.Context) { - e.OutSuc(c, "success", nil) -} + func CommentLike(c *gin.Context) { e.OutSuc(c, "success", nil) } diff --git a/app/router/router.go b/app/router/router.go index 9a935b7..347101a 100644 --- a/app/router/router.go +++ b/app/router/router.go @@ -193,12 +193,12 @@ func rCircleFriends(r *gin.RouterGroup) { r.POST("/cancelLike", friend_circle.CancelLike) // 取消点赞 r.POST("/share", friend_circle.Share) // 分享 - r.POST("/comment", friend_circle.Comment) // 评论 - r.GET("/isCanComment", friend_circle.IsCanComment) // 是否可以评论 + r.POST("/comment", friend_circle.Comment) // 评论 + r.GET("/isCanComment", friend_circle.IsCanComment) // 是否可以评论 + r.DELETE("/commentDelete", friend_circle.CommentDelete) // 删除评论 r.POST("/commentLike", friend_circle.CommentLike) // 点赞评论 r.POST("/commentCancelLike", friend_circle.CommentCancelLike) // 取消点赞评论 - r.POST("/commentShare", friend_circle.CommentShare) // 分享评论 } func rComm(r *gin.RouterGroup) {