Documentation ¶
Index ¶
- func AuthenticateByUsernameAndPassword(username string, password string) (bool, *model.Account)
- func DeleteBook(dto *dto.ChgBookDto) (*model.Book, map[string]string)
- func EditBook(dto *dto.ChgBookDto) (*model.Book, map[string]string)
- func FindAllBooks() *[]model.Book
- func FindAllBooksByPage(page int, size int) *model.Page
- func FindAllCategories() *[]model.Category
- func FindAllFormats() *[]model.Format
- func FindBooksByTitle(title string, page int, size int) *model.Page
- func RegisterBook(dto *dto.RegBookDto) (*model.Book, map[string]string)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AuthenticateByUsernameAndPassword ¶ added in v1.3.0
AuthenticateByUsernameAndPassword authenticates by using username and plain text password.
func DeleteBook ¶
DeleteBook deletes the given book data.
func FindAllBooksByPage ¶
FindAllBooksByPage returns the page object of all books.
func FindAllCategories ¶
FindAllCategories returns the list of all categories.
func FindAllFormats ¶
FindAllFormats returns the list of all formats.
func FindBooksByTitle ¶
FindBooksByTitle returns the page object of books matched given book title.
func RegisterBook ¶
RegisterBook register the given book data.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.