From b132adb14d7f5a0c04722338094642d59be4c05d Mon Sep 17 00:00:00 2001 From: Ojimin Date: Fri, 14 Jun 2024 04:36:17 +0900 Subject: [PATCH] =?UTF-8?q?feat:=20member=20=EC=83=9D=EC=84=B1=EC=8B=9C=20?= =?UTF-8?q?homepy=20=EC=83=9D=EC=84=B1=20=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../spring/domain/member/service/MemberServiceImpl.java | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/main/java/vom/spring/domain/member/service/MemberServiceImpl.java b/src/main/java/vom/spring/domain/member/service/MemberServiceImpl.java index b559a36..6395b0d 100644 --- a/src/main/java/vom/spring/domain/member/service/MemberServiceImpl.java +++ b/src/main/java/vom/spring/domain/member/service/MemberServiceImpl.java @@ -8,6 +8,8 @@ import org.springframework.stereotype.Service; import org.springframework.transaction.annotation.Transactional; import org.springframework.web.multipart.MultipartFile; +import vom.spring.domain.homepy.Homepy; +import vom.spring.domain.homepy.HomepyRepository; import vom.spring.domain.member.domain.Keyword; import vom.spring.domain.member.domain.Member; import vom.spring.domain.member.domain.MemberKeyword; @@ -30,6 +32,7 @@ public class MemberServiceImpl implements MemberService { private final RegionRepository regionRepository; private final KeywordRepository keywordRepository; private final MemberKeywordRepository memberKeywordRepository; + private final HomepyRepository homepyRepository; private final AmazonS3Client amazonS3Client; @Value("${cloud.aws.s3.bucket}") @@ -60,7 +63,9 @@ public MemberResponseDto.CreateDto create(MemberRequestDto.CreateMemberDto reque } // 닉네임, 지역, 생년월일 저장 member.joinMember(request.getNickname(), request.getBirth(), region); - + //회언가입한 회원 homepy 생성 + Homepy homepy = Homepy.builder().member(member).build(); + homepyRepository.save(homepy); return MemberResponseDto.CreateDto.builder() .memberId(member.getId()) .nickname(memberNickname)