Skip to content

Commit

Permalink
Harmonize method names
Browse files Browse the repository at this point in the history
  • Loading branch information
ahmadshahwan committed Jul 18, 2024
1 parent d94ee50 commit ef76ee9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import co.digamma.ca.domain.api.model.Model
interface RetrieveService<T : Model> {
fun retrieve(id: String): T
fun retrieve(pageSpecs: PageSpecs): Page<T>
fun retrieveAll(): List<T>
fun retrieve(): List<T>
}

interface CreateService<T : Model, C> {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ abstract class DefaultCurdService<T : Model> : RetrieveService<T>, DeleteService
return this.repository.retrieve(pageSpecs)
}

override fun retrieveAll(): List<T> {
override fun retrieve(): List<T> {
return this.repository.retrieveAll()
}

Expand Down

0 comments on commit ef76ee9

Please sign in to comment.