service

package
v0.0.0-...-9279c85 Latest Latest
Warning

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

Go to latest
Published: Oct 9, 2024 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewBookService

func NewBookService(repo out.BookRepository) in.BookService

func NewBorrowService

func NewBorrowService(r out.BorrowRepository) in.BorrowService

func NewPatronService

func NewPatronService(repo out.PatronRepository) in.PatronService

Types

type BorrowService

type BorrowService struct {
	// contains filtered or unexported fields
}

func (*BorrowService) CheckBorrow

func (b *BorrowService) CheckBorrow(bookId int) (int, error)

func (*BorrowService) CreateBorrow

func (b *BorrowService) CreateBorrow(borrow domain.BorrowRequest) error

func (*BorrowService) GetAllBorrows

func (b *BorrowService) GetAllBorrows() ([]domain.Borrow, error)

func (*BorrowService) HandleReturn

func (b *BorrowService) HandleReturn(id int) error

type PatronService

type PatronService struct {
	// contains filtered or unexported fields
}

func (*PatronService) CreatePatron

func (p *PatronService) CreatePatron(patron *domain.PatronRequest) error

func (*PatronService) GetAllPatrons

func (p *PatronService) GetAllPatrons() ([]domain.Patron, error)

Jump to

Keyboard shortcuts

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