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

Method Find

models/document_history.go:52–56  ·  view source on GitHub ↗
(id int)

Source from the content-addressed store, hash-verified

50 return &DocumentHistory{}
51}
52func (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//清空指定文档的历史.
59func (m *DocumentHistory) Clear(docId int) error {

Callers 2

DeleteByHistoryIdMethod · 0.95
RestoreMethod · 0.45

Calls 1

TableNameWithPrefixMethod · 0.95

Tested by

no test coverage detected