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

Feat: "Color, Style 도메인 관련 작업 & UserProfile 수정 API 작성" #7

Merged
merged 6 commits into from
Oct 14, 2024

Conversation

milk-stone
Copy link
Contributor

@milk-stone milk-stone commented Oct 13, 2024

🔧 작업 내용

  • Color, Style, UserColor, UserStyle 도메인 내의 entity, service, repository 파일 생성 및 뼈대 작성 완료
    • Service 는 interface로 작성하고, ServiceImpl 클래스가 Service를 implements 하도록 분할함.
    • 기능은 아직 구현되어있지 않음.
  • UpdateUserProfileDto 를 이용해 마이 페이지 내역을 수정하는 API 작성
    • UserController, UserService, UserRepository 메서드 1개씩 작성
    • Color과 Style 테이블과도 잘 매핑되도록 API 작성했음.
  • DTO
    • UserInfoDto : 유저 정보를 반환할 DTO
    • UpdateUserProfileDto : 유저 개인 정보를 업데이트할 내용을 담은 DTO

## 📌 참고 사항
  • 마이페이지 정보 등록, 수정 할 때 권한을 확인하는 코드를 추가해야함.
  • Color, Style 생성은 관리자가 관리할 수 있도록 관리자 권한 전용 API를 만들지, 관리자가 직접 DB에 값을 넣을지 고민해보아야함.

## ✓ Git close

UserService interface를 UserColorServiceImpl이 구현하도록 했음.
UserStyleService interface를 UserStyleServiceImpl이 구현하도록 했음.
StyleService interface를 StyleServiceImpl이 구현하도록 했음.
accessToken 으로 user 를 잘 찾아오는지 확인하는 작업 필요함
앞서 Service class 를 Service interface와 ServiceImpl class로 분리하는 과정에서 @OverRide 어노테이션을 추가하는 것을 까먹었었음. 수정완료
@milk-stone milk-stone merged commit 3274e8f into 2024-ITEC0401:develop Oct 14, 2024
@milk-stone milk-stone deleted the feat/user branch October 14, 2024 07:02
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