Skip to content

[#24] refactor: DTO 의존성 제거 - #30

Merged
Kming9 merged 2 commits into
developfrom
refactor/24-service-without-request-dto
Nov 19, 2026
Merged

Kming9 merged 2 commits into
developfrom
refactor/24-service-without-request-dto

Conversation

@Kming9

@Kming9 Kming9 commented Nov 18, 2026

Copy link
Copy Markdown
Collaborator

개요

관련 Issue와 작업 목적을 간단히 작성합니다.

  • 관련 Issue: 공연 관리 #24
  • 공연 서비스가 웹 계층의 요청 DTO(PerformanceRequest)에 기대지 않도록 관심사 분리

작업 내용

주요 변경 사항을 항목별로 작성합니다.

  • 등록과 수정에서 공통으로 사용하도록 PerformanceUpdate를 PerformanceInfo로 변경
  • 공연 서비스 시그니처 변경
    • register(PerformanceRequest) → register(PerformanceInfo info, int totalQuantity)
    • update(Long, PerformanceRequest, IfMatch) → update(Long, PerformanceInfo info, int totalQuantity, IfMatch)
    • 공연 정보와 총 판매 수량을 분리해 전달하여 각각 공연과 재고를 담당하는 구조가 드러나도록 변경
  • 컨트롤러가 요청 DTO를 도메인 값으로 변환해 서비스 호출
  • Performance.create가 SalePeriod 대신 PerformanceInfo를 받도록 변경
    • 서비스에서 판매 기간(SalePeriod)을 조립하던 코드를 제거하고 Performance 내부에서 생성하도록 변경

테스트

작성한 테스트와 실행 결과를 작성합니다.

  • 공연 등록·수정 테스트 전체 통과 확인

참고 사항

리뷰어가 알아야 할 사항이나 추가 확인이 필요한 내용을 작성합니다.

@Kming9
Kming9 requested a review from roam-f-lab November 18, 2026 13:51
@Kming9 Kming9 self-assigned this Nov 18, 2026
@coderabbitai

coderabbitai Bot commented Nov 18, 2026 •

Copy link
Copy Markdown

Important

  • Trigger review

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

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: defaults
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 7b4abfa2-cc66-49c6-b1a5-56f04c6113c8
  • 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

Base automatically changed from feature/24-performance-update to develop November 19, 2026 07:42
- 서비스가 PerformanceInfo와 총 판매 수량을 따로 받아 웹 계층에 기대지 않음
- 등록도 같은 값 객체를 받도록 맞추고 판매 기간 생성을 Performance로 옮김
- 등록과 수정에 함께 쓰이도록 PerformanceUpdate를 PerformanceInfo로 이름 변경
- accept-float-as-int를 꺼서 요청값 형식 오류로 거절
- 상세 API 명세의 정수 필드 타입을 integer로 변경
@Kming9
Kming9 force-pushed the refactor/24-service-without-request-dto branch from 1e86ca3 to ef6d1d4 Compare November 19, 2026 11:30
@sonarqubecloud

Copy link
Copy Markdown

@Kming9
Kming9 requested a review from roam-f-lab November 19, 2026 11:39
@Kming9
Kming9 merged commit 4a04891 into develop Nov 19, 2026
4 checks passed
@Kming9
Kming9 deleted the refactor/24-service-without-request-dto branch November 19, 2026 15:03
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.

2 participants