controller

package
v0.0.0-...-731f7f8 Latest Latest
Warning

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

Go to latest
Published: Oct 8, 2021 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ConsumeAPI

func ConsumeAPI(links []string)

func ConsumeRequestBookController

func ConsumeRequestBookController(bookRequest BookRequest) error

func DeleteAuthorController

func DeleteAuthorController(ctx echo.Context) error

func DeleteBookController

func DeleteBookController(ctx echo.Context) error

func DeleteCategoryController

func DeleteCategoryController(ctx echo.Context) error

func DeletePublisherController

func DeletePublisherController(ctx echo.Context) error

func DeleteUserController

func DeleteUserController(ctx echo.Context) error

func FetchAuthorController

func FetchAuthorController(ctx echo.Context) error

func FetchBookController

func FetchBookController(ctx echo.Context) error

func FetchCategoryController

func FetchCategoryController(ctx echo.Context) error

func FetchPublisherController

func FetchPublisherController(ctx echo.Context) error

func FetchTransactionController

func FetchTransactionController(ctx echo.Context) error

func FetchUserController

func FetchUserController(ctx echo.Context) error

func GetByIDAuthorController

func GetByIDAuthorController(ctx echo.Context) error

func GetByIDBookController

func GetByIDBookController(ctx echo.Context) error

func GetByIDCategoryController

func GetByIDCategoryController(ctx echo.Context) error

func GetByIDPublisherController

func GetByIDPublisherController(ctx echo.Context) error

func GetByIDTransactionController

func GetByIDTransactionController(ctx echo.Context) error

func GetByIDUserController

func GetByIDUserController(ctx echo.Context) error

func LoginUserController

func LoginUserController(ctx echo.Context) error

func SortByColumnBookController

func SortByColumnBookController(ctx echo.Context) error

func StoreAuthorController

func StoreAuthorController(ctx echo.Context) error

func StoreBookController

func StoreBookController(ctx echo.Context) error

func StoreCategoryController

func StoreCategoryController(ctx echo.Context) error

func StorePublisherController

func StorePublisherController(ctx echo.Context) error

func StoreTransactionController

func StoreTransactionController(ctx echo.Context) error

func StoreUserController

func StoreUserController(ctx echo.Context) error

func UpdateAuthorController

func UpdateAuthorController(ctx echo.Context) error

func UpdateBookController

func UpdateBookController(ctx echo.Context) error

func UpdateCategoryController

func UpdateCategoryController(ctx echo.Context) error

func UpdatePublisherController

func UpdatePublisherController(ctx echo.Context) error

func UpdateTransactionController

func UpdateTransactionController(ctx echo.Context) error

func UpdateTransactionDetailController

func UpdateTransactionDetailController(ctx echo.Context) error

func UpdateUserController

func UpdateUserController(ctx echo.Context) error

Types

type BookConsumeResponse

type BookConsumeResponse struct {
	Publishers      []string            `json:"publishers" form:"publishers"`
	Category        []string            `json:"subjects" form:"subjects"`
	ISBN            []string            `json:"isbn_10" form:"isbn_10"`
	Authors         []map[string]string `json:"authors" form:"authors"`
	Title           string              `json:"title" form:"title"`
	Price           int                 `json:"price" form:"price"`
	PublicationDate string              `json:"publish_date" form:"publish_date"`
	PageCount       int                 `json:"number_of_pages" form:"number_of_pages"`
	Description     string              `json:"description" form:"description"`
}

type BookRequest

type BookRequest struct {
	Publisher       string   `json:"publisher" form:"publisher"`
	Category        string   `json:"category" form:"category"`
	ISBN            string   `json:"isbn" form:"isbn"`
	Title           string   `json:"title" form:"title"`
	Price           int      `json:"price" form:"price"`
	PublicationYear int      `json:"publication_year" form:"publication_year"`
	PageCount       int      `json:"page_count" form:"page_count"`
	Description     string   `json:"description" form:"description"`
	Authors         []string `json:"authors" form:"authors"`
}

type BookTransactionRequest

type BookTransactionRequest struct {
	BookID       uint `json:"book_id" form:"book_id"`
	BookQuantity int  `json:"book_quantity" form:"book_quantity"`
}

Jump to

Keyboard shortcuts

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