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

Feature: 코드 리팩토링(#71) #73

Merged
merged 6 commits into from
Nov 15, 2024
Merged

Conversation

yooooonshine
Copy link
Member

issue

구현 의도

  • 중복 코드 제거
  • 가독성을 위한 코드 줄바꿈
  • 메서드 명 구분(of, from)

구현 사항

중복 코드 제거

image
image
Post 목록 조회에서 if, elif 문을 반복하여 메서드를 찾아 호출하고 있었다.
이 메서드들을 파라미터를 받아 Page 응답을 하는 부분이 공통적이었다.
그래서 Enum 안의 메서드로 분리하여 각 Enum Type의 메서드를 호출하게 끔 변경하였다.

🫡 참고사항

@yooooonshine yooooonshine merged commit c72bfb8 into develop Nov 15, 2024
1 check passed
@yooooonshine yooooonshine deleted the feature/71-refactor-code branch November 15, 2024 05:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Refactor: 코드 리팩토링
1 participant