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] update review #65

Merged
merged 18 commits into from
Nov 7, 2023
Merged

[FEAT] update review #65

merged 18 commits into from
Nov 7, 2023

Conversation

Amepistheo
Copy link
Member

@Amepistheo Amepistheo commented Sep 6, 2023

개요

수정하기 및 삭제하기 & 마이페이지 바인딩

작업 사항

  • 수정하기, 삭제하기 API 연결
- 수정 삭제
메뉴에서
내가 쓴 리뷰에서

스크린샷 및 작동 영상

@Amepistheo Amepistheo linked an issue Sep 6, 2023 that may be closed by this pull request
1 task
@@ -143,13 +140,17 @@ class MainActivity : AppCompatActivity() {

calendarAdapter = CalendarAdapter(calendarList)

val viewModel = ViewModelProvider(this@MainActivity)[CalendarViewModel::class.java]
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 Author

Choose a reason for hiding this comment

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

앗 그건 아니구 처음 접근 했을 때 오늘 날짜 viewmodel에 넣으려면 위에서 작업해야 돼서 올렸습니당!

Copy link
Member

Choose a reason for hiding this comment

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

오잉 그러면 어캐한거죠!?

@Amepistheo Amepistheo merged commit 0e6aad0 into main Nov 7, 2023
1 check passed
@Amepistheo Amepistheo deleted the 53-feat-update-review branch November 7, 2023 06:21
@HI-JIN2 HI-JIN2 changed the title 53 feat update review [FEAT] update review Nov 9, 2023
Comment on lines +66 to +67
val service = mRetrofit.create(ReviewService::class.java)

Copy link
Member

Choose a reason for hiding this comment

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

요기 mRetrofit은 멀티파트용 레트로핏 객체입니다! 리뷰 수정의 경우, 멀티파트 폼이 아닌 json형식으로 저희 일반 토큰 있는 레트로핏을 사용해야해요! 420 뜨던데, 이게 문제였던 것 같음요

Toast.makeText(this@MyReviewDialogActivity, "리뷰 삭제가 취소되었습니다", Toast.LENGTH_SHORT).show()
})
setPositiveButton("삭제", DialogInterface.OnClickListener { dialog, which ->
val service = mRetrofit.create(ReviewService::class.java)
Copy link
Member

Choose a reason for hiding this comment

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

요기도 일반 토큰 있는 레트로핏 객체 불러다 호출하면 될겁니당

Comment on lines +16 to +28
<!-- <TextView-->
<!-- android:id="@+id/tv_eat_ssu"-->
<!-- android:layout_width="match_parent"-->
<!-- android:layout_height="80dp"-->
<!-- android:text="리뷰 남기기"-->
<!-- android:gravity="center"-->
<!-- android:textSize="25dp"-->
<!-- android:textColor="@color/white"-->
<!-- android:textStyle="bold"-->
<!-- android:background="@color/main"-->
<!-- app:layout_constraintEnd_toEndOf="parent"-->
<!-- app:layout_constraintStart_toStartOf="parent"-->
<!-- app:layout_constraintTop_toTopOf="parent" />-->
Copy link
Member

Choose a reason for hiding this comment

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

레거시 코드는 지워주세요!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[FEAT] update review
2 participants