-
Notifications
You must be signed in to change notification settings - Fork 0
[TNT-260] 트레이너 내 정보 수정 #129
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
Merged
Changes from all commits
Commits
Show all changes
17 commits
Select commit
Hold shift + click to select a range
08cef7f
[TNT-260] chore: detekt UnusedParameter 검사 비활성화 처리
hoyahozz 31467c7
[TNT-260] feat: feature:trainer:modifymyinfo 모듈 최초 생성
hoyahozz 3b653f9
[TNT-260] feat: 트레이너 마이페이지 -> 개인정보 수정 화면 이동 구현
hoyahozz a2d22a5
[TNT-260] feat: 개인정보 수정 화면 Contract 정의
hoyahozz 8889399
[TNT-260] feat: 개인정보 수정 화면 내 State, Event 연동
hoyahozz 347fc6d
[TNT-260] feat: 최초 진입 시 내 정보 불러오기 API 연동 및 정보 수정 관찰 구현
hoyahozz 9a46616
[TNT-260] fix: 변경사항이 있는 경우에만 '완료' 버튼이 활성화되도록 수정
hoyahozz bf465cd
[TNT-260] feat: 트레이너 정보 수정 API 호출 구현
hoyahozz a342a9d
[TNT-260] refactor: 프로필 이미지 업데이트 정책 도메인 모델 정의 및 적용
hoyahozz 4ee47af
[TNT-260] refactor: 유저 프로필 정책 정의
hoyahozz cf5a630
[TNT-260] feat: 이름 유효성 검사 추가
hoyahozz 757d38e
[TNT-260] fix: detekt apply
hoyahozz b8944c7
[TNT-260] feat: 유저 정보 캐싱 처리 및 마이페이지 내 실시간 업데이트 처리
hoyahozz 7d0fe04
[TNT-260] Merge branch 'develop' into feature/TNT-260
hoyahozz fa108a1
[TNT-260] Merge branch 'develop' into feature/TNT-260
hoyahozz 4f9d544
[TNT-260] refactor: 공통 문자열 리소스 적용
hoyahozz dab3669
[TNT-260] fix: 문자열 리소스 정의
hoyahozz 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
16 changes: 16 additions & 0 deletions
16
data/network/src/main/java/co/kr/data/network/model/UpdateUserInfoRequest.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 co.kr.data.network.model | ||
|
|
||
| import co.kr.data.network.model.enum.MemberType | ||
| import kotlinx.serialization.Serializable | ||
|
|
||
| @Serializable | ||
| data class UpdateUserInfoRequest( | ||
| val removeImage: Boolean, | ||
| val memberType: MemberType, | ||
| val name: String, | ||
| val birthDay: String? = null, | ||
| val height: Double? = null, | ||
| val weight: Double? = null, | ||
| val cautionNote: String? = null, | ||
| val goalContents: List<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
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 was deleted.
Oops, something went wrong.
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 co.kr.tnt.domain | ||
|
|
||
| object UserProfilePolicy { | ||
| // TnT 에서 사용자가 업로드할 수 있는 이미지의 최대 용량은 10MB이다. | ||
| const val USER_IMAGE_MAX_SIZE = 10 * 1024 * 1024 | ||
|
|
||
| // TnT 에서 사용자가 입력할 수 있는 이름의 최대 길이는 15자이다. | ||
| const val USER_NAME_MAX_LENGTH = 15 | ||
|
|
||
| // TnT 에서 사용자가 입력할 수 있는 이름은 한글, 영어, 공백만 허용한다. | ||
| val USER_NAME_REGEX = Regex("^[a-zA-Zㄱ-ㅎㅏ-ㅣ가-힣 ]+\$") | ||
| } | ||
9 changes: 9 additions & 0 deletions
9
domain/src/main/java/co/kr/tnt/domain/model/ProfileImageUpdatePolicy.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,9 @@ | ||
| package co.kr.tnt.domain.model | ||
|
|
||
| import java.io.File | ||
|
|
||
| sealed interface ProfileImageUpdatePolicy { | ||
| data object Keep : ProfileImageUpdatePolicy | ||
| data class Change(val newProfileImage: File) : ProfileImageUpdatePolicy | ||
| data object Remove : ProfileImageUpdatePolicy | ||
| } |
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
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.
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.
정책을 따로 분리해두니 훨씬 깔끔하고 좋네요..! 전부 적용하시느라 고생 많으셨습니다 👍
