MCPcopy Create free account
hub / github.com/TruthHun/BookStack / Delete

Method Delete

controllers/RecordController.go:73–81  ·  view source on GitHub ↗

删除单条阅读历史

()

Source from the content-addressed store, hash-verified

71
72//删除单条阅读历史
73func (this *RecordController) Delete() {
74 docId, _ := this.GetInt(":doc_id")
75 if docId > 0 {
76 if err := new(models.ReadRecord).Delete(this.Member.MemberId, docId); err != nil {
77 beego.Error(err)
78 }
79 }
80 this.JsonResult(0, "删除成功")
81}

Callers

nothing calls this directly

Calls 1

JsonResultMethod · 0.80

Tested by

no test coverage detected