()
| 157 | } |
| 158 | |
| 159 | func (m *Version) All() (versions []Version) { |
| 160 | orm.NewOrm().QueryTable(m).Limit(100000).OrderBy("title").All(&versions, "id", "title") |
| 161 | return |
| 162 | } |
| 163 | |
| 164 | func (m *Version) GetVersionItem(bookIdentify string) (versionItem VersionItem) { |
| 165 | orm.NewOrm().QueryTable(NewVersionItem()).Filter("book_identify", bookIdentify).One(&versionItem) |
no outgoing calls
no test coverage detected