diff --git a/src/main/java/econo/buddybridge/member/dto/MemberReqDto.java b/src/main/java/econo/buddybridge/member/dto/MemberReqDto.java index 773ef66..f69537b 100644 --- a/src/main/java/econo/buddybridge/member/dto/MemberReqDto.java +++ b/src/main/java/econo/buddybridge/member/dto/MemberReqDto.java @@ -1,15 +1,9 @@ package econo.buddybridge.member.dto; import econo.buddybridge.member.entity.DisabilityType; -import econo.buddybridge.member.entity.Gender; public record MemberReqDto( - String name, String nickname, - String profileImageUrl, - String email, - Integer age, - Gender gender, DisabilityType disabilityType ) { diff --git a/src/main/java/econo/buddybridge/member/entity/Member.java b/src/main/java/econo/buddybridge/member/entity/Member.java index fc0f0a7..c9a51f5 100644 --- a/src/main/java/econo/buddybridge/member/entity/Member.java +++ b/src/main/java/econo/buddybridge/member/entity/Member.java @@ -68,14 +68,8 @@ public void updateKakaoToken(String kakaoToken) { this.kakaoToken = kakaoToken; } - public void updateMemberInfo(String name, String nickname, String profileImageUrl, String email, Integer age, - DisabilityType disabilityType, Gender gender) { - this.name = name; + public void updateMemberInfo(String nickname, DisabilityType disabilityType) { this.nickname = nickname; - this.profileImageUrl = profileImageUrl; - this.email = email; - this.age = age; this.disabilityType = disabilityType; - this.gender = gender; } } diff --git a/src/main/java/econo/buddybridge/member/service/MemberService.java b/src/main/java/econo/buddybridge/member/service/MemberService.java index 42a8f99..9f5d40f 100644 --- a/src/main/java/econo/buddybridge/member/service/MemberService.java +++ b/src/main/java/econo/buddybridge/member/service/MemberService.java @@ -64,8 +64,7 @@ private Member newMember(UserInfoWithKakaoToken userInfo) { public void updateMemberById(Long memberId, MemberReqDto memberReqDto) { Member member = findMemberByIdOrThrow(memberId); - member.updateMemberInfo(memberReqDto.name(), memberReqDto.nickname(), memberReqDto.profileImageUrl(), - memberReqDto.email(), memberReqDto.age(), memberReqDto.disabilityType(), member.getGender()); + member.updateMemberInfo(memberReqDto.nickname(), memberReqDto.disabilityType()); } @Transactional