Search existing books
This commit is contained in:
@@ -33,3 +33,10 @@ func (u userSignup) toUser() (model.User, error) {
|
||||
user.Password = string(hashedPassword)
|
||||
return user, nil
|
||||
}
|
||||
|
||||
func fromBookDb(b *model.Book) bookSearchGet {
|
||||
return bookSearchGet{
|
||||
Title: b.Title,
|
||||
Author: b.Author,
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user