-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Feature/#105] : 대댓글 UI, API #122
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
최곤데요! 시험기간이라 바빴을 텐데 고생많으셧어요 👍
@@ -14,7 +14,7 @@ import retrofit2.http.Path | |||
import retrofit2.http.Query | |||
|
|||
interface CommentService { | |||
@GET("api/v2/content/{contentId}/comments") | |||
@GET("api/v3/content/{contentId}/comments") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
이거 v3생기면 추가하기로 한거 아니였나요?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
어떤걸 추가하기로 했죠??!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
앗 이거 저희 쪽에서 v3로 새로 함수 만들어서 쓴다고 착각했네요
근데 지금 로그아웃 하고 로그인이 안되서
이전 버전(v1) 으로 dto포함 로그인 돌리면 되긴합니다만
내일 서버와 이야기 해보아야 할것 같아요!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
아하!! 로그인 api v2로 업하고 체크를 못했네요 서버랑 이야기 해볼게요!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
이제 코드가 진짜 에바핑이네요!
걍 천상계로 가세요
@@ -12,7 +12,7 @@ interface CommentRepository { | |||
|
|||
suspend fun deleteComment(commentId: Long): Result<Unit> | |||
|
|||
suspend fun postComment(contentId: Long, commentText: String): Result<Unit> | |||
suspend fun postComment(contentId: Long, commentInfo: Triple<String, Long, Long>): Result<Unit> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Zzzzzzzzㅋㅋㅋㅋㅋㅋㅋㅋㅋ
@@ -28,7 +30,7 @@ internal class DefaultCommentRepository @Inject constructor( | |||
getNextCursor = { comments -> comments.lastOrNull()?.commentId }, | |||
) | |||
}.flow.map { pagingData -> | |||
pagingData.map { it.toComment() } | |||
pagingData.flatMap { it.toComments() } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
P3 : flatMap 이런 것도 잇군요? 내장 코드 활용 넘 잘하는 ㄷㄷ
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
앗 어푸 안햇당 ㅋ
✅ 𝗖𝗵𝗲𝗰𝗸-𝗟𝗶𝘀𝘁
📌 𝗜𝘀𝘀𝘂𝗲𝘀
📎𝗪𝗼𝗿𝗸 𝗗𝗲𝘀𝗰𝗿𝗶𝗽𝘁𝗶𝗼𝗻
📷 𝗦𝗰𝗿𝗲𝗲𝗻𝘀𝗵𝗼𝘁
default.mp4
💬 𝗧𝗼 𝗥𝗲𝘃𝗶𝗲𝘄𝗲𝗿𝘀
comment edit text 커서 변경하는 김에 posting 쪽 커서도 변경했습니다. 883afa8 커밋 참고해주세요!