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] 돈길 컨트롤러 레이어 분리 리팩토링 #232

Closed
2 tasks done
sanbonai06 opened this issue Sep 19, 2022 · 0 comments
Closed
2 tasks done

[REFACTOR] 돈길 컨트롤러 레이어 분리 리팩토링 #232

sanbonai06 opened this issue Sep 19, 2022 · 0 comments
Assignees
Labels
For: API [이슈 대상] 외부 API Type: Refactor [이슈 목적] 프로덕션 코드 리팩토링

Comments

@sanbonai06
Copy link
Member

sanbonai06 commented Sep 19, 2022

🤖 기능 개요

  • 컨트롤러 레이어가 너무 무거워짐에 따라 실 컨트롤러는 응답 처리에 관한 로직만 담당하도록 리팩토링
  • 컨트롤러와 서비스 레이어를 연결해주는 Mapper 레이어를 도입하여 여러 서비스를 묶어주는 (현재의 컨트롤러 역할) 역할 담당
  • 컨트롤러 레이어는 Http 메서드 명을 따라감 (get, post, patch, put, delete)
  • 매퍼 레이어와 서비스 레이어는 crud 명을 따라감 (create, update, read, delete)
  • 매핑 DTO 정리

✅ Implement TODO

  • 응답 처리만을 담당하는 새로운 컨트롤러 레이어 도입
  • 현 컨트롤러를 Mapper로 명명

📚 Remarks

https://appleg1226.tistory.com/56

@sanbonai06 sanbonai06 added For: API [이슈 대상] 외부 API Type: Refactor [이슈 목적] 프로덕션 코드 리팩토링 labels Sep 19, 2022
@sanbonai06 sanbonai06 added this to the 코드 리팩토링 milestone Sep 19, 2022
@sanbonai06 sanbonai06 self-assigned this Sep 19, 2022
sanbonai06 added a commit that referenced this issue Sep 20, 2022
sanbonai06 added a commit that referenced this issue Sep 20, 2022

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
refactor: 파사드 패턴을 이용하여 돈길 관련 Mapper 레이어로 리팩토링 #232
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
For: API [이슈 대상] 외부 API Type: Refactor [이슈 목적] 프로덕션 코드 리팩토링
Projects
None yet
Development

No branches or pull requests

1 participant