Skip to content

Conversation

@meltapplee
Copy link
Member

@meltapplee meltapplee commented Jun 24, 2025

스크린샷 2025-06-24 16 55 03 close #124

Summary by CodeRabbit

  • 신규 기능
    • 사용자 간단 정보(계정 ID 및 프로필 URL)를 조회하는 새로운 API가 추가되었습니다. 이제 /user 경로에서 계정 ID와 프로필 정보를 함께 확인할 수 있습니다.
  • 변경 사항
    • 기존 /user/accountId 경로는 /user로 통합되어 계정 ID만 반환하던 방식에서 계정 ID와 프로필 정보를 함께 반환하도록 변경되었습니다.
  • 삭제
    • 계정 ID만 반환하던 API 및 관련 데이터 구조가 제거되었습니다.

@meltapplee meltapplee self-assigned this Jun 24, 2025
@meltapplee meltapplee linked an issue Jun 24, 2025 that may be closed by this pull request
@coderabbitai
Copy link

coderabbitai bot commented Jun 24, 2025

"""

Walkthrough

이 변경사항은 기존의 /user/accountId 엔드포인트와 관련된 QueryAccountIdUseCaseAccountIdResponse를 제거하고, /user 엔드포인트에서 계정 ID와 프로필 URL을 반환하는 QueryUserSimpleInfoUseCaseSimpleInfoResponse를 새롭게 도입합니다.

Changes

파일/경로 변경 요약
.../presentation/UserController.kt QueryAccountIdUseCaseQueryUserSimpleInfoUseCase로 변경, 메서드 및 매핑 수정
.../presentation/dto/response/AccountIdResponse.kt AccountIdResponse DTO 삭제
.../presentation/dto/response/SimpleInfoResponse.kt SimpleInfoResponse DTO 신설
.../usecase/QueryAccountIdUseCase.kt QueryAccountIdUseCase 클래스 및 메서드 삭제
.../usecase/QueryUserSimpleInfoUseCase.kt QueryUserSimpleInfoUseCase 클래스 및 메서드 신설

Sequence Diagram(s)

sequenceDiagram
    participant Client
    participant UserController
    participant QueryUserSimpleInfoUseCase
    participant QueryUserService
    participant S3Util

    Client->>UserController: GET /user
    UserController->>QueryUserSimpleInfoUseCase: execute()
    QueryUserSimpleInfoUseCase->>QueryUserService: getCurrentUser()
    QueryUserSimpleInfoUseCase->>S3Util: generateUrl(profile)
    QueryUserSimpleInfoUseCase-->>UserController: SimpleInfoResponse(accountId, profileUrl)
    UserController-->>Client: SimpleInfoResponse(accountId, profileUrl)
Loading

Assessment against linked issues

Objective (Issue No.) Addressed Explanation
/user/account 엔드포인트를 /user로 변경 (#124)
profile 컬럼 추가 반환 (#124)

Assessment against linked issues: Out-of-scope changes

(해당 변경사항에서는 명확하게 범위를 벗어난 코드 변경이 발견되지 않았으므로 이 섹션은 생략합니다.)

Possibly related PRs

  • feat :: [#75] 아이디 반환 api #76: 기존의 QueryAccountIdUseCase/user/accountId 엔드포인트를 도입했던 PR로, 이번 PR은 해당 변경을 반대로 되돌리고 새로운 구조를 적용합니다.

Poem

🐰
새로운 길로 hop hop hop!
계정 ID와 프로필도 척척,
/user에서 간단 정보 뚝딱,
토끼는 코드에 귀 쫑긋,
변화의 봄바람 살랑살랑,
깔끔한 응답에 마음도 방긋!

"""


📜 Recent review details

Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between 85aec1c and 02d9437.

📒 Files selected for processing (1)
  • src/main/kotlin/dsm/wemeet/domain/user/presentation/UserController.kt (3 hunks)
🚧 Files skipped from review as they are similar to previous changes (1)
  • src/main/kotlin/dsm/wemeet/domain/user/presentation/UserController.kt
⏰ Context from checks skipped due to timeout of 90000ms (1)
  • GitHub Check: Check Code Quality
✨ Finishing Touches
  • 📝 Generate Docstrings

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
🪧 Tips

Chat

There are 3 ways to chat with CodeRabbit:

  • Review comments: Directly reply to a review comment made by CodeRabbit. Example:
    • I pushed a fix in commit <commit_id>, please review it.
    • Explain this complex logic.
    • Open a follow-up GitHub issue for this discussion.
  • Files and specific lines of code (under the "Files changed" tab): Tag @coderabbitai in a new review comment at the desired location with your query. Examples:
    • @coderabbitai explain this code block.
    • @coderabbitai modularize this function.
  • PR comments: Tag @coderabbitai in a new PR comment to ask questions about the PR branch. For the best results, please provide a very specific query, as very limited context is provided in this mode. Examples:
    • @coderabbitai gather interesting stats about this repository and render them as a table. Additionally, render a pie chart showing the language distribution in the codebase.
    • @coderabbitai read src/utils.ts and explain its main purpose.
    • @coderabbitai read the files in the src/scheduler package and generate a class diagram using mermaid and a README in the markdown format.
    • @coderabbitai help me debug CodeRabbit configuration file.

Support

Need help? Create a ticket on our support page for assistance with any issues or questions.

Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments.

CodeRabbit Commands (Invoked using PR comments)

  • @coderabbitai pause to pause the reviews on a PR.
  • @coderabbitai resume to resume the paused reviews.
  • @coderabbitai review to trigger an incremental review. This is useful when automatic reviews are disabled for the repository.
  • @coderabbitai full review to do a full review from scratch and review all the files again.
  • @coderabbitai summary to regenerate the summary of the PR.
  • @coderabbitai generate docstrings to generate docstrings for this PR.
  • @coderabbitai generate sequence diagram to generate a sequence diagram of the changes in this PR.
  • @coderabbitai resolve resolve all the CodeRabbit review comments.
  • @coderabbitai configuration to show the current CodeRabbit configuration for the repository.
  • @coderabbitai help to get help.

Other keywords and placeholders

  • Add @coderabbitai ignore anywhere in the PR description to prevent this PR from being reviewed.
  • Add @coderabbitai summary to generate the high-level summary at a specific location in the PR description.
  • Add @coderabbitai anywhere in the PR title to generate the title automatically.

CodeRabbit Configuration File (.coderabbit.yaml)

  • You can programmatically configure CodeRabbit by adding a .coderabbit.yaml file to the root of your repository.
  • Please see the configuration documentation for more information.
  • If your editor has YAML language server enabled, you can add the path at the top of this file to enable auto-completion and validation: # yaml-language-server: $schema=https://coderabbit.ai/integrations/schema.v2.json

Documentation and Community

  • Visit our Documentation for detailed information on how to use CodeRabbit.
  • Join our Discord Community to get help, request features, and share feedback.
  • Follow us on X/Twitter for updates and announcements.

Copy link

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

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

Actionable comments posted: 2

🧹 Nitpick comments (2)
src/main/kotlin/dsm/wemeet/domain/user/presentation/UserController.kt (2)

38-38: 생성자 파라미터명의 오타를 수정해주세요.

queyUserSimpleInfoUseCasequeryUserSimpleInfoUseCase로 수정되어야 합니다.

다음과 같이 수정하세요:

-    private val queyUserSimpleInfoUseCase: QueryUserSimpleInfoUseCase
+    private val queryUserSimpleInfoUseCase: QueryUserSimpleInfoUseCase

66-66: 메소드에서도 파라미터명 오타를 수정해주세요.

생성자 파라미터명 수정에 따라 메소드 내부에서도 동일하게 수정이 필요합니다.

다음과 같이 수정하세요:

-    fun getMySimpleInfo() = queyUserSimpleInfoUseCase.execute()
+    fun getMySimpleInfo() = queryUserSimpleInfoUseCase.execute()
📜 Review details

Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between bdddac1 and 85aec1c.

📒 Files selected for processing (5)
  • src/main/kotlin/dsm/wemeet/domain/user/presentation/UserController.kt (3 hunks)
  • src/main/kotlin/dsm/wemeet/domain/user/presentation/dto/response/AccountIdResponse.kt (0 hunks)
  • src/main/kotlin/dsm/wemeet/domain/user/presentation/dto/response/SimpleInfoResponse.kt (1 hunks)
  • src/main/kotlin/dsm/wemeet/domain/user/usecase/QueryAccountIdUseCase.kt (0 hunks)
  • src/main/kotlin/dsm/wemeet/domain/user/usecase/QueryUserSimpleInfoUseCase.kt (1 hunks)
💤 Files with no reviewable changes (2)
  • src/main/kotlin/dsm/wemeet/domain/user/presentation/dto/response/AccountIdResponse.kt
  • src/main/kotlin/dsm/wemeet/domain/user/usecase/QueryAccountIdUseCase.kt
🔇 Additional comments (6)
src/main/kotlin/dsm/wemeet/domain/user/presentation/dto/response/SimpleInfoResponse.kt (2)

3-6: 구현이 깔끔하고 적절합니다.

데이터 클래스 구조가 간단하고 명확하며, 네이밍 컨벤션도 잘 지켜졌습니다. 프로필 필드가 nullable로 설정된 것도 선택적 프로필 URL에 적합합니다.


3-6: 깔끔한 DTO 구조입니다.

간단하고 명확한 데이터 클래스 구조로, nullable profile 필드 처리도 적절합니다.

src/main/kotlin/dsm/wemeet/domain/user/usecase/QueryUserSimpleInfoUseCase.kt (2)

8-21: 잘 구성된 유스케이스 구현입니다.

의존성 주입이 올바르게 설정되어 있고, 안전한 호출 연산자(?.let)를 사용하여 nullable 프로필을 적절히 처리했습니다. 클린 아키텍처 원칙을 잘 따르고 있습니다.


14-20: 잘 구현된 유스케이스입니다.

null 안전성을 고려한 프로필 URL 생성 로직과 깔끔한 유스케이스 패턴 구현이 좋습니다.

src/main/kotlin/dsm/wemeet/domain/user/presentation/UserController.kt (2)

65-66: 엔드포인트 경로 변경이 적절합니다.

기존 /user/accountId에서 /user로 변경된 것은 더 간단하고 직관적인 구조입니다. 확장된 사용자 정보를 제공하는 새로운 유스케이스 로직도 잘 구현되었습니다.


65-66: 엔드포인트 변경이 적절합니다.

GET /user/accountId에서 GET /user로의 변경이 더 RESTful하고 직관적입니다. 메소드명도 의미에 맞게 잘 변경되었습니다.

@meltapplee meltapplee merged commit 0cbe6f9 into main Jun 25, 2025
2 checks passed
@meltapplee meltapplee deleted the feat/124-my-simple-info-api branch June 25, 2025 03:00
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.

내 정보 간단 조회 api

3 participants