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

Method SetCommentStatus

controllers/ManagerController.go:685–695  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

683}
684
685func (this *ManagerController) SetCommentStatus() {
686 id, _ := this.GetInt("id")
687 status, _ := this.GetInt("value")
688 field := this.GetString("field")
689 if id > 0 && field == "status" {
690 if err := models.NewComments().SetCommentStatus(id, status); err != nil {
691 this.JsonResult(1, err.Error())
692 }
693 }
694 this.JsonResult(0, "设置成功")
695}
696
697// 设置书籍私有状态.
698func (this *ManagerController) PrivatelyOwned() {

Callers

nothing calls this directly

Calls 2

NewCommentsFunction · 0.92
JsonResultMethod · 0.80

Tested by

no test coverage detected