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

Method ClearComments

controllers/ManagerController.go:669–675  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

667}
668
669func (this *ManagerController) ClearComments() {
670 uid, _ := this.GetInt("uid")
671 if uid > 0 {
672 models.NewComments().ClearComments(uid)
673 }
674 this.JsonResult(0, "清除成功")
675}
676
677func (this *ManagerController) DeleteComment() {
678 id, _ := this.GetInt("id")

Callers

nothing calls this directly

Calls 2

NewCommentsFunction · 0.92
JsonResultMethod · 0.80

Tested by

no test coverage detected