"refactor: 회원 데이터 구조 변경 (age → birthDate) 및 약관 동의 추가#27
Open
"refactor: 회원 데이터 구조 변경 (age → birthDate) 및 약관 동의 추가#27
Conversation
- Member 엔티티 age 필드 제거, birthDate(String) 필드 추가 - 약관 동의 필드 추가 (termsAgreed, marketingAgreed) - 모든 DTO 및 Service 레이어 age → birthDate 전환 - JWT Claims에 age 대신 birthDate 저장 - 본인인증 로직에서 나이 계산 로직 제거 - 테스트 백도어 API 추가 (GET /debug/test-token) - CORS 설정에 Vercel 도메인 추가 Breaking Changes: - 회원가입/로그인 API Request/Response 형식 변경 - 기존 JWT 토큰과 호환 불가 (재로그인 필요)"
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
🔍 PR 타입 선택
refactor: 코드 리팩토링📝 변경 사항 요약
회원 데이터 구조 대대적 리팩토링: 나이(age) → 생년월일(birthDate) 전환
🛠 관련 이슈
close: #(이슈번호)
Related to: #(프론트문의사항 이슈), #(회원가입기획 이슈)
🔄 주요 변경 내역
1. 엔티티 변경 (Member.java)
필드 변경:
메서드 시그니처 변경:
create(): age → birthDate, 약관 동의 파라미터 추가update(): age → birthDateupdateIdentityVerification(): age 계산 로직 제거, birthDate 그대로 저장calculateAge(): 메서드 완전 삭제2. DTO 변경
Request DTOs:
Response DTOs:
3. Security & JWT
CustomUserDetails:
JwtProvider:
4. Service 레이어
MemberService:
IdentityVerificationService:
5. 신규 기능
테스트 백도어 API (
TestController.java):CORS 설정 개선:
📊 영향 범위
수정된 파일 (10개)
Member.java- 엔티티MemberCreateRequest.java- 회원가입 DTOMemberUpdateRequest.java- 정보 수정 DTOProfileResponse.java- 프로필 응답VerifyIdentityResponse.java- 본인인증 응답CustomUserDetails.java- 사용자 인증 정보JwtProvider.java- JWT 토큰 처리MemberService.java- 회원 관리 서비스IdentityVerificationService.java- 본인인증 서비스TestController.java- 테스트 백도어 API (신규)