Skip to content

Comments

fix(#385): 캠페인 제안에 캠페인 id 추가#386

Merged
ParkJiYeoung8297 merged 1 commit intodevfrom
fix/#385-add-campaign-id
Feb 11, 2026
Merged

fix(#385): 캠페인 제안에 캠페인 id 추가#386
ParkJiYeoung8297 merged 1 commit intodevfrom
fix/#385-add-campaign-id

Conversation

@ParkJiYeoung8297
Copy link
Contributor

@ParkJiYeoung8297 ParkJiYeoung8297 commented Feb 11, 2026

Summary

fix(#385): 캠페인 제안에 캠페인 id 추가

Changes

캠페인 id와 캠페인 이름이 추가되었습니다.

image

Type of Change

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

Related Issues

#385

참고 사항

@gemini-code-assist
Copy link
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은 캠페인 제안 상세 응답에 관련 캠페인 정보를 포함하도록 개선합니다. 기존 캠페인 제안과 신규 캠페인 제안을 구분하고, 클라이언트가 적절한 제목 필드를 사용할 수 있도록 campaignIdcampaignName 필드를 추가했습니다. 또한, API 사용자가 이 변경 사항을 올바르게 활용할 수 있도록 Swagger 문서도 업데이트했습니다.

Highlights

  • 캠페인 제안 상세 응답 개선: 캠페인 제안 상세 응답 DTO에 관련 캠페인의 ID와 이름을 추가했습니다.
  • 응답 필드 로직 업데이트: CampaignProposalDetailResponsefrom 팩토리 메서드를 수정하여 CampaignProposal 엔티티에서 캠페인 정보를 추출하고 새로운 필드를 채우도록 했습니다.
  • Swagger 문서 업데이트: 캠페인 제안 상세 조회 API의 Swagger 문서에 campaignIdcampaignName 필드의 사용 지침을 추가하여 클라이언트가 기존 제안과 신규 제안을 구분하고 적절한 제목 필드를 사용하도록 안내했습니다.
Changelog
  • src/main/java/com/example/RealMatch/business/presentation/dto/response/CampaignProposalDetailResponse.java
    • 새로운 Campaign 엔티티를 임포트했습니다.
    • proposalId 아래에 campaignIdcampaignName 필드를 추가했습니다.
    • from 정적 메서드에서 CampaignProposalCampaign 정보를 사용하여 campaignIdcampaignName 필드를 조건부로 채우도록 수정했습니다.
  • src/main/java/com/example/RealMatch/business/presentation/swagger/CampaignProposalSwagger.java
    • modifyCampaignProposal API의 @Operation 설명에 캠페인 제안 유형에 따른 campaignId, campaignName, title 필드 사용 지침을 추가했습니다.
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

캠페인 제안 상세 조회 응답에 campaignIdcampaignName을 추가하는 변경 사항을 확인했습니다. CampaignProposalDetailResponse에 새로운 필드를 추가하고, from 정적 팩토리 메서드에서 Campaign 객체가 null일 경우를 적절히 처리하여 값을 설정하는 로직이 올바르게 구현되었습니다. 또한, Swagger 문서도 업데이트하여 API 사용자가 새로운 필드를 어떻게 사용해야 하는지 명확히 알 수 있도록 했습니다. 전반적으로 좋은 수정입니다. 다만, Swagger 문서에 불필요한 후행 공백이 있어 수정을 제안하는 리뷰 코멘트를 남겼습니다.

Comment on lines +142 to +143
* 기존 캠페인 제안일 경우 campaignId와 campaignName 값이 있습니다. 제목을 campaignName을 사용해주세요.
* 신규 캠페인 제안일 경우 campaignId와 campaignName 값이 null 입니다. 제목을 title을 사용해주세요.
Copy link
Contributor

Choose a reason for hiding this comment

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

medium

API 문서 설명에 불필요한 후행 공백이 포함되어 있습니다. 코드 스타일을 일관성 있게 유지하고 가독성을 높이기 위해 제거하는 것이 좋습니다.

Suggested change
* 기존 캠페인 제안일 경우 campaignId와 campaignName 값이 있습니다. 제목을 campaignName을 사용해주세요.
* 신규 캠페인 제안일 경우 campaignId와 campaignName 값이 null 입니다. 제목을 title을 사용해주세요.
* 기존 캠페인 제안일 경우 campaignId와 campaignName 값이 있습니다. 제목을 campaignName을 사용해주세요.
* 신규 캠페인 제안일 경우 campaignId와 campaignName 값이 null 입니다. 제목을 title을 사용해주세요.

@ParkJiYeoung8297 ParkJiYeoung8297 self-assigned this Feb 11, 2026
@ParkJiYeoung8297 ParkJiYeoung8297 merged commit 3f72823 into dev Feb 11, 2026
1 check passed
@ParkJiYeoung8297 ParkJiYeoung8297 deleted the fix/#385-add-campaign-id branch February 11, 2026 20:08
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