Skip to content
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

Merged
merged 28 commits into from
Jan 12, 2024

Conversation

Marchbreeze
Copy link
Member

⛳️ Work Description

  • 아워 생성
  • 마이 생성
  • 아워 생성 시 리스트 새로 서버통신
  • 마이 생성 시 리스트 새로 서버통신 & 숫자 변경
  • 아워 조회
  • 마이 조회
  • 아워 삭제
  • 마이 삭제

📸 Screenshot

KakaoTalk_Video_2024-01-12-10-46-00.mp4

📢 To Reviewers

  • API 붙이기 너무 귀찮다 우하하

Copy link
Member

@chattymin chattymin left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

킹... 너네 상호 못이겨 💪
역시 디테일은 킹상호지

Comment on lines +20 to +24
): NonDataBaseResponse<Unit>

suspend fun deleteTodoData(
todoId: Long
): NonDataBaseResponse<Unit>
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

요거 다시 보니까 T를 안쓰는데 T를 받아오더라구여!
그래서 NoDataBaseResponse에서 NoDataBaseResponse로 수정했습니다! 조만간 올릴텐데 그때 맞춰서 수정하면 좋을 것 같아용~

Copy link
Member Author

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 -> {}
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

{} 처리하는 것과 return@onEach 하는 것의 차이가 뭔가요???
지금까지 {}로 했는데 불필요한 내용을 실행하지 않는다는 의미로 return@onEach이 더 맞는거 같다는생각이 들었습니당

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

밑에는 return@onEach로 되어있네요! 하나로 통일하면 더 좋을 것 같습니다 :)

Copy link
Member Author

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"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

와우 센스 굿!!

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

오호,, 신기하네용

Copy link
Contributor

@crownjoe crownjoe left a 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
Copy link
Contributor

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
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

스트링 추출!!!!!!!!!!

Copy link
Member

@leeeyubin leeeyubin left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

수고했어요!!!!!완벽 그 자체.

Comment on lines +25 to +27
request: TodoCreateRequestDto
): NonDataBaseResponse<Unit> =
todoService.postToCreateTodo(tripId, request)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Unit으로 설정한 이유가 몬가요...?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

받아올게 없어서요 ~

Comment on lines +70 to +73

private fun getTodoId() {
todoId = intent.getLongExtra(EXTRA_TODO_ID, 0)
}
Copy link
Member

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"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

오호,, 신기하네용

@Marchbreeze Marchbreeze merged commit 48f8540 into develop Jan 12, 2024
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
FEAT ✨ 새로운 기능 구현 상호 🍀
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[FEAT] 아워, 마이 투두 조회, 생성, 삭제 / 서버통신 구현
4 participants