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

Method GetParentTitle

models/document.go:585–589  ·  view source on GitHub ↗
(pid int)

Source from the content-addressed store, hash-verified

583}
584
585func (m *Document) GetParentTitle(pid int) (title string) {
586 var d Document
587 orm.NewOrm().QueryTable(m).Filter("document_id", pid).One(&d, "document_id", "parent_id", "document_name")
588 return d.DocumentName
589}
590
591//自动生成下一级的内容
592func (m *Document) BookStackAuto(bookId, docId int, isSummary ...bool) (md, cont string) {

Callers 1

ReadMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected