refactor: DailyGoal 상세 조회 StampName 응답 → title 필드 활용으로 구조 개선(#59)#60
Merged
refactor: DailyGoal 상세 조회 StampName 응답 → title 필드 활용으로 구조 개선(#59)#60
Conversation
* refactor: DailyGoal title 필드 추가 * refactor: DailyGoalFacade.createDailyGoal() 로직 리팩토링 -> 여행 카테고리별 스탬프 이름을 추출하고 DailyGoal.title 필드로 지정하도록 리팩토링 * refactor: DailyGoalInfo 클래스에 title 필드 추가 * refactor: LoadDailyGoalDetailResponse DTO title 필드 추가 * refactor: StudyLogFacade.createStudyLog() 로직 리팩토링 -> 여행 카테고리별 스탬프 이름 추출 로직 제거, DailyGoal.title 필드를 StudyLog.title로 지정하도록 리팩토링 * refactor: DailyMission 기반 Stamp 조회 및 이름 추출 로직 제거 * test: DailyGoal title 리팩토링에 따른 테스트 수정 * test: StudyLogFacade 리팩토링에 맞춰 테스트 케이스 수정
chaiminwoo0223
approved these changes
Aug 16, 2025
Contributor
chaiminwoo0223
left a comment
There was a problem hiding this comment.
고생하셨습니다. 머지 부탁드립니다!
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
📌 작업 내용 및 특이사항
✅ DailyGoal title 필드 추가
DailyGoal엔티티에title필드를 추가했습니다.DailyGoal엔티티에title필드를 두어 관리하고DailyGoal생성 시 최초 1회만 스탬프 이름을 추출해title로 지정하도록 구조를 구성했습니다.✅ StudyLog 생성 로직 리팩토링
StudyLog엔티티를 생성할 때 여행 카테고리별 특정 스탬프의 이름을 추출해StudyLog.title필드에 저장했지만,DailyGoal엔티티에title필드를 관리하게 되면서 스탬프 이름 추출과 저장 책임은DailyGoal에 넘기고StudyLog.title에는DailyGoal.title값을 저장하도록 리팩토링했습니다.DailyMission기반 Mission 및 Stamp 조회/검증 로직, 쿼리 메서드, 에러 코드를 제거했습니다.✅ 테스트 코드 수정
DailyGoal.title리팩토링에 따라 관련 테스트 코드를 수정했습니다.StudyLog생성 로직 변경에 따라 통합/단위 테스트 및 Fixture/Helper 클래스도 수정했습니다.🌱 관련 이슈
🔍 참고사항(선택)
📚 기타(선택)