-
Notifications
You must be signed in to change notification settings - Fork 2
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
[FEAT/#75] 아워, 마이 투두 조회, 생성, 삭제 / 서버통신 구현 #84
Conversation
…into feat/#75-todo-detail-api
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.
킹... 너네 상호 못이겨 💪
역시 디테일은 킹상호지
): NonDataBaseResponse<Unit> | ||
|
||
suspend fun deleteTodoData( | ||
todoId: Long | ||
): NonDataBaseResponse<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.
요거 다시 보니까 T를 안쓰는데 T를 받아오더라구여!
그래서 NoDataBaseResponse에서 NoDataBaseResponse로 수정했습니다! 조만간 올릴텐데 그때 맞춰서 수정하면 좋을 것 같아용~
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.
네넨
@@ -51,9 +51,10 @@ class SettingLogoutDialogFragment() : | |||
private fun observeUserSignOutState() { | |||
viewModel.userSignOutState.flowWithLifecycle(lifecycle).onEach { state -> | |||
when (state) { | |||
EnumUiState.LOADING -> {} |
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.
{} 처리하는 것과 return@onEach 하는 것의 차이가 뭔가요???
지금까지 {}로 했는데 불필요한 내용을 실행하지 않는다는 의미로 return@onEach이 더 맞는거 같다는생각이 들었습니당
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.
밑에는 return@onEach로 되어있네요! 하나로 통일하면 더 좋을 것 같습니다 :)
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.
{} 제 파일 아님요 ㅋㅋ
저는 그냥 {}에 주황 밑줄 그어지는거 싫어서 리턴해버림
viewModel.checkIsFinishAvailable() | ||
dismiss() | ||
} | ||
} | ||
|
||
companion object { | ||
const val TWO_DIGIT_FORMAT = "%02d" |
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.
오호,, 신기하네용
…into feat/#75-todo-detail-api
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.
지리네.............생호........멋쥐답
@POST("api/trips/{tripId}/todos") | ||
suspend fun postToCreateTodo( | ||
@Path("tripId") tripId: Long, | ||
@Body request: TodoCreateRequestDto |
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.
이렇게 감싸야하는군요 오늘도 배워갑니다
viewModel.endDate.value = | ||
binding.dpCreateTripDate.year.toString() + "." + (binding.dpCreateTripDate.month + 1).toString() + "." + binding.dpCreateTripDate.dayOfMonth.toString() | ||
binding.dpCreateTripDate.year.toString() + "." + createdMonth + "." + createdDay |
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.
수고했어요!!!!!완벽 그 자체.
request: TodoCreateRequestDto | ||
): NonDataBaseResponse<Unit> = | ||
todoService.postToCreateTodo(tripId, request) |
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.
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.
받아올게 없어서요 ~
|
||
private fun getTodoId() { | ||
todoId = intent.getLongExtra(EXTRA_TODO_ID, 0) | ||
} |
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.
Long 타입은 이렇게 받는군여
viewModel.checkIsFinishAvailable() | ||
dismiss() | ||
} | ||
} | ||
|
||
companion object { | ||
const val TWO_DIGIT_FORMAT = "%02d" |
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.
오호,, 신기하네용
⛳️ Work Description
📸 Screenshot
KakaoTalk_Video_2024-01-12-10-46-00.mp4
📢 To Reviewers