Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AuthenticateByUsernameAndPassword

func AuthenticateByUsernameAndPassword(username string, password string) (bool, *model.Account)

    AuthenticateByUsernameAndPassword authenticates by using username and plain text password.

    func DeleteBook

    func DeleteBook(dto *dto.ChgBookDto) (*model.Book, map[string]string)

      DeleteBook deletes the given book data.

      func EditBook

      func EditBook(dto *dto.ChgBookDto) (*model.Book, map[string]string)

        EditBook updates the given book data.

        func FindAllBooks

        func FindAllBooks() *[]model.Book

          FindAllBooks returns the list of all books.

          func FindAllBooksByPage

          func FindAllBooksByPage(page int, size int) *model.Page

            FindAllBooksByPage returns the page object of all books.

            func FindAllCategories

            func FindAllCategories() *[]model.Category

              FindAllCategories returns the list of all categories.

              func FindAllFormats

              func FindAllFormats() *[]model.Format

                FindAllFormats returns the list of all formats.

                func FindBooksByTitle

                func FindBooksByTitle(title string, page int, size int) *model.Page

                  FindBooksByTitle returns the page object of books matched given book title.

                  func RegisterBook

                  func RegisterBook(dto *dto.RegBookDto) (*model.Book, map[string]string)

                    RegisterBook register the given book data.

                    Types

                    This section is empty.