mirror of
https://github.com/TheAnachronism/docspell.git
synced 2025-06-22 02:18:26 +00:00
Reorder correspondent person suggestion based on org relationship
This commit is contained in:
@ -0,0 +1,18 @@
|
||||
package docspell.common
|
||||
|
||||
import io.circe._
|
||||
import io.circe.generic.semiauto._
|
||||
|
||||
case class PersonRef(id: Ident, name: String, organization: Option[Ident]) {
|
||||
|
||||
def toIdRef: IdRef =
|
||||
IdRef(id, name)
|
||||
}
|
||||
|
||||
object PersonRef {
|
||||
|
||||
implicit val jsonEncoder: Encoder[PersonRef] =
|
||||
deriveEncoder[PersonRef]
|
||||
implicit val jsonDecoder: Decoder[PersonRef] =
|
||||
deriveDecoder[PersonRef]
|
||||
}
|
Reference in New Issue
Block a user