删除单条阅读历史
()
| 71 | |
| 72 | //删除单条阅读历史 |
| 73 | func (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 | } |
nothing calls this directly
no test coverage detected