service

package
v0.0.0-...-d4d3a42 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 5, 2024 License: MIT Imports: 6 Imported by: 0

Documentation

Index

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL