From a6c7efaafcddc012ea6cac3f4903598cc0189847 Mon Sep 17 00:00:00 2001 From: leeheefull Date: Tue, 10 Dec 2024 10:51:21 +0900 Subject: [PATCH] =?UTF-8?q?refac:=20=ED=83=9C=EA=B7=B8=20=EA=B4=80?= =?UTF-8?q?=EB=A0=A8=20=EC=9D=91=EB=8B=B5=EA=B0=92=20=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../domain/group/model/response/GetGroupResponse.kt | 4 ++-- .../domain/group/model/response/GroupTagResponse.kt | 8 -------- .../domain/group/model/response/MyGroupResponse.kt | 3 +++ .../domain/group/model/response/UpdateGroupResponse.kt | 4 ++-- 4 files changed, 7 insertions(+), 12 deletions(-) delete mode 100644 src/main/kotlin/com/hero/alignlab/domain/group/model/response/GroupTagResponse.kt diff --git a/src/main/kotlin/com/hero/alignlab/domain/group/model/response/GetGroupResponse.kt b/src/main/kotlin/com/hero/alignlab/domain/group/model/response/GetGroupResponse.kt index 86fcd67..d520ff0 100644 --- a/src/main/kotlin/com/hero/alignlab/domain/group/model/response/GetGroupResponse.kt +++ b/src/main/kotlin/com/hero/alignlab/domain/group/model/response/GetGroupResponse.kt @@ -19,7 +19,7 @@ data class GetGroupResponse( val userCapacity: Int, val ranks: List? = null, /** 그룹 태그 리스트 */ - val tags: List?, + val tagNames: List?, val countCheeredUp: Long? = null, ) { companion object { @@ -39,7 +39,7 @@ data class GetGroupResponse( joinCode = group.joinCode, userCount = group.userCount, userCapacity = group.userCapacity, - tags = tags?.map { GroupTagResponse(it.id, it.name) }, + tagNames = tags?.map { it.name }, countCheeredUp = countCheeredUp, ) } diff --git a/src/main/kotlin/com/hero/alignlab/domain/group/model/response/GroupTagResponse.kt b/src/main/kotlin/com/hero/alignlab/domain/group/model/response/GroupTagResponse.kt deleted file mode 100644 index e1e2c2f..0000000 --- a/src/main/kotlin/com/hero/alignlab/domain/group/model/response/GroupTagResponse.kt +++ /dev/null @@ -1,8 +0,0 @@ -package com.hero.alignlab.domain.group.model.response - -data class GroupTagResponse( - /** 태그 ID */ - val tagId: Long, - /** 태그명 */ - val tagName: String, -) diff --git a/src/main/kotlin/com/hero/alignlab/domain/group/model/response/MyGroupResponse.kt b/src/main/kotlin/com/hero/alignlab/domain/group/model/response/MyGroupResponse.kt index e7e893c..a8160ba 100644 --- a/src/main/kotlin/com/hero/alignlab/domain/group/model/response/MyGroupResponse.kt +++ b/src/main/kotlin/com/hero/alignlab/domain/group/model/response/MyGroupResponse.kt @@ -9,6 +9,8 @@ data class MyGroupResponse( val name: String, /** 그룹 설명 */ val description: String?, + /** owner uid */ + val ownerUid: Long, /** 그룹원 수 */ val userCount: Int, /** 그룹 정원 */ @@ -22,6 +24,7 @@ data class MyGroupResponse( id = group.id, name = group.name, description = group.description, + ownerUid = group.ownerUid, userCount = userCount, userCapacity = group.userCapacity, ownerNickname = ownerNickname diff --git a/src/main/kotlin/com/hero/alignlab/domain/group/model/response/UpdateGroupResponse.kt b/src/main/kotlin/com/hero/alignlab/domain/group/model/response/UpdateGroupResponse.kt index e0c4cfa..57179d9 100644 --- a/src/main/kotlin/com/hero/alignlab/domain/group/model/response/UpdateGroupResponse.kt +++ b/src/main/kotlin/com/hero/alignlab/domain/group/model/response/UpdateGroupResponse.kt @@ -11,7 +11,7 @@ data class UpdateGroupResponse( /** 그룹 설명 */ val description: String?, /** 그룹 태그 리스트 */ - val tags: List?, + val tagNames: List?, ) { companion object { fun from(group: Group, tags: List): UpdateGroupResponse { @@ -19,7 +19,7 @@ data class UpdateGroupResponse( id = group.id, name = group.name, description = group.description, - tags = tags.map { GroupTagResponse(it.id, it.name) }, + tagNames = tags.map { it.name }, ) } }