From f37097571b982687430d771e3a94166b92aaa84c Mon Sep 17 00:00:00 2001 From: yooonwodyd Date: Tue, 15 Oct 2024 14:41:57 +0900 Subject: [PATCH] refactor:[#24]- Add User MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit User 도메인 관련 업데이트 --- src/main/java/com/helpmeCookies/user/entity/User.java | 5 ----- .../java/com/helpmeCookies/user/service/UserService.java | 2 -- 2 files changed, 7 deletions(-) diff --git a/src/main/java/com/helpmeCookies/user/entity/User.java b/src/main/java/com/helpmeCookies/user/entity/User.java index d2a150a..4fee3a0 100644 --- a/src/main/java/com/helpmeCookies/user/entity/User.java +++ b/src/main/java/com/helpmeCookies/user/entity/User.java @@ -49,11 +49,6 @@ public class User { @Column(nullable = false, updatable = false) protected LocalDateTime createdAt; - - public void createUser(UserInfo userInfo) { - - } - public void updateUserInfo(UserInfo userInfo) { // TODO: 유저 정보 업데이트시 유효성 검사 setUserInfo(userInfo); diff --git a/src/main/java/com/helpmeCookies/user/service/UserService.java b/src/main/java/com/helpmeCookies/user/service/UserService.java index 3c29d55..63fc4b4 100644 --- a/src/main/java/com/helpmeCookies/user/service/UserService.java +++ b/src/main/java/com/helpmeCookies/user/service/UserService.java @@ -31,12 +31,10 @@ public class UserService { @Transactional public UserInfoDto getUserInfo(Long userId) { - System.out.println("userId = " + userId); UserInfo userInfo = userRepository.findById(userId) .orElseThrow(() -> new ResourceNotFoundException()) .getUserInfo(); - System.out.println("userInfo = " + userInfo); return UserInfoDto.fromEntity(userInfo); }