repository

package
v0.0.0-...-ffe5cf8 Latest Latest
Warning

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

Go to latest
Published: Nov 19, 2024 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Create

func Create(ctx *gin.Context, book *model.Book) error

POST /books Create new book

func Delete

func Delete(ctx *gin.Context, id string) error

DELETE /books/:id Delete a book

func GetAll

func GetAll(ctx *gin.Context) []model.Book

GET /books Find all books

func GetByID

func GetByID(ctx *gin.Context, id string) (*model.Book, error)

GET /books/:id Find a book

func Update

func Update(ctx *gin.Context, book *model.Book) error

PUT /books/:id Update a book

Types

This section is empty.

Jump to

Keyboard shortcuts

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