-
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.
[Feature/468] 문답 목록 조회 api v2를 구현한다 (#510)
* feat: 문답 목록 조회 api v2 구현 * fix: lastStatus 값 반환 수정
- Loading branch information
Showing
11 changed files
with
329 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
2 changes: 0 additions & 2 deletions
2
api/src/main/kotlin/com/nexters/bottles/api/bottle/facade/dto/PingPongListResponse.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
20 changes: 20 additions & 0 deletions
20
api/src/main/kotlin/com/nexters/bottles/api/bottle/facade/dto/PingPongListResponseV2.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,20 @@ | ||
package com.nexters.bottles.api.bottle.facade.dto | ||
|
||
import com.nexters.bottles.app.bottle.domain.enum.LetterLastStatus | ||
|
||
data class PingPongListResponseV2( | ||
val pingPongBottles: List<PingPongBottleDtoV2>, | ||
) | ||
|
||
data class PingPongBottleDtoV2( | ||
val id: Long, | ||
val isRead: Boolean, | ||
val userName: String?, | ||
val userId: Long, | ||
val age: Int, | ||
val mbti: String?, | ||
val keyword: List<String>?, | ||
val userImageUrl: String?, | ||
val lastActivatedAt: String?, | ||
val lastStatus: LetterLastStatus | ||
) |
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
27 changes: 27 additions & 0 deletions
27
app/src/main/kotlin/com/nexters/bottles/app/bottle/domain/enum/LetterLastStatus.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,27 @@ | ||
package com.nexters.bottles.app.bottle.domain.enum | ||
|
||
enum class LetterLastStatus { | ||
// 대화는 시작했으나 두 사람 모두 문답을 작성하지 않았을 때 | ||
NO_ANSWER_FROM_BOTH, | ||
|
||
//상대방이 새로운 문답을 작성했을 때 | ||
ANSWER_FROM_OTHER, | ||
|
||
// 상대방이 사진을 공유했을 때 | ||
PHOTO_SHARED_BY_OTHER, | ||
|
||
// 상대방이 연락처를 공유했을 때 | ||
CONTACT_SHARED_BY_OTHER, | ||
|
||
// 내가 문답을 작성했을 때 (상대방은 작성X) | ||
ANSWER_FROM_ME_ONLY, | ||
|
||
// 내가 사진을 공유했을 때 (상대방은 공유X) | ||
PHOTO_SHARED_BY_ME_ONLY, | ||
|
||
// 내가 연락처를 공유했을 때 (상대방은 공유X) | ||
CONTACT_SHARED_BY_ME_ONLY, | ||
|
||
// 대화가 중단됐을 때 | ||
CONVERSATION_STOPPED | ||
} |
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
Oops, something went wrong.