Versions in this module Expand all Collapse all v1 v1.0.0 Aug 11, 2021 Changes in this version + type BookController struct + DB *gorm.DB + func NewBookController(database *gorm.DB) BookController + func (controller BookController) CreateBook(data validator.BookValidator) (insertedUUID string, err error) + func (controller BookController) DeleteBook(bookUUID string) (deletedUUID string, err error) + func (controller BookController) GetAllBooks(pg *utils.Pagination) ([]model.Books, int64, error) + func (controller BookController) GetOneBooks(bookUUID string) (model.Books, error) + func (controller BookController) UpdateBook(data validator.BookValidator, bookUUID string) (updatedUUID string, err error)