(identify string, cols ...string)
| 222 | } |
| 223 | |
| 224 | func (m *Book) FindByIdentify(identify string, cols ...string) (book *Book, err error) { |
| 225 | o := orm.NewOrm() |
| 226 | book = &Book{} |
| 227 | err = o.QueryTable(m.TableNameWithPrefix()).Filter("identify", identify).One(book, cols...) |
| 228 | return |
| 229 | } |
| 230 | |
| 231 | //分页查询指定用户的书籍 |
| 232 | //按照最新的进行排序 |
no test coverage detected