diff options
Diffstat (limited to 'src/main/scala/xyz/driver/pdsuidomain/services/CategoryService.scala')
-rw-r--r-- | src/main/scala/xyz/driver/pdsuidomain/services/CategoryService.scala | 27 |
1 files changed, 0 insertions, 27 deletions
diff --git a/src/main/scala/xyz/driver/pdsuidomain/services/CategoryService.scala b/src/main/scala/xyz/driver/pdsuidomain/services/CategoryService.scala deleted file mode 100644 index f8d820b..0000000 --- a/src/main/scala/xyz/driver/pdsuidomain/services/CategoryService.scala +++ /dev/null @@ -1,27 +0,0 @@ -package xyz.driver.pdsuidomain.services - -import xyz.driver.pdsuicommon.auth.AuthenticatedRequestContext -import xyz.driver.pdsuicommon.db.Sorting -import xyz.driver.pdsuicommon.error.DomainError -import xyz.driver.pdsuidomain.entities.CategoryWithLabels - -import scala.concurrent.Future - -object CategoryService { - sealed trait GetListReply - object GetListReply { - case class EntityList(xs: Seq[CategoryWithLabels], totalFound: Int) extends GetListReply - - case object AuthorizationError extends GetListReply with DomainError.AuthorizationError { - def userMessage: String = "Access denied" - } - } -} - -trait CategoryService { - - import CategoryService._ - - def getAll(sorting: Option[Sorting] = None)( - implicit requestContext: AuthenticatedRequestContext): Future[GetListReply] -} |