-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
♻️ Flytt mapping til GraphQL ut av DAO.
- Endre fra finnAlleAvslag til finnAlleVedtakBegrunnelser - Lag egen type som holder på verdier tilsvarende databasen - Map fra databaseverdier til GraphQL i kaller - Bruk databasetypen i Dao-testen Co-authored-by: Martin Remøy Solheim <[email protected]>
- Loading branch information
1 parent
89967f4
commit 9df0fd5
Showing
5 changed files
with
58 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
11 changes: 11 additions & 0 deletions
11
...elve/src/main/kotlin/no/nav/helse/db/VedtakBegrunnelseMedSaksbehandlerIdentFraDatabase.kt
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,11 @@ | ||
package no.nav.helse.db | ||
|
||
import java.time.LocalDateTime | ||
|
||
data class VedtakBegrunnelseMedSaksbehandlerIdentFraDatabase( | ||
val type: VedtakBegrunnelseTypeFraDatabase, | ||
val begrunnelse: String, | ||
val opprettet: LocalDateTime, | ||
val saksbehandlerIdent: String, | ||
val invalidert: Boolean, | ||
) |
6 changes: 6 additions & 0 deletions
6
spesialist-selve/src/main/kotlin/no/nav/helse/db/VedtakBegrunnelseTypeFraDatabase.kt
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 no.nav.helse.db | ||
|
||
enum class VedtakBegrunnelseTypeFraDatabase { | ||
AVSLAG, | ||
DELVIS_AVSLAG, | ||
} |
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