删除历史.
(historyId, docId int)
| 67 | |
| 68 | //删除历史. |
| 69 | func (m *DocumentHistory) Delete(historyId, docId int) error { |
| 70 | o := orm.NewOrm() |
| 71 | _, err := o.QueryTable(m.TableNameWithPrefix()).Filter("history_id", historyId).Filter("document_id", docId).Delete() |
| 72 | return err |
| 73 | } |
| 74 | |
| 75 | func (m *DocumentHistory) InsertOrUpdate() (history *DocumentHistory, err error) { |
| 76 | o := orm.NewOrm() |
no test coverage detected