-
Notifications
You must be signed in to change notification settings - Fork 0
[Feature] 마이페이지 api 연결 #211
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
Merged
The head ref may contain hidden characters: "FLT-17-\uB9C8\uC774\uD398\uC774\uC9C0-api-\uC5F0\uACB0"
Merged
Changes from all commits
Commits
Show all changes
22 commits
Select commit
Hold shift + click to select a range
dce0f54
feat: 저장한 작품 더보기
ckals413 6b3c5c7
feat: 저장 작품 리스트 화면 내 뒤로가기 추가
ckals413 38a2aad
feat: 수정된 api 연결 (작품 총 개수 및 북마크 수 데이터 반영)
ckals413 5ed85fc
Merge remote-tracking branch 'origin/develop' into FLT-17-마이페이지-api-연결
ckals413 b773159
feat: 저장된 작품 북마크 해제 기능 구현 및 API 연동
ckals413 090484b
feat: 저장 작품 목록 북마크 토글 시 로딩 인디케이터 제거 및 애니메이션 추가
ckals413 c841cf1
feat: 저장된 작품 목록 조회 사용자 ID 연동 및 타인 프로필 조회 기능 추가
ckals413 1df7194
feat: 북마크 최소 개수 제한 로직을 서버 에러 응답 처리 방식으로 변경
ckals413 4c383a1
feat: 프로필 키워드 재계산 가능 여부 확인 및 업데이트 버튼 활성 상태 제어
ckals413 b4f0061
feat: 취향 키워드 재계산 기능 구현
ckals413 0ed097c
feat: 북마크 변경 상태 실시간 반영 및 프로필 UI 업데이트
ckals413 b6576a7
feat: 프로필 키워드 재계산 중 로딩 애니메이션 추가
ckals413 77cff3c
feat: 북마크한 콘텐츠 목록 조회 API 경로 수정 및 북마크 여부 필드 추가
ckals413 6d0d6e1
feat: 내 북마크 콘텐츠 조회 방식 변경 및 커서 페이지네이션 연동
ckals413 2cef44e
Merge branch 'develop' into FLT-17-마이페이지-api-연결
ckals413 d2e2e29
feat: 코드래빗 반영
ckals413 5a35e6a
feat: 북마크한 콘텐츠 전체 개수 조회 API 변경 반영
ckals413 1947189
refactor: 저장 목록에서 북마크 취소 시 아이템을 삭제하지 않도록 수정
ckals413 589d3fe
feat: 코드리뷰 반영
ckals413 06fc1c3
merge - develop
ckals413 9b0bdf2
style: UserApi.kt 들여쓰기 수정
ckals413 29e988f
Merge branch 'develop' into FLT-17-마이페이지-api-연결
kimjw2003 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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
This file contains hidden or 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
This file contains hidden or 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
This file contains hidden or 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
12 changes: 12 additions & 0 deletions
12
app/src/main/java/com/flint/data/dto/base/ErrorResponseDto.kt
This file contains hidden or 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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,12 @@ | ||
| package com.flint.data.dto.base | ||
|
|
||
| import kotlinx.serialization.SerialName | ||
| import kotlinx.serialization.Serializable | ||
|
|
||
| @Serializable | ||
| data class ErrorResponseDto( | ||
| @SerialName("errorCode") | ||
| val errorCode: String? = null, | ||
| @SerialName("message") | ||
| val message: String? = null, | ||
| ) |
This file contains hidden or 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
16 changes: 9 additions & 7 deletions
16
app/src/main/java/com/flint/data/dto/user/response/UserProfileResponseDto.kt
This file contains hidden or 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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,16 +1,18 @@ | ||
| package com.flint.data.dto.user.response | ||
|
|
||
| import com.google.gson.annotations.SerializedName | ||
| import kotlinx.serialization.SerialName | ||
| import kotlinx.serialization.Serializable | ||
|
|
||
| @Serializable | ||
| data class UserProfileResponseDto( | ||
| @SerializedName("id") | ||
| @SerialName("id") | ||
| val id: String, | ||
| @SerializedName("profileImageUrl") | ||
| @SerialName("profileImageUrl") | ||
| val profileImageUrl: String?, | ||
| @SerializedName("isFliner") | ||
| @SerialName("isFliner") | ||
| val isFliner: Boolean, | ||
| @SerializedName("nickname") | ||
| val nickname: String | ||
| ) | ||
| @SerialName("nickname") | ||
| val nickname: String, | ||
| @SerialName("keywordRecalculatable") | ||
| val keywordRecalculatable: Boolean = false, | ||
| ) |
This file contains hidden or 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
This file contains hidden or 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
16 changes: 16 additions & 0 deletions
16
app/src/main/java/com/flint/domain/model/bookmark/BookmarkChange.kt
This file contains hidden or 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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,16 @@ | ||
| package com.flint.domain.model.bookmark | ||
|
|
||
| sealed class BookmarkChange { | ||
| abstract val id: String | ||
| abstract val isBookmarked: Boolean | ||
|
|
||
| data class Content( | ||
| override val id: String, | ||
| override val isBookmarked: Boolean, | ||
| ) : BookmarkChange() | ||
|
|
||
| data class Collection( | ||
| override val id: String, | ||
| override val isBookmarked: Boolean, | ||
| ) : BookmarkChange() | ||
| } |
6 changes: 6 additions & 0 deletions
6
app/src/main/java/com/flint/domain/model/bookmark/BookmarkException.kt
This file contains hidden or 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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,6 @@ | ||
| package com.flint.domain.model.bookmark | ||
|
|
||
| sealed class BookmarkException : Exception() { | ||
| /** 최소 저장 작품 수 제한으로 콘텐츠 북마크 해제 불가 */ | ||
| object ContentMinLimitExceeded : BookmarkException() | ||
| } | ||
This file contains hidden or 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
This file contains hidden or 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
This file contains hidden or 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
Oops, something went wrong.
Oops, something went wrong.
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.
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.
Throwable을object로 선언하면 예외 인스턴스가 재사용됩니다.Line [5]의 singleton 예외는 반복 throw 시 stacktrace/내부 상태가 공유되어 디버깅 신뢰도가 떨어집니다. 예외는 매번 새 인스턴스로 생성되는
class로 바꾸는 편이 안전합니다.🛠 제안 패치
sealed class BookmarkException : Exception() { /** 최소 저장 작품 수 제한으로 콘텐츠 북마크 해제 불가 */ - object ContentMinLimitExceeded : BookmarkException() + class ContentMinLimitExceeded : BookmarkException() }🤖 Prompt for AI Agents