Skip to content

Commit

Permalink
feat: inoculation response에 vaccineId추가
Browse files Browse the repository at this point in the history
  • Loading branch information
HyungJu committed May 14, 2024
1 parent a1706cb commit 7008c06
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 13 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,7 @@ class InoculationService(
val isCompleted = vaccineOrders.any { order -> order == vaccination.maxOrder }

InoculationSimpleResponse(
vaccination.id.toString(),
vaccination.diseaseName,
vaccination.vaccineName,
vaccination.minOrder,
Expand Down Expand Up @@ -93,6 +94,7 @@ class InoculationService(

return inoculations.map {
InoculationDetailResponse(
it.vaccination.id.toString(),
it.vaccination.vaccineName,
it.inoculationOrderString,
it.agency,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,12 @@ package com.vacgom.backend.inoculation.application.dto.response
import java.time.LocalDate

data class InoculationDetailResponse(
val vaccineName: String,
val order: String,
val agency: String,
val lotNumber: String?,
val vaccineProductName: String?,
val vaccineBrandName: String?,
val date: LocalDate
val vaccineId: String,
val vaccineName: String,
val order: String,
val agency: String,
val lotNumber: String?,
val vaccineProductName: String?,
val vaccineBrandName: String?,
val date: LocalDate,
)
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
package com.vacgom.backend.inoculation.application.dto.response

data class InoculationSimpleResponse(
val diseaseName: String,
val vaccineName: String,
val minOrder: Long,
val maxOrder: Long,
val isCompleted: Boolean,
val inoculationOrders: List<Long>?
val vaccineId: String,
val diseaseName: String,
val vaccineName: String,
val minOrder: Long,
val maxOrder: Long,
val isCompleted: Boolean,
val inoculationOrders: List<Long>?,
)

0 comments on commit 7008c06

Please sign in to comment.