Documentation ¶
Index ¶
- type 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)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BookController ¶
func NewBookController ¶
func NewBookController(database *gorm.DB) BookController
func (BookController) CreateBook ¶
func (controller BookController) CreateBook(data validator.BookValidator) (insertedUUID string, err error)
func (BookController) DeleteBook ¶
func (controller BookController) DeleteBook(bookUUID string) (deletedUUID string, err error)
func (BookController) GetAllBooks ¶
func (controller BookController) GetAllBooks(pg *utils.Pagination) ([]model.Books, int64, error)
func (BookController) GetOneBooks ¶
func (controller BookController) GetOneBooks(bookUUID string) (model.Books, error)
func (BookController) UpdateBook ¶
func (controller BookController) UpdateBook(data validator.BookValidator, bookUUID string) (updatedUUID string, err error)
Click to show internal directories.
Click to hide internal directories.