Files
app/server/src/main/kotlin/books/db/BooksRepository.kt
T
2026-10-21 23:47:44 +02:00

21 lines
658 B
Kotlin

package net.keinekekse.app.books.db
import net.keinekekse.app.books.model.*
interface BookRepository {
suspend fun allBooks(): List<Book>
suspend fun bookById(id: Int): Book?
suspend fun booksBySeries(series: Series): List<Book>
suspend fun bookByTitle(title: String): List<Book>
suspend fun booksByArtist(artist: Artist): List<Book>
suspend fun addBook(book: Book)
suspend fun removeBook(id: Int): Boolean
suspend fun allPublishers(): List<Publisher>
suspend fun allArtists(): List<Artist>
suspend fun allSeries(): List<Series>
suspend fun allTags(): List<Tag>
suspend fun allSamplers(): List<Book>
}