-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
0a0d11c
commit b7a023f
Showing
8 changed files
with
142 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
12 changes: 12 additions & 0 deletions
12
src/main/kotlin/com/hero/alignlab/domain/group/model/request/UpdateGroupRequest.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
package com.hero.alignlab.domain.group.model.request | ||
|
||
data class UpdateGroupRequest( | ||
/** 그룹명, 중복 불가능 */ | ||
val name: String, | ||
/** 그룹 설명 */ | ||
val description: String?, | ||
/** 숨김 여부 */ | ||
val isHidden: Boolean, | ||
/** 참여 코드, 미입력시 자동 생성 */ | ||
val joinCode: String?, | ||
) |
26 changes: 26 additions & 0 deletions
26
src/main/kotlin/com/hero/alignlab/domain/group/model/response/GetGroupResponse.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
package com.hero.alignlab.domain.group.model.response | ||
|
||
import com.hero.alignlab.domain.group.domain.Group | ||
|
||
data class GetGroupResponse( | ||
val id: Long, | ||
val name: String, | ||
val description: String?, | ||
val ownerUid: Long, | ||
val isHidden: Boolean, | ||
/** 그룹장만 조회 가능 */ | ||
val joinCode: String?, | ||
) { | ||
companion object { | ||
fun from(group: Group): GetGroupResponse { | ||
return GetGroupResponse( | ||
group.id, | ||
group.name, | ||
group.description, | ||
group.ownerUid, | ||
group.isHidden, | ||
group.joinCode | ||
) | ||
} | ||
} | ||
} |
23 changes: 23 additions & 0 deletions
23
src/main/kotlin/com/hero/alignlab/domain/group/model/response/UpdateGroupResponse.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
package com.hero.alignlab.domain.group.model.response | ||
|
||
import com.hero.alignlab.domain.group.domain.Group | ||
|
||
data class UpdateGroupResponse( | ||
/** group id */ | ||
val id: Long, | ||
/** 그룹명 */ | ||
val name: String, | ||
/** 그룹 설명 */ | ||
val description: String?, | ||
) { | ||
companion object { | ||
fun from(group: Group): UpdateGroupResponse { | ||
return UpdateGroupResponse( | ||
id = group.id, | ||
name = group.name, | ||
description = group.description, | ||
) | ||
} | ||
} | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters