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

Method GetEBook

models/ebook.go:78–87  ·  view source on GitHub ↗
(id int)

Source from the content-addressed store, hash-verified

76}
77
78func (m *Ebook) GetEBook(id int) (book Ebook) {
79 if id <= 0 {
80 return
81 }
82 err := orm.NewOrm().QueryTable(m).Filter("id", id).One(&book)
83 if err != nil {
84 beego.Error(err)
85 }
86 return
87}
88
89// 添加书籍到电子书生成队列
90func (m *Ebook) AddToGenerate(bookID int) (err error) {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected