-
Notifications
You must be signed in to change notification settings - Fork 0
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
#71 [feat] 디자이너 메인 뷰 기능 구현 #88
Conversation
…into feat/#71 # Conflicts: # src/main/java/com/moddy/server/controller/designer/DesignerController.java # src/main/java/com/moddy/server/domain/hair_model_application/repository/HairModelApplicationJpaRepository.java # src/main/java/com/moddy/server/service/designer/DesignerService.java
…into feat/#71 # Conflicts: # src/main/java/com/moddy/server/common/exception/enums/SuccessCode.java # src/main/java/com/moddy/server/service/designer/DesignerService.java
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
작업하시느라 고생하셨습니다
코맨트 확인해주세요!
|
||
List<HairModelApplicationResponse> applications |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
p2
불필요한 공백은 제거해주세요
String name, | ||
int age, | ||
String imgUrl, | ||
String gender, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
p1
enum 클래스 내부에 있는 함수 때문에 Gender enum 을 그대로 사용해도 잘 들어옵니다!
@Transactional | ||
public DesignerMainResponse getDesignerMainView(Long userId, int page, int size){ | ||
//designer | ||
User user = designerJpaRepository.findById(userId).orElseThrow(() -> new NotFoundException(ErrorCode.USER_NOT_FOUND_EXCEPTION)); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
p2
혹시 Designer 말고 User로 정의한 이유가 있을까요?
Designer로 정의해도 작동할 것 같습니다!
public Integer calAge(String year){ | ||
LocalDateTime currentDateTime = LocalDateTime.now(); | ||
Integer age = currentDateTime.getYear() - Integer.parseInt(year) + 1 ; | ||
return age; | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
p2
해당 로직을 service에 만드는 것이 아닌 User class에 getAge 메서드를 만드는 것이 좋을 것 같습니다!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
좋습니다! 👍
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
확인했습니다~~! 수고하셨습니다!
…into feat/#71 # Conflicts: # src/main/java/com/moddy/server/common/exception/enums/SuccessCode.java # src/main/java/com/moddy/server/domain/model/Model.java # src/main/java/com/moddy/server/service/designer/DesignerService.java
관련 이슈번호
해결하는 데 얼마나 걸렸나요? (예상 작업 시간 / 실제 작업 시간)
해결하려는 문제가 무엇인가요?
어떻게 해결했나요?