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

[faet] 기존단체입장 초대코드 api 통신 #108

Merged
merged 15 commits into from
Jan 12, 2024

Conversation

Doreminwoo
Copy link
Member

Related issue 🛠

Work Description ✏️

  • 단체 디테일 조회 api 통신
  • 단체 가입 api 통신
  • 쉐어드프리페어런스에 groupId, groupName 저

Screenshot 📸

Recording_2024-01-12-03-13-11.mp4

Uncompleted Tasks 😅

N/A

To Reviewers 📢

어렵네요..........

@Doreminwoo Doreminwoo self-assigned this Jan 11, 2024
@Doreminwoo Doreminwoo requested a review from a team as a code owner January 11, 2024 18:38
@Doreminwoo Doreminwoo linked an issue Jan 11, 2024 that may be closed by this pull request
2 tasks
@jihyunniiii
Copy link
Collaborator

저기 영상이 안 보여요

Copy link
Collaborator

@jihyunniiii jihyunniiii left a comment

Choose a reason for hiding this comment

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

수고하셨습니당 ~~~~

android:exported="false"
android:exported="true"
Copy link
Collaborator

Choose a reason for hiding this comment

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

선생님 수정 부탁드려염 ~

Copy link
Collaborator

Choose a reason for hiding this comment

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

RequestJoinGroupCodeEntityMapper

Comment on lines 12 to 14
fun toRequestJoinGroupCode() = RequestJoinGroupCodeEntity(
code = this.code
)
Copy link
Collaborator

Choose a reason for hiding this comment

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

이거 사용 되나요? 사용되지 않는다면 지워줍시다

@POST("$VERSION/$TEAMS/{$TEAM_ID}/$REGISTER")
suspend fun postJoinGroupCode(
@Path("$TEAM_ID") teamId: Int,
@Body code: RequestJoinGroupCodeDto
Copy link
Collaborator

Choose a reason for hiding this comment

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

Suggested change
@Body code: RequestJoinGroupCodeDto
@Body requestJoinGroupCodeDto: RequestJoinGroupCodeDto

Copy link
Collaborator

Choose a reason for hiding this comment

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

아 이거 네이밍 기깔나는 거 없낭 ㅋ

Comment on lines +77 to +81
is UiState.Error -> Timber.tag(JOIN_GROUP_CODE_ACTIVITY).d(uiState.message)

is UiState.Loading -> Timber.tag(JOIN_GROUP_CODE_ACTIVITY).d(LOADING)

is UiState.Empty -> Timber.tag(JOIN_GROUP_CODE_ACTIVITY).d(EMPTY)
Copy link
Collaborator

Choose a reason for hiding this comment

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

꼼꼼하다 꼼꼼해

PingleSnackbar.makeSnackbar(
binding.root,
getString(R.string.join_group_code_snackbar_message),
97
Copy link
Collaborator

Choose a reason for hiding this comment

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

저기,, 혹시 얘도 dimen 이용하거나 상수화 해주실 수 있으실지,,

participantCount = 200
)
fun getJoinGroupInfo(teamId: Int) {
_joinGroupCodeState.value = UiState.Loading
Copy link
Collaborator

Choose a reason for hiding this comment

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

네이밍이 JoingGroupInfoState가 되어야 하지 않을까요? 넘 헷갈리는디 ㅜ


fun postJoinGroupCode(teamId: Int, code: RequestJoinGroupCodeEntity) {
_joinGroupCode.value = UiState.Loading
Copy link
Collaborator

Choose a reason for hiding this comment

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

얘도 joinGroupCodeState로 바꿔주세요

viewModelScope.launch {
_joinGroupCodeState.value = UiState.Loading
runCatching {
getJoinGroupInfoUseCase.invoke(teamId = teamId).collect { joinGroupInfo ->
Copy link
Collaborator

Choose a reason for hiding this comment

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

Suggested change
getJoinGroupInfoUseCase.invoke(teamId = teamId).collect { joinGroupInfo ->
getJoinGroupInfoUseCase(teamId = teamId).collect { joinGroupInfo ->

유즈케이스에서 invoke를 재정의 했기 때문에 이렇게 사용 가능합니다 나머지도 고쳐주세오

Copy link
Collaborator

@jihyunniiii jihyunniiii left a comment

Choose a reason for hiding this comment

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

수고하셨습니다 머지하세요 !

@Doreminwoo Doreminwoo merged commit eb45076 into develop Jan 12, 2024
1 check passed
@Doreminwoo Doreminwoo deleted the faet-join-group-code-api branch January 12, 2024 07:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

[faet] 기존단체입장 초대코드 api 통신
2 participants