-
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
#264 [feat]지원서 상세보기 applicationInfo 에 등록일, 만료일 추가 #265
Conversation
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.
작업하시느라 고생하셨습니다!
코맨트 확인해주세요!
hairModelApplication.getCreateDate().format(DateTimeFormatter.ofPattern("yyyy. MM. dd.")), | ||
hairModelApplication.getExpireDate().format(DateTimeFormatter.ofPattern("yyyy. MM. dd."))); |
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
"yyyy. MM. dd." 이 부분을 상수로 만들어서 재사용한다면, 이후 형식이 바뀌었을 때 수정하기 더 용이해질 것 같습니다!
public LocalDate getCreateDate(){ | ||
LocalDate createDate = getCreatedAt().toLocalDate(); | ||
return createDate; | ||
} | ||
public LocalDate getExpireDate(){ | ||
LocalDate expiredDate = getCreatedAt().plusDays(7).toLocalDate(); | ||
return expiredDate; |
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.
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."; |
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
보통 자바에서 상수를 만들 때는 UPPER_SNAKE_CASE 형식을 자주 사용하며
private final이 아닌 private static final 을 통해 정의하곤 합니다.
수정을 하면서 final과 static final 에 대해서 알아보면 좋을 것 같습니다!
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.
작업하시느라 고생하셨습니다 ~ ! 👍
String createDate, | ||
String expireDate | ||
) { |
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.
p3
해당 속성 명도 ed를 붙인 뒤, 노션 api 도 수정하면 좋을 거 같습니다..!
관련 이슈번호
해결하는 데 얼마나 걸렸나요? (예상 작업 시간 / 실제 작업 시간)
해결하려는 문제가 무엇인가요?
어떻게 해결했나요?
applicationInfo 객체 끝에 createDate, expireDate 추가했습니다