Documentation
¶
Index ¶
- func CreateBook(ctx context.Context, c *app.RequestContext)
- func DeleteBook(ctx context.Context, c *app.RequestContext)
- func GetBook(ctx context.Context, c *app.RequestContext)
- func ListBooks(ctx context.Context, c *app.RequestContext)
- func RenameBook(ctx context.Context, c *app.RequestContext)
- func UpdateBook(ctx context.Context, c *app.RequestContext)
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.
Click to show internal directories.
Click to hide internal directories.