From fb6629aa4df306cf41c278321428b3a55d4e6c09 Mon Sep 17 00:00:00 2001 From: 4mjeo <4mj.eo@dsm.hs.kr> Date: Sat, 21 Sep 2024 19:56:39 +0900 Subject: [PATCH 1/2] =?UTF-8?q?refactor:=20(#757)=20Jackson=20=EC=83=9D?= =?UTF-8?q?=EC=84=B1=EC=9E=90=20=EC=A7=80=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../dms/domain/student/dto/StudentResponse.kt | 26 +++++++++++-------- 1 file changed, 15 insertions(+), 11 deletions(-) diff --git a/dms-core/src/main/kotlin/team/aliens/dms/domain/student/dto/StudentResponse.kt b/dms-core/src/main/kotlin/team/aliens/dms/domain/student/dto/StudentResponse.kt index 43167b2e6..923d34cf9 100644 --- a/dms-core/src/main/kotlin/team/aliens/dms/domain/student/dto/StudentResponse.kt +++ b/dms-core/src/main/kotlin/team/aliens/dms/domain/student/dto/StudentResponse.kt @@ -1,5 +1,8 @@ package team.aliens.dms.domain.student.dto +import com.fasterxml.jackson.annotation.JsonCreator +import com.fasterxml.jackson.annotation.JsonIgnoreProperties +import com.fasterxml.jackson.annotation.JsonProperty import team.aliens.dms.domain.manager.spi.vo.StudentWithTag import team.aliens.dms.domain.student.model.Sex import team.aliens.dms.domain.student.model.Student @@ -46,17 +49,18 @@ data class StudentNameResponse( val name: String ) -data class StudentDetailsResponse( - val id: UUID, - val name: String, - val gcn: String, - val profileImageUrl: String, - val sex: Sex? = null, - val bonusPoint: Int? = null, - val minusPoint: Int? = null, - val roomNumber: String? = null, - val roomMates: List? = null, - val tags: List? = null +@JsonIgnoreProperties(ignoreUnknown = true) +data class StudentDetailsResponse @JsonCreator constructor( + @JsonProperty("id") val id: UUID, + @JsonProperty("name") val name: String, + @JsonProperty("gcn") val gcn: String, + @JsonProperty("profileImageUrl") val profileImageUrl: String, + @JsonProperty("sex") val sex: Sex? = null, + @JsonProperty("bonusPoint") val bonusPoint: Int? = null, + @JsonProperty("minusPoint") val minusPoint: Int? = null, + @JsonProperty("roomNumber") val roomNumber: String? = null, + @JsonProperty("roomMates") val roomMates: List? = null, + @JsonProperty("tags") val tags: List? = null ) { data class RoomMate( val id: UUID, From 64dda562ab4fa9a9c38da1384927593bc0826043 Mon Sep 17 00:00:00 2001 From: 4mjeo <4mj.eo@dsm.hs.kr> Date: Sat, 21 Sep 2024 21:02:14 +0900 Subject: [PATCH 2/2] =?UTF-8?q?refactor:=20(#757)=20=EB=B6=88=ED=95=84?= =?UTF-8?q?=EC=9A=94=ED=95=9C=20=EC=BD=94=EB=93=9C=20=EC=A0=9C=EA=B1=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../aliens/dms/domain/outing/service/GetOutingServiceImpl.kt | 1 - .../kotlin/team/aliens/dms/domain/student/dto/StudentResponse.kt | 1 - 2 files changed, 2 deletions(-) diff --git a/dms-core/src/main/kotlin/team/aliens/dms/domain/outing/service/GetOutingServiceImpl.kt b/dms-core/src/main/kotlin/team/aliens/dms/domain/outing/service/GetOutingServiceImpl.kt index 33b9052f2..70b19f62e 100644 --- a/dms-core/src/main/kotlin/team/aliens/dms/domain/outing/service/GetOutingServiceImpl.kt +++ b/dms-core/src/main/kotlin/team/aliens/dms/domain/outing/service/GetOutingServiceImpl.kt @@ -14,7 +14,6 @@ import team.aliens.dms.domain.outing.spi.QueryOutingTypePort import team.aliens.dms.domain.outing.spi.vo.CurrentOutingApplicationVO import team.aliens.dms.domain.outing.spi.vo.OutingCompanionDetailsVO import team.aliens.dms.domain.outing.spi.vo.OutingHistoryVO - import java.time.DayOfWeek import java.time.LocalDate import java.util.UUID diff --git a/dms-core/src/main/kotlin/team/aliens/dms/domain/student/dto/StudentResponse.kt b/dms-core/src/main/kotlin/team/aliens/dms/domain/student/dto/StudentResponse.kt index 923d34cf9..0cdde9a56 100644 --- a/dms-core/src/main/kotlin/team/aliens/dms/domain/student/dto/StudentResponse.kt +++ b/dms-core/src/main/kotlin/team/aliens/dms/domain/student/dto/StudentResponse.kt @@ -49,7 +49,6 @@ data class StudentNameResponse( val name: String ) -@JsonIgnoreProperties(ignoreUnknown = true) data class StudentDetailsResponse @JsonCreator constructor( @JsonProperty("id") val id: UUID, @JsonProperty("name") val name: String,