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

[BE/FEAT] 민감 정보 동의 여부 받기 #619

Merged
merged 9 commits into from
Jan 11, 2025
Merged

Conversation

hwangdaesun
Copy link
Collaborator

📌관련 이슈

#618

🔑 주요 변경사항

  • 회원 가입 API에 민감 정보 동의 추가
  • 민감 정보 동의 여부 조회 API 추가
  • 민감 정보 동의 여부 수정 API 추가 (민감 정보는 필수 동의 항목이기 때문에 무조건 true만 가능해 예외 처리 수행)

Copy link

github-actions bot commented Jan 9, 2025

Overall Project 65.43% -0.95%
Files changed 34.21%

File Coverage
CreateMemberService.java 100% 🍏
SignUpMemberRequest.java 86.79% 🍏
AgreementEntity.java 75.32% -5.06%
UpdateAgreementController.java 34.78% -21.74%
GetAgreementController.java 23.26% -25.58%
AgreeSensitiveDataService.java 23.08% -76.92%
AgreePrivacyPolicyService.java 23.08% -11.54%
GetSensitiveDataAgreeResponse.java 0%
AgreeSensitiveDataRequest.java 0%

@hwangdaesun hwangdaesun requested a review from LJH098 January 9, 2025 08:51
@hwangdaesun hwangdaesun self-assigned this Jan 9, 2025
@hwangdaesun hwangdaesun added this to the BE_daesun milestone Jan 9, 2025
Comment on lines 45 to 50
@Column(
name = ENTITY_PREFIX + "_IS_SENSITIVE_DATA_AGREE",
columnDefinition = "tinyint",
nullable = false)
private Boolean isSensitiveDataAgree = true;

Copy link
Collaborator

Choose a reason for hiding this comment

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

private Boolean isSensitiveDataAgree = true;
이렇게 한게 기본값으로 true가 되게 하려고 한건가요?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

애초에 기본값을 true 설정할 필요가 없었네요. 저 true 제거해야할 거 같네요.
@Builder.Default를 추가하고 private Boolean isSensitiveDataAgree = true; 이렇게 해놔야 Builder를 통해 객체 생성 시 자동으로 true로 설정되는 걸로 알고있습니다.

Copy link
Collaborator

Choose a reason for hiding this comment

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

@hwangdaesun
그러면 AgreementEntity의 나머지 필드에 = true 되있는것도 @Builder.Default가 없으니 무용지물 아닌가요?? 지워도 될 것 같은데

Copy link
Collaborator Author

@hwangdaesun hwangdaesun Jan 9, 2025

Choose a reason for hiding this comment

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

@LJH098 6cc187b 반영했습니당

Copy link

github-actions bot commented Jan 9, 2025

Overall Project 65.43% -0.91%
Files changed 35.14%

File Coverage
CreateMemberService.java 100% 🍏
SignUpMemberRequest.java 86.79% 🍏
AgreementEntity.java 75.32% -5.06%
UpdateAgreementController.java 34.78% -21.74%
GetAgreementController.java 23.26% -25.58%
AgreeSensitiveDataService.java 23.08% -76.92%
GetSensitiveDataAgreeResponse.java 0%
AgreeSensitiveDataRequest.java 0%

Copy link

github-actions bot commented Jan 9, 2025

Overall Project 65.3% -1.03%
Files changed 28.95%

File Coverage
CreateMemberService.java 100% 🍏
SignUpMemberRequest.java 86.79% 🍏
AgreementEntity.java 69.77% -13.18%
UpdateAgreementController.java 34.78% -21.74%
GetAgreementController.java 23.26% -25.58%
AgreeSensitiveDataService.java 23.08% -76.92%
GetSensitiveDataAgreeResponse.java 0%
AgreeSensitiveDataRequest.java 0%

@hwangdaesun hwangdaesun merged commit 785f25e into develop Jan 11, 2025
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants