diff --git a/src/main/java/com/ordertogether/team14_be/auth/JwtUtil.java b/src/main/java/com/ordertogether/team14_be/auth/JwtUtil.java index deaeb9c7..a16a2c28 100644 --- a/src/main/java/com/ordertogether/team14_be/auth/JwtUtil.java +++ b/src/main/java/com/ordertogether/team14_be/auth/JwtUtil.java @@ -11,7 +11,6 @@ import org.springframework.beans.factory.annotation.Value; import org.springframework.stereotype.Component; -@Component public class JwtUtil { private final SecretKey key; private final int expireTime; diff --git a/src/main/java/com/ordertogether/team14_be/member/application/service/MemberService.java b/src/main/java/com/ordertogether/team14_be/member/application/service/MemberService.java index 868a4572..32f90e74 100644 --- a/src/main/java/com/ordertogether/team14_be/member/application/service/MemberService.java +++ b/src/main/java/com/ordertogether/team14_be/member/application/service/MemberService.java @@ -68,4 +68,9 @@ public Optional findMemberByEmail(String email) { public void registerMember(Member member) { memberRepository.saveAndFlush(member); } + + public Long getMemberId(String email) { + Member member = memberRepository.findByEmail(email).get(); + return member.getId(); + } } diff --git a/src/main/java/com/ordertogether/team14_be/member/persistence/entity/Member.java b/src/main/java/com/ordertogether/team14_be/member/persistence/entity/Member.java index 734c733d..66bcfc8c 100644 --- a/src/main/java/com/ordertogether/team14_be/member/persistence/entity/Member.java +++ b/src/main/java/com/ordertogether/team14_be/member/persistence/entity/Member.java @@ -82,4 +82,9 @@ public void modifyMemberInfo(String deliveryName, String phoneNumber) { this.deliveryName = deliveryName; this.phoneNumber = phoneNumber; } + + public void modifyMemberInfo(String deliveryName, String phoneNumber) { + this.deliveryName = deliveryName; + this.phoneNumber = phoneNumber; + } } diff --git a/src/main/java/com/ordertogether/team14_be/spot/exception/ErrorResponse.java b/src/main/java/com/ordertogether/team14_be/spot/exception/ErrorResponse.java index 7a24c087..40bb3bef 100644 --- a/src/main/java/com/ordertogether/team14_be/spot/exception/ErrorResponse.java +++ b/src/main/java/com/ordertogether/team14_be/spot/exception/ErrorResponse.java @@ -2,6 +2,5 @@ import com.ordertogether.team14_be.spot.enums.ErrorCode; - // @Getter public record ErrorResponse(String message, ErrorCode code) {}