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] 온보딩 부모자식 관계 정보 입력(초대하는 측) API #15

Merged
merged 5 commits into from
Jul 9, 2023

Conversation

jun02160
Copy link
Member

@jun02160 jun02160 commented Jul 9, 2023

📌 관련 이슈

close #13

✨ 어떤 이유로 변경된 내용인지

  • 초대하는 측과 받는 측의 온보딩 입력 API를 따로 분리
  • 초대코드 발급
  • 부모자식 관계 케이스 4가지 중 분류 로직
  • nullable 변경 필드 반영
  • 참조타입(Boolean) -> 원시타입(boolean)으로 변경 *Integer는 그대로 둠

🙏 검토 혹은 리뷰어에게 남기고 싶은 말

@jun02160 jun02160 added 🔥 Pull Request PR 날림 예준🍒 ✨Feat 새로운 기능 추가 🪄API 서버 API 통신 ☁️Database DB 관련 labels Jul 9, 2023
@jun02160 jun02160 requested a review from ddongseop July 9, 2023 15:12
@jun02160 jun02160 self-assigned this Jul 9, 2023
Copy link
Member

@ddongseop ddongseop left a comment

Choose a reason for hiding this comment

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

새벽까지 수고 많아써~~


private String relationInfo; // 아들 or 딸 | 아빠 or 엄마

// TODO 디폴트 값 지정해줘야 할까? -> by 디폴트 생성자
Copy link
Member

Choose a reason for hiding this comment

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

클라쪽에서 기본적으로 23시로 설정 가능하다고 함!
따라서 그냥 넘어오는 값으로 세팅해주기 :)

private String relationInfo; // 아들 or 딸 | 아빠 or 엄마

// TODO 디폴트 값 지정해줘야 할까? -> by 디폴트 생성자
@JsonFormat(pattern = "kk:mm")
Copy link
Member

Choose a reason for hiding this comment

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

한번 더 클라촉에 형식 전달했음!

Comment on lines +30 to +31
// @Column(nullable = false)
private boolean isInvitorChild;
Copy link
Member

Choose a reason for hiding this comment

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

P1: 이부분 nullable false로 바꿔도 될듯! 어짜피 이제 한번에 넘어오니까

@Column(nullable = false)
private LocalTime pushTime;
@Column(nullable = false) // TODO 푸시알림 시간 디폴트 값 없으면 nullable: true로 변경
private LocalTime pushTime; // default: 오후 11시
Copy link
Member

Choose a reason for hiding this comment

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

위에서 말한 것처럼 디폴트값 클라에서 고려해서 넘어옴!

@Slf4j
@Service
@RequiredArgsConstructor
@Transactional(readOnly = true)
Copy link
Member

Choose a reason for hiding this comment

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

readOnly=true 클래스단에 적용 굿굿

@jun02160 jun02160 merged commit bf96bda into develop Jul 9, 2023
@ddongseop ddongseop deleted the feat/#13-onboarding_parentchild_info branch August 12, 2023 16:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
예준🍒 🪄API 서버 API 통신 ☁️Database DB 관련 ✨Feat 새로운 기능 추가 🔥 Pull Request PR 날림
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[FEAT] 온보딩 부모자식 관계 정보 입력 API
2 participants