Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BookService ¶
type BookService interface { FindAll() []model.Book FindById(id int) model.Book Save(book model.Book) Update(book model.Book) Delete(id int) }
func NewBookServiceImpl ¶
func NewBookServiceImpl(bookRepository repository.BookRepository) BookService
type BookServiceImpl ¶
type BookServiceImpl struct {
BookRepository repository.BookRepository
}
func (BookServiceImpl) Delete ¶
func (b BookServiceImpl) Delete(id int)
func (BookServiceImpl) FindAll ¶
func (b BookServiceImpl) FindAll() []model.Book
func (BookServiceImpl) Save ¶
func (b BookServiceImpl) Save(book model.Book)
func (BookServiceImpl) Update ¶
func (b BookServiceImpl) Update(book model.Book)
Click to show internal directories.
Click to hide internal directories.