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

Method DeleteSubmitBook

controllers/ManagerController.go:1159–1163  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1157}
1158
1159func (this *ManagerController) DeleteSubmitBook() {
1160 id, _ := this.GetInt("id")
1161 orm.NewOrm().QueryTable(models.NewSubmitBooks()).Filter("id", id).Delete()
1162 this.JsonResult(0, "删除成功")
1163}
1164
1165func (this *ManagerController) UpdateSubmitBook() {
1166 field := this.GetString("field")

Callers

nothing calls this directly

Calls 3

NewSubmitBooksFunction · 0.92
JsonResultMethod · 0.80
DeleteMethod · 0.45

Tested by

no test coverage detected