-
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
[TNT-115] 트레이너, 트레이니 연결 기능 구현 #65
Merged
Merged
Conversation
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
- 서버 기본 프로필 사진 수정 이후 다시 확인하기
- trainerId와 traineeId 저장 용도
hoyahozz
approved these changes
Feb 6, 2025
suspend fun regenerateInviteCode(): InviteCodeResponse | ||
|
||
@GET("/trainers/invitation-code/verify/{code}") | ||
suspend fun verifyInviteCode( |
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.
Suggested change
suspend fun verifyInviteCode( | |
suspend fun getVerifyInviteCode( |
접두사로 HTTP 메소드 적어두면 한 눈에 알아볼 수 있을 것 같습니다~
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
📝 작업 내용
연결 관련 API 연동 작업 진행했습니다
전달사항
기본 프로필 이미지가
.svg
형태로 넘어오고 있어.png
로 바꿔달라고 요청해둔 상태입니다.변경 이후 화면 다시 확인해보겠습니다.
이전에 구두로 전달해주신 리뷰대로, 트레이니의 연결 플로우를 OnNextClick 버튼 하나로 관리할 수 있도록
FormData
에PT 수업 정보
들과프로필 정보
를 저장하도록 수정했습니다.현재
trainerId
와traineeId
를 넘겨주는 API가 없어서TrainerConnectCompleted
,TraineeProfilePage
화면에 기본 값이 보여지고 있습니다.API가 나오면 두 값 저장하는 로직 추가하겠습니다!
📸 실행 화면
트레이너
TrainerConnect.mp4
트레이니
TraineeConnect.mp4
🙆🏻 리뷰 요청 사항
연결된 트레이니 정보를 불러오는 API에 필요한
trainerId
와traineeId
를 네비게이션을 통해 전달하려고 했습니다.이 경우 해당 값을 사용하지 않는
CodeGenerationPage
화면으로 이동할 때 null 값이 들어가야 하는 문제가 있습니다.그래서 현재
DataStore
를 활용하여 값을 저장하고 불러오는 방식으로 구현했는데,단순히 두 값만 저장하고 가져오는데
DataStore
를 사용하는건 성능 저하를 유발 가능성이 있을 것 같습니다.trainerId
,traineeId
가 필요 없는 화면이 있더라도 네비게이션을 통해 전달하는 것이 좋을까요?의견 주시면 감사하겠습니다..! ;ㅅ;
👀 레퍼런스