This repository has been archived by the owner on Jan 23, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
move domain to commons and use circe for http4s version only
- Loading branch information
1 parent
c6460f2
commit be40bb1
Showing
6 changed files
with
14 additions
and
29 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
6 changes: 6 additions & 0 deletions
6
common/src/main/scala/es/jesusmtnez/todobackend/domain/TodoRequest.scala
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
package es.jesusmtnez.todobackend.domain | ||
|
||
final case class TodoRequest( | ||
title: String, | ||
order: Option[Int] | ||
) |
6 changes: 0 additions & 6 deletions
6
...mtnez/todobackend/domain/TodoUpdate.scala → ...mtnez/todobackend/domain/TodoUpdate.scala
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,7 @@ | ||
package es.jesusmtnez.todobackend.domain | ||
|
||
import io.circe.Decoder | ||
import io.circe.generic.semiauto.deriveDecoder | ||
|
||
final case class TodoUpdate( | ||
title: Option[String], | ||
completed: Option[Boolean], | ||
order: Option[Int] | ||
) | ||
|
||
object TodoUpdate: | ||
given Decoder[TodoUpdate] = deriveDecoder |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
12 changes: 0 additions & 12 deletions
12
todobackend-http4s/src/main/scala/es/jesusmtnez/todobackend/domain/TodoRequest.scala
This file was deleted.
Oops, something went wrong.