Documentation
¶
Index ¶
- func DeleteAuthor(id int) error
- func DeleteBook(id int) error
- func DeleteBookTransaction(id int) error
- func DeleteCategory(id int) error
- func DeletePublisher(id int) error
- func DeleteUser(id int) error
- func FetchAuthor() ([]model.Author, error)
- func FetchBook() ([]model.Book, error)
- func FetchCategory() ([]model.Category, error)
- func FetchPublisher() ([]model.Publisher, error)
- func FetchTransaction() ([]model.Transaction, error)
- func FetchUser() ([]model.User, error)
- func GetByEmailUser(email string) (model.User, error)
- func GetByIDAuthor(id int) (model.Author, error)
- func GetByIDBook(id int) (model.Book, error)
- func GetByIDCategory(id int) (model.Category, error)
- func GetByIDPublisher(id int) (model.Publisher, error)
- func GetByIDTransaction(id int) (model.Transaction, error)
- func GetByIDUser(id int) (model.User, error)
- func GetByNameAuthor(name string) (model.Author, error)
- func GetByNameCategory(name string) (model.Category, error)
- func GetByNamePublisher(name string) (model.Publisher, error)
- func GetByTitleBook(title string) (model.Book, error)
- func GetByTransactionIDBookTransaction(transactionID int) ([]model.BookTransaction, error)
- func LoginUser(user *model.User) (*model.User, error)
- func SortByColumnBook(column string, order int) ([]model.Book, error)
- func StoreAuthor(author model.Author) (model.Author, error)
- func StoreBook(book model.Book) (model.Book, error)
- func StoreBookAuthor(bookAuthor model.BookAuthor) error
- func StoreBookTransaction(bookTransaction model.BookTransaction) error
- func StoreCategory(category model.Category) (model.Category, error)
- func StorePublisher(publisher model.Publisher) (model.Publisher, error)
- func StoreTransaction(transaction model.Transaction) (int, error)
- func StoreUser(user model.User) error
- func UpdateAuthor(author model.Author, id int) error
- func UpdateBook(book model.Book, id int) error
- func UpdateBookTransaction(bookTransaction model.BookTransaction, id int) error
- func UpdateCategory(category model.Category, id int) error
- func UpdatePublisher(publisher model.Publisher, id int) error
- func UpdateTransaction(transaction model.Transaction, id int) error
- func UpdateUser(user model.User, id int) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DeleteAuthor ¶
func DeleteBook ¶
func DeleteBookTransaction ¶
func DeleteCategory ¶
func DeletePublisher ¶
func DeleteUser ¶
func FetchAuthor ¶
func FetchCategory ¶
func FetchPublisher ¶
func FetchTransaction ¶
func FetchTransaction() ([]model.Transaction, error)
func GetByIDTransaction ¶
func GetByIDTransaction(id int) (model.Transaction, error)
func GetByTransactionIDBookTransaction ¶
func GetByTransactionIDBookTransaction(transactionID int) ([]model.BookTransaction, error)
func StoreBookAuthor ¶
func StoreBookAuthor(bookAuthor model.BookAuthor) error
func StoreBookTransaction ¶
func StoreBookTransaction(bookTransaction model.BookTransaction) error
func StoreTransaction ¶
func StoreTransaction(transaction model.Transaction) (int, error)
func UpdateBookTransaction ¶
func UpdateBookTransaction(bookTransaction model.BookTransaction, id int) error
func UpdateTransaction ¶
func UpdateTransaction(transaction model.Transaction, id int) error
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.