| 19 | State *DocumentSelected `json:"state,omitempty"` |
| 20 | } |
| 21 | type DocumentSelected struct { |
| 22 | Selected bool `json:"selected"` |
| 23 | Opened bool `json:"opened"` |
| 24 | } |
| 25 | |
| 26 | func (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...) |
nothing calls this directly
no outgoing calls
no test coverage detected