(bookIdentify string)
| 162 | } |
| 163 | |
| 164 | func (m *Version) GetVersionItem(bookIdentify string) (versionItem VersionItem) { |
| 165 | orm.NewOrm().QueryTable(NewVersionItem()).Filter("book_identify", bookIdentify).One(&versionItem) |
| 166 | return |
| 167 | } |
| 168 | |
| 169 | func (m *Version) Lists(page, size int, wd string) (versions []Version, total int64) { |
| 170 | o := orm.NewOrm() |
no test coverage detected