aboutsummaryrefslogtreecommitdiff
path: root/src/main/scala/xyz/driver/pdsuidomain/entities/Label.scala
diff options
context:
space:
mode:
authorvlad <vlad@driver.xyz>2017-10-01 12:50:54 -0700
committervlad <vlad@driver.xyz>2017-10-01 12:50:54 -0700
commitb5e0d5f91b52013bc11ef3ea586a54bb001577bc (patch)
tree58d6ca321e1f9176d02e24fbde6321bddadb21ee /src/main/scala/xyz/driver/pdsuidomain/entities/Label.scala
parent46b354b6a49c0843fefc5794f2351f52b98102bd (diff)
downloadrest-query-b5e0d5f91b52013bc11ef3ea586a54bb001577bc.tar.gz
rest-query-b5e0d5f91b52013bc11ef3ea586a54bb001577bc.tar.bz2
rest-query-b5e0d5f91b52013bc11ef3ea586a54bb001577bc.zip
Fixing IN in filters, Model from EVLS added to common, Reusing domain model labelsv0.5.1
Diffstat (limited to 'src/main/scala/xyz/driver/pdsuidomain/entities/Label.scala')
-rw-r--r--src/main/scala/xyz/driver/pdsuidomain/entities/Label.scala31
1 files changed, 0 insertions, 31 deletions
diff --git a/src/main/scala/xyz/driver/pdsuidomain/entities/Label.scala b/src/main/scala/xyz/driver/pdsuidomain/entities/Label.scala
deleted file mode 100644
index eea39de..0000000
--- a/src/main/scala/xyz/driver/pdsuidomain/entities/Label.scala
+++ /dev/null
@@ -1,31 +0,0 @@
-package xyz.driver.pdsuidomain.entities
-
-import xyz.driver.pdsuicommon.domain.LongId
-import xyz.driver.pdsuicommon.logging._
-
-final case class Category(id: LongId[Category], name: String)
-
-object Category {
- implicit def toPhiString(x: Category): PhiString = {
- import x._
- phi"Category(id=$id, name=${Unsafe(name)})"
- }
-}
-
-final case class Label(id: LongId[Label], categoryId: LongId[Category], name: String, description: String)
-
-object Label {
- implicit def toPhiString(x: Label): PhiString = {
- import x._
- phi"Label($id, categoryId=${Unsafe(categoryId)}, name=${Unsafe(name)}, description=${Unsafe(description)})"
- }
-}
-
-final case class CategoryWithLabels(category: Category, labels: List[Label])
-
-object CategoryWithLabels {
- implicit def toPhiString(x: CategoryWithLabels): PhiString = {
- import x._
- phi"CategoryWithLabels(category=$category, labels=$labels)"
- }
-}