Skip to content

Commit

Permalink
Transactions search service
Browse files Browse the repository at this point in the history
  • Loading branch information
madhead committed Oct 26, 2023
1 parent 83e3a94 commit 5ea1f2d
Showing 1 changed file with 16 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -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<Transaction> {
return transactionRepository.search(group)
}
}

0 comments on commit 5ea1f2d

Please sign in to comment.