From afef6dfa80f7606b91fa9728461283fb25e74e44 Mon Sep 17 00:00:00 2001 From: sohot8653 Date: Thu, 28 Aug 2025 16:21:48 +0900 Subject: [PATCH] =?UTF-8?q?[=ED=9A=8C=EC=9B=90=20=EC=84=9C=EB=B9=84?= =?UTF-8?q?=EC=8A=A4=20=EA=B0=9C=EC=84=A0]=20MemberService=EC=99=80=20Memb?= =?UTF-8?q?erServiceImpl=EC=97=90=EC=84=9C=20updateMember=20=EB=B0=8F=20de?= =?UTF-8?q?leteRefreshToken=20=EB=A9=94=EC=84=9C=EB=93=9C=EC=9D=98=20?= =?UTF-8?q?=EB=B0=98=ED=99=98=20=ED=83=80=EC=9E=85=EC=9D=84=20void?= =?UTF-8?q?=EB=A1=9C=20=EB=B3=80=EA=B2=BD=ED=95=98=EA=B3=A0,=20=EB=A9=94?= =?UTF-8?q?=EC=84=9C=EB=93=9C=20=EC=88=9C=EC=84=9C=EB=A5=BC=20=EC=A0=95?= =?UTF-8?q?=EB=A6=AC=ED=95=98=EC=97=AC=20=EC=BD=94=EB=93=9C=20=EA=B0=80?= =?UTF-8?q?=EB=8F=85=EC=84=B1=EC=9D=84=20=ED=96=A5=EC=83=81=EC=8B=9C?= =?UTF-8?q?=ED=82=B4.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../domain/base/member/service/MemberService.java | 12 ++++++------ .../base/member/service/MemberServiceImpl.java | 6 ++---- 2 files changed, 8 insertions(+), 10 deletions(-) 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