Skip to content

Conversation

@leebs0521
Copy link
Collaborator

resolved :

📌 과제 설명

  • 기관 선호 물품 리팩토링

👩‍💻 요구 사항과 구현 내용

  • 기관 선호 물품 추가 / 삭제 리팩토링

✅ PR 포인트 & 궁금한 점

@leebs0521 leebs0521 self-assigned this Feb 6, 2025
@leebs0521 leebs0521 linked an issue Feb 6, 2025 that may be closed by this pull request
1 task
@sonarqubecloud
Copy link

sonarqubecloud bot commented Feb 6, 2025

Copy link
Collaborator

@m-a-king m-a-king left a comment

Choose a reason for hiding this comment

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

수고하셨습니다!


centerQueryUseCase.validateCenterExists(centerId);

PreferItem preferItem = requestDto.toEntity(centerId);
Copy link
Collaborator

Choose a reason for hiding this comment

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

dto.toEntity와 entity.from, entity.of를 구분하는 기준이 있으신가요?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

이거 서진님이 작성하신 코드긴한데

저는 RequestDto -> Entity 는 무조건 Dto.toEntity를 사용하고
Entity -> ResponseDto 는 파라미터 개수에 따라 1개 from 2개이상 of를 사용하는 편이긴합니다.

Copy link
Collaborator

@ayoung-dev ayoung-dev left a comment

Choose a reason for hiding this comment

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

고생하셨습니다!

@leebs0521 leebs0521 merged commit 422b29c into main Feb 6, 2025
3 checks passed
@leebs0521 leebs0521 deleted the refactor/360-modify-center-preferitem branch February 6, 2025 08:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[REFACTOR] 기관 선호 물품 리팩토링

4 participants