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: 공통 응답 분기 Advice #10

Merged
merged 5 commits into from
Jul 5, 2024
Merged

Refactor: 공통 응답 분기 Advice #10

merged 5 commits into from
Jul 5, 2024

Conversation

loveysuby
Copy link
Contributor

🚀 Related Issue

close: #6

📌 Tasks

  • ApiResponse 에서 다발적으로 사용된 success, error 함수를 사용하지 않고도 응답 형식을 분기할 수 있도록 개선합니다.
  • ApiResponse<Object> 형태의 봉투 패턴 대신 ResponseBodyAdvice 구현체로 분리하여 별도의 DTO를 만들어도 동일한 형식으로 매핑됩니다.

📝 Details

  • pageInfo 필드를 공통 형식에서 제거하고, 필요한 경우에만 PageInfoResponse를 DTO에서 쓰도록 수정했는데, 이 부분이 이후 사용에서도 좋은 구조일지 의견을 구합니다.

📚 Remarks

Points or opinions to share teams

@loveysuby loveysuby requested a review from woosung1223 July 5, 2024 16:27
@loveysuby loveysuby merged commit 3cb2e6a into develop Jul 5, 2024
1 check passed
@woosung1223 woosung1223 deleted the feat/6 branch July 7, 2024 05:06
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.

1 participant