Documentation
¶
Index ¶
- type Book
- func (b *Book) AddBook(req *request.AddBook, by string) *response.Book
- func (b *Book) DeleteBook(id uint) (*response.Book, error)
- func (b *Book) GetBookByID(id uint) (*response.Book, error)
- func (b *Book) GetBooks() *response.Books
- func (b *Book) UpdateBook(id uint, req *request.UpdateBook, by string) (*response.Book, error)
- type IBook
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Book ¶
type Book struct {
// contains filtered or unexported fields
}
func NewBookService ¶
func (*Book) UpdateBook ¶
Click to show internal directories.
Click to hide internal directories.