Skip to content

Comments

fix(#392): FE와 BE 연동에서 채팅에 필요한 ID값 조회되도록 수정#395

Merged
Yoonchulchung merged 3 commits intodevfrom
fix/392-brand-api
Feb 12, 2026
Merged

fix(#392): FE와 BE 연동에서 채팅에 필요한 ID값 조회되도록 수정#395
Yoonchulchung merged 3 commits intodevfrom
fix/392-brand-api

Conversation

@Yoonchulchung
Copy link
Member

Summary

FE와 BE 연동에서 채팅에 필요한 ID값 조회되도록 수정

Changes

  • FE와 BE 연동에서 채팅에 필요한 ID값 조회되도록 수정

Type of Change

  • Bug fix (기존 기능에 영향을 주지 않는 버그 수정)
  • New feature (기존 기능에 영향을 주지 않는 새로운 기능 추가)
  • Breaking change (기존 기능에 영향을 주는 수정)
  • Refactoring (기능 변경 없는 코드 개선)
  • Documentation (문서 수정)
  • Chore (빌드, 설정 등 기타 변경)
  • Release (develop → main 배포)

Related Issues

#392

@gemini-code-assist
Copy link
Contributor

Summary of Changes

Hello @Yoonchulchung, I'm Gemini Code Assist1! I'm currently reviewing this pull request and will post my feedback shortly. In the meantime, here's a summary to help you and other reviewers quickly get up to speed!

이 PR은 프론트엔드와 백엔드 연동 시 채팅 기능에 필요한 브랜드 소유자의 사용자 ID를 조회하고 전달할 수 있도록 시스템을 개선합니다. 기존에는 브랜드 ID만 제공되었으나, 이제 브랜드 소유자의 사용자 ID를 다양한 응답 DTO에 포함시켜 클라이언트가 채팅을 시작하는 데 필요한 정보를 확보할 수 있도록 데이터 흐름을 확장했습니다.

Highlights

  • 브랜드 소유자 ID 추가: BrandDetailResponseDtobrandUserId 필드를 추가하여 브랜드 상세 정보 조회 시 브랜드 소유자의 사용자 ID를 포함하도록 변경했습니다.
  • 협업 DTO 업데이트: 협업 관련 DTO인 CollaborationProjectionCollaborationResponsebrandUserId 필드를 추가하여 협업 정보 조회 시 브랜드 소유자의 사용자 ID를 함께 전달하도록 했습니다.
  • 서비스 로직 수정: BrandService에서 BrandDetailResponseDto를 생성할 때 브랜드 소유자의 사용자 ID를 설정하도록 로직을 수정했으며, CollaborationQueryService의 여러 메서드에서 CollaborationResponse를 구성할 때 brandUserId를 포함하도록 업데이트했습니다.
  • 쿼리 로직 개선: CampaignApplyRepositoryCampaignProposalRepositoryImpl의 쿼리에서 브랜드 소유자의 사용자 ID를 조회하여 CollaborationProjection에 매핑하도록 수정했습니다.
Changelog
  • src/main/java/com/example/RealMatch/brand/application/service/BrandService.java
    • BrandDetailResponseDto 빌더에 brandUserId를 추가했습니다.
  • src/main/java/com/example/RealMatch/brand/presentation/dto/response/BrandDetailResponseDto.java
    • brandUserId 필드를 추가했습니다.
  • src/main/java/com/example/RealMatch/business/application/service/CollaborationQueryService.java
    • getAppliedCampaign, getReceivedProposal, getSentProposal, searchMyCollaborations 메서드에서 CollaborationResponsebrandUserId를 포함하도록 수정했습니다.
  • src/main/java/com/example/RealMatch/business/domain/repository/CampaignApplyRepository.java
    • findMyAppliedCollaborations 쿼리에 b.user.id를 추가하여 brandUserId를 조회하도록 변경했습니다.
  • src/main/java/com/example/RealMatch/business/domain/repository/CampaignProposalRepositoryImpl.java
    • baseProposalQuery 쿼리에 brand.user.id를 추가하여 brandUserId를 조회하도록 변경했습니다.
  • src/main/java/com/example/RealMatch/business/presentation/dto/response/CollaborationProjection.java
    • brandUserId 필드를 추가했습니다.
  • src/main/java/com/example/RealMatch/business/presentation/dto/response/CollaborationResponse.java
    • brandUserId 필드를 추가했습니다.
Activity
  • 제공된 정보에 따르면, 이 PR에 대한 추가적인 활동(댓글, 리뷰 등)은 없습니다.
Using Gemini Code Assist

The full guide for Gemini Code Assist can be found on our documentation page, here are some quick tips.

Invoking Gemini

You can request assistance from Gemini at any point by creating a comment using either /gemini <command> or @gemini-code-assist <command>. Below is a summary of the supported commands on the current page.

Feature Command Description
Code Review /gemini review Performs a code review for the current pull request in its current state.
Pull Request Summary /gemini summary Provides a summary of the current pull request in its current state.
Comment @gemini-code-assist Responds in comments when explicitly tagged, both in pull request comments and review comments.
Help /gemini help Displays a list of available commands.

Customization

To customize Gemini Code Assist for GitHub experience, repository maintainers can create a configuration file and/or provide a custom code review style guide (such as PEP-8 for Python) by creating and adding files to a .gemini/ folder in the base of the repository. Detailed instructions can be found here.

Limitations & Feedback

Gemini Code Assist may make mistakes. Please leave feedback on any instances where its feedback is incorrect or counter productive. You can react with 👍 and 👎 on @gemini-code-assist comments. If you're interested in giving your feedback about your experience with Gemini Code Assist for Github and other Google products, sign up here.

You can also get AI-powered code generation, chat, as well as code reviews directly in the IDE at no cost with the Gemini Code Assist IDE Extension.

Footnotes

  1. Review the Privacy Notices, Generative AI Prohibited Use Policy, Terms of Service, and learn how to configure Gemini Code Assist in GitHub here. Gemini can make mistakes, so double check it and use code with caution.

Copy link
Contributor

@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

이번 PR은 채팅 기능에 필요한 brandUserId를 응답에 추가하는 수정이네요. 전반적으로 잘 적용되었지만, BrandDetailResponseDto에서 brandUserId의 타입이 다른 DTO와 일관되지 않은 점을 발견했습니다. 이를 Long 타입으로 통일하여 API의 일관성과 유지보수성을 높이는 방향으로 수정을 제안했습니다. 관련하여 두 파일에 코멘트를 남겼습니다.

I am having trouble creating individual review comments. Click here to see my feedback.

src/main/java/com/example/RealMatch/brand/application/service/BrandService.java (109)

medium

BrandDetailResponseDtobrandUserId 타입을 Long으로 변경하는 제안에 맞춰, 여기서 String.valueOf() 호출을 제거해야 합니다. 이렇게 하면 타입이 일관되게 유지됩니다.

                .brandUserId(brand.getUser().getId())

src/main/java/com/example/RealMatch/brand/presentation/dto/response/BrandDetailResponseDto.java (13)

medium

일관성을 위해 brandUserId 필드의 타입을 Long으로 변경하는 것을 제안합니다. 다른 DTO (예: CollaborationProjection, CollaborationResponse)에서는 brandUserIdLong 타입으로 사용되고 있습니다. API 전체에서 동일한 데이터 유형을 사용하면 혼동을 줄이고 유지보수성을 향상시킬 수 있습니다.

    private Long brandUserId;

@Yoonchulchung Yoonchulchung merged commit f9872fd into dev Feb 12, 2026
1 check passed
@Yoonchulchung Yoonchulchung deleted the fix/392-brand-api branch February 12, 2026 11:21
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.

1 participant