MCPcopy Index your code
hub / github.com/TruthHun/BookStack / DeleteComment

Method DeleteComment

controllers/ManagerController.go:677–683  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

675}
676
677func (this *ManagerController) DeleteComment() {
678 id, _ := this.GetInt("id")
679 if id > 0 {
680 models.NewComments().DeleteComment(id)
681 }
682 this.JsonResult(0, "删除成功")
683}
684
685func (this *ManagerController) SetCommentStatus() {
686 id, _ := this.GetInt("id")

Callers

nothing calls this directly

Calls 2

NewCommentsFunction · 0.92
JsonResultMethod · 0.80

Tested by

no test coverage detected