parent
fcf9b1eb8d
commit
8e82ee3702
5 changed files with 26 additions and 15 deletions
|
@ -75,9 +75,9 @@ func (db *DB) GetBooksIter() Iter {
|
|||
return getBooksIter(booksColl)
|
||||
}
|
||||
|
||||
func (db *DB) GetNewBooks(length int, start int) (books []Book, num int, err error) {
|
||||
func (db *DB) GetNewBooks(query string, length int, start int) (books []Book, num int, err error) {
|
||||
booksColl := db.session.DB(db.name).C(books_coll)
|
||||
return getNewBooks(booksColl, length, start)
|
||||
return getNewBooks(booksColl, query, length, start)
|
||||
}
|
||||
|
||||
func (db *DB) GetBookId(id string) (Book, error) {
|
||||
|
|
Reference in a new issue