mirror of
https://github.com/mindoc-org/mindoc.git
synced 2026-02-27 17:03:57 +08:00
完善评论功能
This commit is contained in:
@@ -7,3 +7,13 @@ type CommentController struct {
|
||||
func (c *CommentController) Lists() {
|
||||
|
||||
}
|
||||
|
||||
func (c *CommentController) Create() {
|
||||
|
||||
c.JsonResult(0,"ok")
|
||||
}
|
||||
|
||||
func (c *CommentController) Index() {
|
||||
c.Prepare()
|
||||
c.TplName = "comment/index.tpl"
|
||||
}
|
||||
@@ -366,7 +366,7 @@ func (c *ManagerController) DeleteComment() {
|
||||
|
||||
comment := models.NewComment()
|
||||
|
||||
if err := comment.Find(comment_id); err != nil {
|
||||
if _,err := comment.Find(comment_id); err != nil {
|
||||
c.JsonResult(6002,"评论不存在")
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user