Skip to content

Comments

refactor: 뽀모도로 집중 세션 개수를 요청받도록 리팩토링(#57)#58

Merged
hisonghy merged 1 commit intodevelopfrom
refactor/57
Aug 15, 2025
Merged

refactor: 뽀모도로 집중 세션 개수를 요청받도록 리팩토링(#57)#58
hisonghy merged 1 commit intodevelopfrom
refactor/57

Conversation

@hisonghy
Copy link
Contributor

@hisonghy hisonghy commented Aug 15, 2025

📌 작업 내용 및 특이사항

✅ 뽀모도로 엔티티 focusCount 필드명 수정

  • 뽀모도로의 집중 세션 개수라는 의미가 더 명확하도록 필드명을focusCount -> focusSessionCount 로 변경

✅ 뽀모도로 집중 세션 개수를 함께 요청받도록 리팩토링

  • 기존 고정된 값(1)을 지정했지만 클라이언트로부터 focusSessionCount(집중 세션 개수)도 함께 요청받아 뽀모도로 엔티티를 생성하도록 리팩토링
  • CreatePomodoroRequest DTO에 focusSessionCount 필드 추가
  • Pomodoro 엔티티를 생성하는 of() 메서드에서 focusSessionCount 필드에 고정된 값 삭제

✅ 뽀모도로 관련 응답 정보에 focusSessionCount 필드 추가

  • PomodoroInfo 클래스에 focusSessionCount 필드 추가
  • 특정 데일리 목표 상세 조회 API 응답 정보인 LoadDailyGoalDetailResponse DTO pomodoro 필드에 focusSessionCount 필드 추가

✅ 뽀모도로 집중 세션 개수 관련 테스트 코드 리팩토링 및 추가

  • PomodoroService 단위 테스트에서 뽀모도로 엔티티를 생성하는 테스트 코드 리팩토링
  • DailyGoalContorller 통합 테스트에서 뽀모도로 집중 시간, 집중 세션 개수 관련 예외 처리 테스트 코드 추가

🌱 관련 이슈


🔍 참고사항(선택)


📚 기타(선택)

* refactor: 뽀모도로 엔티티 focusCount 필드 -> focusSessionCount 변경
* refactor: 뽀모도로 엔티티 생성 시 고정된 focusSessionCount 값을 지정하지 않고 요청받은 정보로 지정하도록 리팩토링
* refactor: CreatePomodoroRequest DTO focusSessionCount 필드 추가
* refactor: PomodoroInfo 클래스에 focusSessionCount 필드 추가
* refactor: LoadDailyGoalDetailResponse DTO pomodoro 정보에 focusSessionCount 필드 추가

* test: PomodoroService 단위 테스트의 뽀모도로를 생성하는 테스트 코드 수정
* test: DailyGoalController 통합 테스트에서 뽀모도로 focusSessionCount 관련 예외 발생 테스트 코드 추가
@hisonghy hisonghy self-assigned this Aug 15, 2025
@hisonghy hisonghy added the 🪄refactor 기능 개선 및 리팩토링 label Aug 15, 2025
Copy link
Contributor

@chaiminwoo0223 chaiminwoo0223 left a comment

Choose a reason for hiding this comment

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

고생하셨습니다. 머지 부탁드려요!

@hisonghy hisonghy merged commit b698de4 into develop Aug 15, 2025
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

🪄refactor 기능 개선 및 리팩토링

Projects

None yet

Development

Successfully merging this pull request may close these issues.

🪄[REFACTOR]: 뽀모도로 집중 세션 개수를 함께 요청하도록 리팩토링

2 participants