Skip to content

[Feat/#20] - 사용자 공개 프로필 조회, 닉네임 수정 기능 구현#21

Merged
ttttkii913 merged 4 commits into
developfrom
feature/mypage-profile
May 13, 2026
Merged

[Feat/#20] - 사용자 공개 프로필 조회, 닉네임 수정 기능 구현#21
ttttkii913 merged 4 commits into
developfrom
feature/mypage-profile

Conversation

@ttttkii913
Copy link
Copy Markdown
Contributor

@ttttkii913 ttttkii913 commented May 7, 2026

💻 관련 이슈

관련된 이슈 번호를 적어주세요.

✨ 작업 내용

이번 PR에서 작업한 내용을 간단하게 적어주세요.

  • 사용자 API 분리: user, profile
  • 사용자 공개 프로필 조회, 닉네임 수정 기능

📄 상세 내용

작업의 상세 설명, 고려한 부분, 코드 구조 등에 대해 설명해 주세요.

  • 피그마 수정 사항 반영하여 api 추가
  • 사용자 공개 프로필에는 실명, 한 줄 소개, 이미지만 리턴 / userId 파라미터로 구분
  • 닉네임 수정 api는 기존 수정 api와 별개로 마이페이지에서 수정 하는 걸로 추가

📷 스크린샷

관련된 스크린샷이 있다면 첨부해 주세요.

image
  • 기존 수정 api에서 nickname으로 되어있던 걸 username(실명)으로 변경하였습니다

✅ 체크리스트

PR을 보내기 전에 아래 항목들을 확인해 주세요.

  • 코드 컨벤션 준수
  • 빌드 성공
  • 로직 자체 테스트 완료
  • 불필요한 파일/코드 제거(개행 정리)
  • 이슈 번호 연결 확인
  • EOL(End Of Line) 확인

❕리뷰 요구 사항

리뷰어가 특별히 봐주었으면 하는 부분이 있다면 작성해 주세요.

  • 피그마와 다른 부분이나 잘 되는지 확인 부탁드립니다 ~~

@ttttkii913 ttttkii913 self-assigned this May 7, 2026
@ttttkii913 ttttkii913 added the ✨feature 구현, 개선 사항 관련 부분 label May 7, 2026
Copy link
Copy Markdown

@gemini-code-assist gemini-code-assist Bot left a comment

Choose a reason for hiding this comment

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

Code Review

This pull request refactors user management by separating account-related actions from profile-related actions. It introduces a new UserProfileController and UserProfileService to handle profile viewing and updates, while UserController is now focused on account settings like nickname updates. Key changes include renaming fields in DTOs, adding new response/request objects, and updating the User entity. Feedback focuses on improving API consistency by consolidating profile endpoints, removing redundant validation annotations in the service layer, and refactoring duplicated logic for user retrieval and ID parsing.

Comment thread SossBar/src/main/java/com/sossbar/user/service/UserService.java Outdated
Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com>
@goodispotato
Copy link
Copy Markdown
Contributor

username이랑 nickname 두 필드가 각각 어떤 역할인지 궁금합니다! 피그마 확인해 보니 처음에 실명으로 회원가입을 진행하고, 후에 닉네임(실명)을 수정하는 방식 같은데 그럼 둘 중 하나만 있어도 괜찮지 않을까 해서요...! 혹시 nickname이 카카오 로그인을 할 때 가져오는 값을 저장하는 필드인 걸까요? PATCH/nickname은 nickname 필드를, PATCH/profile은 username/bio/프로필이미지를 각각 수정하는 걸로 이해했는데, 피그마에서 두 API가 각각 어느 화면에서 호출되는지 궁금합니다.

@ttttkii913
Copy link
Copy Markdown
Contributor Author

ttttkii913 commented May 12, 2026

혹시 nickname이 카카오 로그인을 할 때 가져오는 값을 저장하는 필드인 걸까요?

넵 맞습니다! username은 사용자가 제출하는 실명, nickname은 기존 카카오 로그인 사용자 닉네임입니다.

재희님 피드백 보고 피그마 다시 보니 굳이 nickname이 들어갈 필요가 없는 것 같네요.. 사용자가 제출하는 실명인 username만 있는 것이 깔끔할 것 같아요 수정하겠습니다 피드백 감사해요 !!! ☺️👍👍

nickname 필드 삭제, OnBoardingReqDto 삭제 및 InfoUpdateReqDto로 통합
@ttttkii913
Copy link
Copy Markdown
Contributor Author

ttttkii913 commented May 12, 2026

회의 후 수정 사항

  1. nickname 삭제 및 username만 사용
  2. PATCH /nickname API 삭제
  3. username(실명) 입력 시 실명만 입력해 주세요. valid 메세지 추가
  4. UserOnboardingReqDto 삭제 -> UserInfoUpdateReqDto로 통합

@goodispotato
Copy link
Copy Markdown
Contributor

goodispotato commented May 13, 2026

스크린샷 2026-05-13 151942 스크린샷 2026-05-13 151703

내 프로필 수정, 사용자 공개 프로필 조회 모두 잘 작동합니다!! 수고 많으셨습니다!!!!!

@ttttkii913 ttttkii913 merged commit b40d68f into develop May 13, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

✨feature 구현, 개선 사항 관련 부분

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants