package
Version:
v0.0.0-...-c26362d
Opens a new window with list of versions in this module.
Published: Jan 26, 2023
License: MIT
Opens a new window with license information.
Imports: 5
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
func CreateBook(c *fiber.Ctx) error
func CreateLibrary(c *fiber.Ctx) error
func GetLibraries(c *fiber.Ctx) error
type BookDTO struct {
Title string `json:"title" bson:"title"`
Author string `json:"author" bson:"author"`
ISBN string `json:"isbn" bson:"isbn"`
LibraryId string `json:"library_id" bson:"library_id"`
}
type LibraryDTO struct {
Name string `json:"name" bson:"name"`
Address string `json:"address" bson:"address"`
Empty []string `json:"no_exits" bson:"books"`
}
Source Files
¶
Click to show internal directories.
Click to hide internal directories.