diff --git a/backend/domain/src/main/kotlin/co/digamma/ca/domain/api/CrudService.kt b/backend/domain/src/main/kotlin/co/digamma/ca/domain/api/CrudService.kt index ebbe263..4f206d0 100644 --- a/backend/domain/src/main/kotlin/co/digamma/ca/domain/api/CrudService.kt +++ b/backend/domain/src/main/kotlin/co/digamma/ca/domain/api/CrudService.kt @@ -5,7 +5,7 @@ import co.digamma.ca.domain.api.model.Model interface RetrieveService { fun retrieve(id: String): T fun retrieve(pageSpecs: PageSpecs): Page - fun retrieveAll(): List + fun retrieve(): List } interface CreateService { diff --git a/backend/domain/src/main/kotlin/co/digamma/ca/domain/internal/DefaultCurdService.kt b/backend/domain/src/main/kotlin/co/digamma/ca/domain/internal/DefaultCurdService.kt index 0f41295..424b098 100644 --- a/backend/domain/src/main/kotlin/co/digamma/ca/domain/internal/DefaultCurdService.kt +++ b/backend/domain/src/main/kotlin/co/digamma/ca/domain/internal/DefaultCurdService.kt @@ -21,7 +21,7 @@ abstract class DefaultCurdService : RetrieveService, DeleteService return this.repository.retrieve(pageSpecs) } - override fun retrieveAll(): List { + override fun retrieve(): List { return this.repository.retrieveAll() }