From dfbbf1b08530229e5f5620d9e16d974bd952b1ca Mon Sep 17 00:00:00 2001 From: 4mjeo <4mj.eo@dsm.hs.kr> Date: Sun, 22 Sep 2024 13:00:55 +0900 Subject: [PATCH] =?UTF-8?q?refactor:=20(#763)=20=EC=A7=81=EB=A0=AC?= =?UTF-8?q?=ED=99=94=20=EC=BD=94=EB=93=9C=20=EC=82=AD=EC=A0=9C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../dms/domain/student/dto/StudentResponse.kt | 25 ++++++++----------- .../aliens/dms/domain/tag/dto/TagResponse.kt | 10 +++----- 2 files changed, 15 insertions(+), 20 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 0cdde9a56..43167b2e6 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,8 +1,5 @@ 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 @@ -49,17 +46,17 @@ data class StudentNameResponse( val name: String ) -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 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 ) { data class RoomMate( val id: UUID, diff --git a/dms-core/src/main/kotlin/team/aliens/dms/domain/tag/dto/TagResponse.kt b/dms-core/src/main/kotlin/team/aliens/dms/domain/tag/dto/TagResponse.kt index 7b55e1ba0..829ff7cd9 100644 --- a/dms-core/src/main/kotlin/team/aliens/dms/domain/tag/dto/TagResponse.kt +++ b/dms-core/src/main/kotlin/team/aliens/dms/domain/tag/dto/TagResponse.kt @@ -1,15 +1,13 @@ package team.aliens.dms.domain.tag.dto -import com.fasterxml.jackson.annotation.JsonCreator -import com.fasterxml.jackson.annotation.JsonProperty import team.aliens.dms.domain.tag.model.Tag import java.util.UUID -data class TagResponse @JsonCreator constructor( - @JsonProperty("id") val id: UUID, - @JsonProperty("name") val name: String?, - @JsonProperty("color") val color: String? +data class TagResponse( + val id: UUID, + val name: String?, + val color: String? ) { companion object { fun of(tag: Tag): TagResponse {