Documentation ¶
Index ¶
- type BookService
- type BookServiceImpl
- func (s *BookServiceImpl) Create(InsertBookDto *dto.InsertBookDto) dto.BookDto
- func (s *BookServiceImpl) Delete(id uuid.UUID)
- func (s *BookServiceImpl) FindAll() []dto.BookDto
- func (s *BookServiceImpl) FindById(id uuid.UUID) dto.BookDto
- func (s *BookServiceImpl) Update(id uuid.UUID, insertBookDto *dto.InsertBookDto) dto.BookDto
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BookService ¶
type BookService interface { Create(InsertBookDto *dto.InsertBookDto) dto.BookDto Update(id uuid.UUID, insertBookDto *dto.InsertBookDto) dto.BookDto Delete(Id uuid.UUID) FindById(Id uuid.UUID) dto.BookDto FindAll() []dto.BookDto }
func NewBookService ¶
func NewBookService(BookRepository repository.BookRepository) BookService
type BookServiceImpl ¶
type BookServiceImpl struct {
BookRepository repository.BookRepository
}
func (*BookServiceImpl) Create ¶
func (s *BookServiceImpl) Create(InsertBookDto *dto.InsertBookDto) dto.BookDto
Create implements BookService.
func (*BookServiceImpl) Delete ¶
func (s *BookServiceImpl) Delete(id uuid.UUID)
Delete implements BookService.
func (*BookServiceImpl) FindAll ¶
func (s *BookServiceImpl) FindAll() []dto.BookDto
FindAll implements BookService.
func (*BookServiceImpl) FindById ¶
func (s *BookServiceImpl) FindById(id uuid.UUID) dto.BookDto
FindById implements BookService.
func (*BookServiceImpl) Update ¶
func (s *BookServiceImpl) Update(id uuid.UUID, insertBookDto *dto.InsertBookDto) dto.BookDto
Update implements BookService.
Click to show internal directories.
Click to hide internal directories.