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

Method DeleteById

models/document_store.go:81–85  ·  view source on GitHub ↗

查询markdown内容或者content内容

(docId ...interface{})

Source from the content-addressed store, hash-verified

79
80//查询markdown内容或者content内容
81func (this *DocumentStore) DeleteById(docId ...interface{}) {
82 if len(docId) > 0 {
83 orm.NewOrm().QueryTable(TableDocumentStore).Filter("document_id__in", docId...).Delete()
84 }
85}
86
87//查询markdown内容或者content内容
88func (this *DocumentStore) GetById(docId interface{}) (ds DocumentStore, err error) {

Callers 1

RecursiveDocumentMethod · 0.80

Calls 1

DeleteMethod · 0.45

Tested by

no test coverage detected