book

package
v0.0.0-...-d152970 Latest Latest
Warning

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

Go to latest
Published: May 16, 2023 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateBook

func CreateBook(ctx context.Context, c *app.RequestContext)

CreateBook .

@router	/books/:id [POST]

func DeleteBook

func DeleteBook(ctx context.Context, c *app.RequestContext)

DeleteBook .

@Summary	delete book
@Description
@Tags		book
@Accept		mpfd
@Produce	json
@Param		id	path		string	true	"id"
@Success	200	{object}	book.Book
@Security	JWT
@Router		/books/{id} [DELETE]

func GetBook

func GetBook(ctx context.Context, c *app.RequestContext)

GetBook .

@router	/books/:id [GET]

func ListBooks

func ListBooks(ctx context.Context, c *app.RequestContext)

ListBooks .

@router	/books [GET]

func RenameBook

func RenameBook(ctx context.Context, c *app.RequestContext)

RenameBook .

@router	/books/:id [PATCH]

func UpdateBook

func UpdateBook(ctx context.Context, c *app.RequestContext)

UpdateBook .

@router	/books/:id [PUT]

Types

This section is empty.

Jump to

Keyboard shortcuts

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