Skip to content

[FEAT/#507] 제휴 컨텐츠 조회 API 응답에 제휴기간 필드 추가 - #508

Merged
leesumin0526 merged 1 commit into
developfrom
feat/#507-add-partnership-period-to-store-papers
Oct 13, 2026
Merged

leesumin0526 merged 1 commit into
developfrom
feat/#507-add-partnership-period-to-store-papers

Conversation

@leesumin0526

Copy link
Copy Markdown
Contributor

#️⃣연관된 이슈

close #507

📝작업 내용

GET /store/{storeId}/papers 응답의 partnershipContents 각 항목에 partnershipPeriod 필드를 추가했습니다.
클라이언트가 그대로 노출할 수 있도록 "제휴기간 2026.07.21 ~ 2026.12.31" 형태의 하나의 문자열로 내려줍니다.

🔎코드 설명(스크린샷(선택))

  • PaperContentResponseDTO에 partnershipPeriod 필드 추가, Paper.partnershipPeriodStart/End를 yyyy.MM.dd로 포맷해 제휴기간 접두사와 함께 조합합니다.
  • 시작일 또는 종료일이 없으면 null을 반환합니다.
  • StoreController Swagger 설명에 필드를 추가했습니다.
{
  "adminId": 1,
  "adminName": "IT대학 학생회",
  "paperContent": "2명 이상 방문 시 10% 할인",
  "contentId": 3,
  "goods": null,
  "people": 2,
  "cost": 0,
  "partnershipPeriod": "제휴기간 2026.07.21 ~ 2026.12.31"
}

💬고민사항 및 리뷰 요구사항 (Optional)

  • 제휴기간은 Paper 단위 정보라 최상위가 아닌 partnershipContents 항목별로 넣었습니다. (한 가게에 여러 학생회 Paper가 있으면 기간이 다를 수 있음)
  • PaperContentResponseDTO.toContentResponse는 학생 홈/백오피스 큐레이션에서도 쓰이지만 paperContent()만 사용하므로 영향 없습니다.
  • content.getPaper()는 기존에도 admin 조회 시 접근하고 있어 추가 쿼리는 없습니다.

비고 (Optional)

머지 후 main 반영용 PR을 별도로 생성합니다.

🤖 Generated with Claude Code

- PaperContentResponseDTO에 partnershipPeriod 필드 추가
- Paper 시작일/종료일을 '제휴기간 yyyy.MM.dd ~ yyyy.MM.dd' 형식 문자열로 변환
- 시작일 또는 종료일이 없으면 null 반환
- GET /store/{storeId}/papers Swagger 설명에 partnershipPeriod 추가
@coderabbitai

coderabbitai Bot commented Oct 13, 2026

Copy link
Copy Markdown

Important

  • 🔍 Trigger review

This repository does not receive automatic reviews because it has fewer than 10 stars.

⚙️ Run configuration
  • Configuration used: Repository: ASSU-dev/ASSU_BE/.coderabbit.yaml
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: bdcfcba5-5619-4dd5-b3a9-95015ce8e834
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

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.

@leesumin0526
leesumin0526 merged commit 9f009fc into develop Oct 13, 2026
2 checks passed
@leesumin0526 leesumin0526 mentioned this pull request Oct 13, 2026
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/#507] 제휴 컨텐츠 조회 API 응답에 제휴기간 필드 추가

1 participant