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: member 생성시 homepy 생성 수정 #45

Merged
merged 1 commit into from
Jun 13, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -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}")
Expand Down Expand Up @@ -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)
Expand Down
Loading