diff --git a/core/src/main/kotlin/me/madhead/tyzenhaus/core/service/TransactionsSearchService.kt b/core/src/main/kotlin/me/madhead/tyzenhaus/core/service/TransactionsSearchService.kt new file mode 100644 index 00000000..7d0933f2 --- /dev/null +++ b/core/src/main/kotlin/me/madhead/tyzenhaus/core/service/TransactionsSearchService.kt @@ -0,0 +1,16 @@ +package me.madhead.tyzenhaus.core.service + +import me.madhead.tyzenhaus.entity.transaction.Transaction +import me.madhead.tyzenhaus.repository.TransactionRepository + +data class TransactionsSearchParams( + val title: String? = null, +) + +class TransactionsSearchService( + private val transactionRepository: TransactionRepository, +) { + fun search(group: Long, searchParams: TransactionsSearchParams): List { + return transactionRepository.search(group) + } +}