Skip to content

fix(#140): 내 캠페인 조회 api에서 brandId 응답 추가#331

Merged
ParkJiYeoung8297 merged 2 commits intodevfrom
fix/#140-get-my-campaign
Feb 8, 2026
Merged

fix(#140): 내 캠페인 조회 api에서 brandId 응답 추가#331
ParkJiYeoung8297 merged 2 commits intodevfrom
fix/#140-get-my-campaign

Conversation

@ParkJiYeoung8297
Copy link
Copy Markdown
Contributor

@ParkJiYeoung8297 ParkJiYeoung8297 commented Feb 8, 2026

Summary

내 캠페인 조회 api에서 brandId 응답 추가

Changes

  • 내캠페인 조회와 검색에서 brandId 응답 추가
image

Type of Change

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

Related Issues

참고 사항

@gemini-code-assist
Copy link
Copy Markdown
Contributor

Summary of Changes

Hello @ParkJiYeoung8297, 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은 '내 캠페인 조회' API의 응답에 brandId를 추가하여 클라이언트가 캠페인과 관련된 브랜드 정보를 더 쉽게 식별할 수 있도록 개선합니다. 이는 데이터 모델, 리포지토리 쿼리, 서비스 로직 및 응답 DTO 전반에 걸쳐 brandId 필드를 통합하는 변경 사항을 포함합니다.

Highlights

  • CollaborationProjection 업데이트: CollaborationProjection 레코드에 brandId 필드를 추가하여 브랜드 식별자를 포함하도록 변경되었습니다.
  • CampaignApplyRepository 쿼리 수정: CampaignApplyRepository의 JPQL 쿼리에서 brandId를 조회하여 CollaborationProjection에 매핑하도록 수정되었습니다.
  • CollaborationResponse 업데이트: CollaborationResponse 레코드에 brandId 필드를 추가하여 응답 객체에 브랜드 식별자를 포함하도록 변경되었습니다.
  • CollaborationQueryService 로직 변경: CollaborationQueryService에서 CollaborationProjection으로부터 brandId를 추출하여 CollaborationResponse 객체를 생성할 때 전달하도록 로직이 업데이트되었습니다.
Changelog
  • src/main/java/com/example/RealMatch/business/application/service/CollaborationQueryService.java
    • CollaborationResponse 생성자에 brandId 인자 추가
  • src/main/java/com/example/RealMatch/business/domain/repository/CampaignApplyRepository.java
    • CollaborationProjection 생성자에 b.id (brandId)를 포함하도록 JPQL 쿼리 수정
  • src/main/java/com/example/RealMatch/business/presentation/dto/response/CollaborationProjection.java
    • brandId 필드 추가
  • src/main/java/com/example/RealMatch/business/presentation/dto/response/CollaborationResponse.java
    • brandId 필드 추가
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
Copy Markdown
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은 내 캠페인 조회 API 응답에 brandId를 추가하는 변경 사항을 담고 있습니다. CollaborationResponseCollaborationProjection DTO에 brandId 필드가 추가되었고, CampaignApplyRepository의 쿼리가 brandId를 조회하도록 수정되었습니다. 전반적으로 올바른 방향의 수정이지만, CampaignProposalRepository에서 CollaborationProjection을 생성하는 로직이 누락되어 RECEIVEDSENT 타입의 협업에 대해서는 brandIdnull로 반환될 수 있는 문제가 있습니다. 이 부분을 수정해야 합니다.

.map(p -> new CollaborationResponse(
p.campaignId(),
p.proposalId(),
p.brandId(),
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

high

이 PR에서 CampaignApplyRepository의 쿼리는 brandId를 포함하도록 올바르게 수정되었습니다. 하지만 CampaignProposalRepositoryfindProposalCollaborationssearchProposalCollaborations 메소드에 대한 변경 사항이 누락된 것 같습니다. 이 메소드들(아마도 CampaignProposalRepositoryCustomImpl에 구현되어 있을 것입니다)도 brandId를 조회하여 CollaborationProjection에 채워주도록 수정해야 합니다. 그렇지 않으면 RECEIVEDSENT 타입의 협업에 대해 brandIdnull이 될 것입니다.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

오키 추가함

@ParkJiYeoung8297 ParkJiYeoung8297 merged commit fdf7e1c into dev Feb 8, 2026
1 check passed
@ParkJiYeoung8297 ParkJiYeoung8297 deleted the fix/#140-get-my-campaign branch February 8, 2026 15:57
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