Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RegisterRoutes ¶
func RegisterRoutes(app *fiber.App, bookService service.BookService)
Types ¶
type BookHandler ¶
type BookHandler struct {
Service service.BookService
}
func (*BookHandler) AddBook ¶
func (h *BookHandler) AddBook(ctx *fiber.Ctx) error
AddBook @Summary Add book @Description Add book @Tags BOOK @Success 200 @Router /book/ [post]
type BookRequest ¶
func (BookRequest) ToCommand ¶
func (req BookRequest) ToCommand() command.CreateBookCommand
Click to show internal directories.
Click to hide internal directories.