Documentation ¶
Index ¶
- type BookRepository
- type BookServiceImpl
- func (b *BookServiceImpl) Delete(bookId string) error
- func (b *BookServiceImpl) FindAll() ([]model.Book, error)
- func (b *BookServiceImpl) FindById(bookId string) (model.Book, error)
- func (b *BookServiceImpl) Save(book model.Book) (model.Book, error)
- func (b *BookServiceImpl) Search(s string) ([]model.Book, error)
- func (b *BookServiceImpl) Update(book model.Book) (model.Book, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BookRepository ¶
type BookRepository interface { Save(book model.Book) (model.Book, error) Update(book model.Book) (model.Book, error) Delete(bookId string) error Search(s string) ([]model.Book, error) FindById(bookId string) (model.Book, error) FindAll() ([]model.Book, error) }
func NewBookRepositoryImpl ¶
func NewBookRepositoryImpl(Db *gorm.DB) BookRepository
type BookServiceImpl ¶
func (*BookServiceImpl) Delete ¶
func (b *BookServiceImpl) Delete(bookId string) error
Delete implements BookRepository.
func (*BookServiceImpl) FindAll ¶
func (b *BookServiceImpl) FindAll() ([]model.Book, error)
FindAll implements BookRepository.
func (*BookServiceImpl) FindById ¶
func (b *BookServiceImpl) FindById(bookId string) (model.Book, error)
FindById implements BookRepository.
Click to show internal directories.
Click to hide internal directories.