service

package
v0.0.0-...-de32e78 Latest Latest
Warning

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

Go to latest
Published: Oct 7, 2024 License: MIT Imports: 2 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 {
	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) FindById

func (b BookServiceImpl) FindById(id int) model.Book

func (BookServiceImpl) Save

func (b BookServiceImpl) Save(book model.Book)

func (BookServiceImpl) Update

func (b BookServiceImpl) Update(book model.Book)

Jump to

Keyboard shortcuts

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