Documentation
¶
Index ¶
- func DeleteBook(db *gorm.DB, id int) error
- func GetBookByID(db *gorm.DB, id int) (*model.Book, error)
- func GetBooks(db *gorm.DB) ([]model.Book, error)
- func GetGenres(db *gorm.DB) ([]string, error)
- func PostBook(db *gorm.DB, book model.Book) error
- func UpdateBook(db *gorm.DB, id int, updatedBook model.Book) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.