Une modulo to create snapshot

fix removeSnapshot
This commit is contained in:
2025-03-14 02:06:28 +01:00
parent 20a15f0182
commit 23cc3e3567
3 changed files with 58 additions and 24 deletions

View File

@@ -28,4 +28,9 @@ interface EventStream<E : Event<ID>, ID : AggregateId> {
aggregateId: ID,
version: Int,
): Set<E>
fun readVersionBetween(
aggregateId: ID,
version: IntRange,
): Set<E>
}