out

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: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BookRepository

type BookRepository interface {
	GetAllBooks() ([]domain.Book, error)
	GetBookByID(id int) (*domain.Book, error)
	CreateBook(book *domain.Book) error
	UpdateBook(id int, book *domain.Book) error
	DeleteBook(id int) error
}

type BorrowRepository

type BorrowRepository interface {
	GetAllBorrows() ([]domain.Borrow, error)
	CreateBorrow(domain.BorrowRequest) error
}

type PatronRepository

type PatronRepository interface {
	GetAllPatrons() ([]domain.Patron, error)
	CreatePatron(book *domain.PatronRequest) error
}

Jump to

Keyboard shortcuts

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