Skip to content

Commit

Permalink
refactor: 그룹 생성 요청, 응답값 통일
Browse files Browse the repository at this point in the history
  • Loading branch information
leeheefull committed Dec 5, 2024
1 parent 9d9e0a8 commit 38bff8b
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -11,15 +11,15 @@ data class CreateGroupResponse(
/** 그룹 설명 */
val description: String?,
/** 그룹 태그 리스트 */
val tags: List<GroupTagResponse>?,
val tagNames: List<String>?,
) {
companion object {
fun from(group: Group, tags: List<GroupTag>): CreateGroupResponse {
return CreateGroupResponse(
id = group.id,
name = group.name,
description = group.description,
tags = tags.map { GroupTagResponse(it.id, it.name) },
tagNames = tags.map { it.name },
)
}
}
Expand Down

0 comments on commit 38bff8b

Please sign in to comment.