refactors data access layer to use pop ORM for eager loading, adds book titles rented to renters in response body

This commit is contained in:
David Lick
2020-05-31 00:40:32 -04:00
parent a06b4d70ab
commit 28e52a4e08
29 changed files with 732 additions and 287 deletions
+8
View File
@@ -0,0 +1,8 @@
package rental
import "errors"
var (
ErrInvalidBook = errors.New("book not supported in library")
ErrUnavailableBook = errors.New("book is not available at this library")
)