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

Method FirstChapter

models/document_tree.go:26–29  ·  view source on GitHub ↗
(bookId int, cols ...string)

Source from the content-addressed store, hash-verified

24}
25
26func (m *Document) FirstChapter(bookId int, cols ...string) (doc Document, err error) {
27 err = orm.NewOrm().QueryTable(m).Filter("book_id", bookId).OrderBy("parent_id", "order_sort", "identify").One(&doc, cols...)
28 return
29}
30
31// 获取书籍的文档树状结构
32func (m *Document) FindDocumentTree(bookId int, selectedId int, isEdit ...bool) ([]*DocumentTree, error) {

Callers 1

ReadBookMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected