(id int)
| 50 | return &DocumentHistory{} |
| 51 | } |
| 52 | func (m *DocumentHistory) Find(id int) (*DocumentHistory, error) { |
| 53 | o := orm.NewOrm() |
| 54 | err := o.QueryTable(m.TableNameWithPrefix()).Filter("history_id", id).One(m) |
| 55 | return m, err |
| 56 | } |
| 57 | |
| 58 | //清空指定文档的历史. |
| 59 | func (m *DocumentHistory) Clear(docId int) error { |
no test coverage detected