refactor: 사용자, 게시글, 게시글 상품 해시태그 분리 작업 (#141)#142
Merged
Conversation
- HashTag -> HashtagCategory로 이름 변경 (해시태그 대분류 enum) - PostHashtag, ProductHashtag enum 클래스 추가 - Post 엔티티에서 grooming_category 필드 제거 - 게시글, 상품의 해시태그 목록을 조회하는 API 추가
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.
🌱 관련 이슈
📌 작업 내용 및 특이사항
HashTagenum을 도메인별로 분리했습니다.✅ User Hashtag
HashTagenum을HashtagCategory로 변경하고,User엔티티의favorite_hashtags필드 타입도 이에 맞춰 수정했습니다.HashtagCategory는 해시태그의 대분류 역할을 하도록 구성하고, 게시글/상품 해시태그의 기준으로 사용되도록 구성했습니다.✅ Post Hashtag
Post엔티티의grooming_category필드를 제거했습니다.-> 게시글을 작성할 때 그루밍 카테고리를 선택하지 않고 따로 사용하지 않아서 불필요하다 판단하고 필드를 삭제했습니다.
PostHashtagenum을 새로 정의하고,Post엔티티의hashtags필드 타입을 변경했습니다.-> 피그마를 참고해 작성했습니다.
-> 변경된 구조에 맞게 관련 서비스 로직도 수정했습니다.
게시글 해시태그 목록을 조회하는 API를 추가했습니다.
✅ PostProduct Hashtag
ProductHashtagenum을 새로 정의하고,PostProduct엔티티의hashtags필드 타입을 변경했습니다.-> 피그마를 참고해 작성했습니다.
-> 변경된 부분으로 인해 관련 로직들도 맞춰서 수정했습니다.
상품 해시태그 목록을 조회하는 API를 추가했습니다.
🔍 참고사항
📚 기타