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

#71 [feat] 디자이너 메인 뷰 기능 구현 #88

Merged
merged 16 commits into from
Jan 10, 2024
Merged

#71 [feat] 디자이너 메인 뷰 기능 구현 #88

merged 16 commits into from
Jan 10, 2024

Conversation

pkl0912
Copy link
Contributor

@pkl0912 pkl0912 commented Jan 10, 2024

관련 이슈번호

해결하는 데 얼마나 걸렸나요? (예상 작업 시간 / 실제 작업 시간)

  • 4~5h

해결하려는 문제가 무엇인가요?

  • 디자이너 메인 뷰 기능 구현 및 페이지 처리

어떻게 해결했나요?

  • 지원서들을 모두 가져와서 띄워줌
  • 나이 계산 로직 추가

pkl0912 added 9 commits January 10, 2024 15:27
…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
@pkl0912 pkl0912 added the feat label Jan 10, 2024
@pkl0912 pkl0912 self-assigned this Jan 10, 2024
Copy link
Member

@KWY0218 KWY0218 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

작업하시느라 고생하셨습니다
코맨트 확인해주세요!

Comment on lines 12 to 13

List<HairModelApplicationResponse> applications
Copy link
Member

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,
Copy link
Member

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));
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

p2
혹시 Designer 말고 User로 정의한 이유가 있을까요?
Designer로 정의해도 작동할 것 같습니다!

Comment on lines 24 to 28
public Integer calAge(String year){
LocalDateTime currentDateTime = LocalDateTime.now();
Integer age = currentDateTime.getYear() - Integer.parseInt(year) + 1 ;
return age;
}
Copy link
Member

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 메서드를 만드는 것이 좋을 것 같습니다!

Copy link
Member

@KWY0218 KWY0218 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

좋습니다! 👍

Copy link
Member

@hellozo0 hellozo0 left a 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
@pkl0912 pkl0912 merged commit 3bca7e4 into develop Jan 10, 2024
1 check passed
@pkl0912 pkl0912 deleted the feat/#71 branch January 10, 2024 18:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[feat] 디자이너 메인뷰 구현
3 participants