blob: e1303672e5a70b8279df2c724fd5d3b194cb6a49 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
package xyz.driver.common.domain
import xyz.driver.common.logging._
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)})"
}
}
case class CategoryWithLabels(category: Category, labels: List[Label])
object CategoryWithLabels {
implicit def toPhiString(x: CategoryWithLabels): PhiString = {
import x._
phi"CategoryWithLabels(category=$category, labels=$labels)"
}
}
|