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 }, ) } }