Skip to content

feat: 유저 정보 조회 권한 필드 추가 - #231#232

Merged
sjk4618 merged 1 commit into
devfrom
feat/#231
Feb 1, 2026
Merged

feat: 유저 정보 조회 권한 필드 추가 - #231#232
sjk4618 merged 1 commit into
devfrom
feat/#231

Conversation

@sjk4618
Copy link
Copy Markdown
Member

@sjk4618 sjk4618 commented Feb 1, 2026

🔥Pull requests

⛳️ 작업한 브랜치

👷 작업한 내용

  • 유저 정보 조회 api 권한 필드 추가

🚨 참고 사항

@sjk4618 sjk4618 self-assigned this Feb 1, 2026
@coderabbitai
Copy link
Copy Markdown

coderabbitai Bot commented Feb 1, 2026

📝 Walkthrough

Summary by CodeRabbit

릴리스 노트

  • 새 기능
    • 사용자 정보 응답에 사용자의 역할(role) 정보가 추가되었습니다.

✏️ Tip: You can customize this high-level summary in your review settings.

Walkthrough

사용자 정보 조회 API 응답에 권한(role) 필드를 추가했습니다. UserInfoResponse 레코드에 UserRole 필드를 추가하고 관련 메서드 서명을 업데이트했습니다.

Changes

코호트 / 파일(s) 요약
사용자 정보 응답 DTO
src/main/java/com/permitseoul/permitserver/domain/user/api/dto/UserInfoResponse.java
UserRole role 필드를 레코드에 추가하고, UserRole 임포트를 추가했습니다. of() 정적 팩토리 메서드의 서명을 업데이트하여 role 매개변수를 받도록 변경하고, 반환 구문에 역시 role을 포함시켰습니다.
사용자 서비스
src/main/java/com/permitseoul/permitserver/domain/user/api/service/UserService.java
getUserInfo() 메서드에서 UserInfoResponse.of() 호출 시 user.getUserRole() 매개변수를 추가하여 업데이트된 메서드 서명에 맞추었습니다.

예상 코드 리뷰 소요 시간

🎯 2 (Simple) | ⏱️ ~10분

🚥 Pre-merge checks | ✅ 4 | ❌ 1
❌ Failed checks (1 warning)
Check name Status Explanation Resolution
Docstring Coverage ⚠️ Warning Docstring coverage is 0.00% which is insufficient. The required threshold is 80.00%. Write docstrings for the functions missing them to satisfy the coverage threshold.
✅ Passed checks (4 passed)
Check name Status Explanation
Title check ✅ Passed 제목은 권한(role) 필드를 유저 정보 조회 API에 추가하는 변경사항을 명확하게 설명하고 있습니다.
Description check ✅ Passed 설명은 유저 정보 조회 API에 권한 필드 추가라는 변경사항과 관련이 있습니다.
Linked Issues check ✅ Passed 풀 리퀘스트는 #231 이슈의 목표인 유저 정보 조회 API에 권한 필드를 추가하는 요구사항을 충족합니다.
Out of Scope Changes check ✅ Passed 모든 변경사항(UserInfoResponse에 role 필드 추가, UserService 업데이트)은 #231 이슈의 목표와 직접적으로 관련이 있습니다.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing touches
  • 📝 Generate docstrings
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Post copyable unit tests in a comment
  • Commit unit tests in branch feat/#231

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@sjk4618 sjk4618 merged commit 3135b56 into dev Feb 1, 2026
2 checks passed
@sjk4618 sjk4618 deleted the feat/#231 branch February 1, 2026 14:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

feat: 유저 정보 조회 api 권한 필드 추가

1 participant