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

#264 [feat]지원서 상세보기 applicationInfo 에 등록일, 만료일 추가 #265

Merged
merged 6 commits into from
Mar 2, 2024

Conversation

pkl0912
Copy link
Contributor

@pkl0912 pkl0912 commented Feb 29, 2024

관련 이슈번호

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

  • 1h

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

  • 등록일, 민료일 추가

어떻게 해결했나요?

image
applicationInfo 객체 끝에 createDate, expireDate 추가했습니다

@pkl0912 pkl0912 added the feat label Feb 29, 2024
@pkl0912 pkl0912 self-assigned this Feb 29, 2024
@pkl0912 pkl0912 changed the title #264 [feat] applicationInfo 에 등록일, 만료일 추가 #264 [feat]지원서 상세보기 applicationInfo 에 등록일, 만료일 추가 Feb 29, 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 101 to 102
hairModelApplication.getCreateDate().format(DateTimeFormatter.ofPattern("yyyy. MM. dd.")),
hairModelApplication.getExpireDate().format(DateTimeFormatter.ofPattern("yyyy. MM. dd.")));
Copy link
Member

Choose a reason for hiding this comment

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

p2
"yyyy. MM. dd." 이 부분을 상수로 만들어서 재사용한다면, 이후 형식이 바뀌었을 때 수정하기 더 용이해질 것 같습니다!

Comment on lines 52 to 58
public LocalDate getCreateDate(){
LocalDate createDate = getCreatedAt().toLocalDate();
return createDate;
}
public LocalDate getExpireDate(){
LocalDate expiredDate = getCreatedAt().plusDays(7).toLocalDate();
return expiredDate;
Copy link
Member

Choose a reason for hiding this comment

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

p4
함수명 과 변수명에 ed 를 붙이면 좋을 것 같습니다..!

@@ -43,6 +42,7 @@ public class HairModelApplicationRetrieveService {
private final S3Service s3Service;
private final PreferHairStyleJpaRepository preferHairStyleJpaRepository;
private final HairServiceRecordJpaRepository hairServiceRecordJpaRepository;
private final String dateFormat = "yyyy. MM. dd.";
Copy link
Member

Choose a reason for hiding this comment

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

p2
보통 자바에서 상수를 만들 때는 UPPER_SNAKE_CASE 형식을 자주 사용하며
private final이 아닌 private static final 을 통해 정의하곤 합니다.
수정을 하면서 final과 static final 에 대해서 알아보면 좋을 것 같습니다!

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 15 to 17
String createDate,
String expireDate
) {
Copy link
Member

Choose a reason for hiding this comment

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

p3
해당 속성 명도 ed를 붙인 뒤, 노션 api 도 수정하면 좋을 거 같습니다..!

@pkl0912 pkl0912 merged commit 1cf81d8 into develop Mar 2, 2024
1 check passed
@pkl0912 pkl0912 deleted the feat/#264 branch March 2, 2024 07:28
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] 지원서 detail 조회 시 등록일 / 만료일 response 추가
2 participants