Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Refactor] Friend 요소 리팩터링 #94

Open
6 tasks
Juser0 opened this issue Dec 19, 2023 · 0 comments
Open
6 tasks

[Refactor] Friend 요소 리팩터링 #94

Juser0 opened this issue Dec 19, 2023 · 0 comments
Assignees
Labels
♻️ Refactoring 코드 동작 방식 변경

Comments

@Juser0
Copy link
Member

Juser0 commented Dec 19, 2023

📋 이슈 내용

현재 Friend Entity에서 발생하는 높은 결합도 문제가 존재합니다.
Friend -> FriendResponseDto로 변환하는데 Reminder / Gift / Photo 등 여러 요소가 연관되어 값을 불러오는데 어려움이 존재합니다

이에 따라 다음과 같은 형태로 변환하려고 합니다
Friend

  • friendNo (Long, PK)
  • follower(팔로우 하는 사람 - 나, User Type - Many to One)
  • followeeNo(팔로우 되어 친구 추가된 사람 - Long)
  • friendMemo(String)

이후 Dto에서 followee -> User 가져와서 reminder / gift / photo 등 구현 예정

✅ 체크리스트

  • Friend Entity 재구성
  • RequestDto 재구성
  • ResponseDto 재구성
  • Controller 재구성
  • Service 재구성
  • Repository 재구성

📚 레퍼런스

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
♻️ Refactoring 코드 동작 방식 변경
Projects
None yet
Development

No branches or pull requests

2 participants