MCPcopy Create free account
hub / github.com/TruthHun/BookStack / DocumentSelected

Struct DocumentSelected

models/document_tree.go:21–24  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

19 State *DocumentSelected `json:"state,omitempty"`
20}
21type DocumentSelected struct {
22 Selected bool `json:"selected"`
23 Opened bool `json:"opened"`
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...)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected