diff --git a/src/main/java/com/bio/bio_backend/domain/base/member/service/MemberService.java b/src/main/java/com/bio/bio_backend/domain/base/member/service/MemberService.java index 693cd0b..39440fa 100644 --- a/src/main/java/com/bio/bio_backend/domain/base/member/service/MemberService.java +++ b/src/main/java/com/bio/bio_backend/domain/base/member/service/MemberService.java @@ -1,13 +1,13 @@ package com.bio.bio_backend.domain.base.member.service; -import java.util.List; -import java.util.Map; - import org.springframework.security.core.userdetails.UserDetails; import org.springframework.security.core.userdetails.UserDetailsService; import com.bio.bio_backend.domain.base.member.dto.MemberDto; +import java.util.List; +import java.util.Map; + public interface MemberService extends UserDetailsService { UserDetails loadUserByUsername(String id); @@ -16,9 +16,9 @@ public interface MemberService extends UserDetailsService { String getRefreshToken(String id); - int deleteRefreshToken(String id); + void deleteRefreshToken(String id); + + void updateMember(MemberDto member); List selectMemberList(Map params); - - int updateMember(MemberDto member); } diff --git a/src/main/java/com/bio/bio_backend/domain/base/member/service/MemberServiceImpl.java b/src/main/java/com/bio/bio_backend/domain/base/member/service/MemberServiceImpl.java index 651306b..928feb6 100644 --- a/src/main/java/com/bio/bio_backend/domain/base/member/service/MemberServiceImpl.java +++ b/src/main/java/com/bio/bio_backend/domain/base/member/service/MemberServiceImpl.java @@ -63,13 +63,12 @@ public class MemberServiceImpl implements MemberService { @Override @Transactional - public int updateMember(MemberDto memberDto) { + public void updateMember(MemberDto memberDto) { Member member = memberRepository.findActiveMemberByUserId(memberDto.getUserId()) .orElseThrow(() -> new ApiException(ApiResponseCode.USER_NOT_FOUND)); memberMapper.updateMemberFromDto(memberDto, member); memberRepository.save(member); - return 1; } @Override @@ -82,13 +81,12 @@ public class MemberServiceImpl implements MemberService { @Override @Transactional - public int deleteRefreshToken(String id) { + public void deleteRefreshToken(String id) { Member member = memberRepository.findActiveMemberByUserId(id) .orElseThrow(() -> new ApiException(ApiResponseCode.USER_NOT_FOUND)); member.setRefreshToken(null); memberRepository.save(member); - return 1; } @Override