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)
Click to show internal directories.
Click to hide internal directories.