Skip to content

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

@Juser0

Description

@Juser0

📋 이슈 내용

현재 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 재구성

📚 레퍼런스

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions