Documentation ¶
Index ¶
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) Delete(book *model.Book) FindById(id uuid.UUID) *model.Book FindAll() *[]model.Book }
func NewBookRepository ¶
func NewBookRepository(Db *gorm.DB) BookRepository
type BookRepositoryImpl ¶
func (*BookRepositoryImpl) Delete ¶
func (b *BookRepositoryImpl) Delete(book *model.Book)
func (*BookRepositoryImpl) FindAll ¶
func (b *BookRepositoryImpl) FindAll() *[]model.Book
FindAll implements BookRepository.
func (*BookRepositoryImpl) FindById ¶
func (b *BookRepositoryImpl) FindById(bookId uuid.UUID) *model.Book
FindById implements BookRepository.
func (*BookRepositoryImpl) Save ¶
func (b *BookRepositoryImpl) Save(book *model.Book)
Save implements BookRepository.
Click to show internal directories.
Click to hide internal directories.