handlers

package
v0.0.0-...-c26362d Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 26, 2023 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateBook

func CreateBook(c *fiber.Ctx) error

func CreateLibrary

func CreateLibrary(c *fiber.Ctx) error

func GetLibraries

func GetLibraries(c *fiber.Ctx) error

Types

type BookDTO

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

type LibraryDTO struct {
	Name    string   `json:"name" bson:"name"`
	Address string   `json:"address" bson:"address"`
	Empty   []string `json:"no_exits" bson:"books"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL