Skip to content
Permalink
Browse files

fix #27, add discuss component

  • Loading branch information...
sunface committed Sep 11, 2019
1 parent ce09735 commit 90d1f4bb2e780a712ac0a8478be1ed97aec38fd1
@@ -20,6 +20,12 @@ func apiHandler(e *echo.Echo) {
e.POST("/web/article/saveChanges", post.SaveArticleChanges, session.CheckSignIn)

// comment apis
e.POST("/web/post/comment", post.Comment, session.CheckSignIn)
e.GET("/web/post/queryComments", post.QueryComments)
e.POST("/web/comment/create", post.Comment, session.CheckSignIn)
e.POST("/web/comment/reply", post.CommentReply, session.CheckSignIn)
e.POST("/web/comment/edit", post.EditComment, session.CheckSignIn)
e.POST("/web/comment/delete", post.DeleteComment, session.CheckSignIn)
e.POST("/web/comment/revert", post.RevertComment, session.CheckSignIn)
e.GET("/web/comment/query", post.QueryComments)
e.POST("/web/comment/like", post.CommentLike, session.CheckSignIn)
e.POST("/web/comment/dislike", post.CommentDislike, session.CheckSignIn)
}
@@ -23,3 +23,9 @@ const (
PostNotFound = 1101
PostNotFoundMsg = "Target post not found"
)

// comment
const (
CommentLiked = 1200
CommentLikedMsg = "You have agreed this comment before"
)

0 comments on commit 90d1f4b

Please sign in to comment.
You can’t perform that action at this time.