-
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/#88] 회원가입 뷰 / 서버통신 구현 #93
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.
회원가입을 해냄 ㅠ 최구 든든해
var selectedImageIndex by remember { mutableStateOf(-1) } | ||
|
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.
mutableIntStateOf 대신 mutableStateOf 사용하신 이유가 있나욤?
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.
오호 급하게 하느라 신경을 못 썼네요! mutableIntStateOf가 더 적절한 것 같아서 바꿔줬습니다!
@@ -140,6 +140,7 @@ fun TerningBasicTextField( | |||
Row( | |||
verticalAlignment = Alignment.CenterVertically, | |||
horizontalArrangement = Arrangement.spacedBy(4.dp), | |||
modifier = modifier.padding(top = 5.dp) |
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.
베이직 텍스트 필드에 top 패딩을 추가하신 이유가 있나욤..?!
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.
에뮬 돌려보니까 갑자기 패딩이 없어졌더라구요,, 그래서 추가해줬습니다!
override suspend fun postSignUp( | ||
userId: Long, | ||
request: SignUpRequestDto | ||
): BaseResponse<SignUpResponseDto> = authService.postSignUp(userId, 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.
야무지다.
override fun getUserId() : Long = terningDataStore.userId | ||
|
||
override fun clearInfo() { | ||
terningDataStore.clearInfo() |
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.
getUserId는 타입 명시, clearInfo는 안하신 이유가 있나여!?
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.
clearInfo()는 정보를 지워주는 함수이기 때문에 타입 명시가 필요 없을 것 같아서 안 해줬습니다!
).onSuccess { response -> | ||
tokenRepository.setTokens(response.accessToken, response.refreshToken) | ||
tokenRepository.setUserId(response.userId) | ||
|
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.
지인짜 고생많으셨어요!!
얼마 안남으니까 화이팅합시다~
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.
회원가입까지 끝내다니!!!!! 진짜 최고다!!!!
val authType: String | ||
) | ||
|
||
fun SignUpRequestModel.toSignUpRequestDto(): SignUpRequestDto = |
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.
함수 앞에 SignUpRequestModel 선언한 이유가 궁금해요!!
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.
SignUpRequestModel의 확장함수이기 때문입니다!!
@@ -8,10 +8,9 @@ import com.terning.feature.R | |||
|
|||
data class SignUpState( | |||
val name: String = "", | |||
val character: Int = 0, | |||
val character: Int = -1, |
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.
이거 기본값이 -1인 이유가 궁금해요!!
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.
저희가 인덱스 값으로 0~5를 넣어주게 되는데 0을 기본값으로 넣어주면 처음부터 0번 째를 선택한 게 돼버리기 때문에
아무것도 선택하지 않은 상태는 -1로 관리해주려고 했습니다!
⛳️ Work Description
📸 Screenshot
Screen_Recording_20240717_180506_Terning-Android.mp4
📢 To Reviewers