From db65afe184d2d85c5c8879f4bc7478185b05887a Mon Sep 17 00:00:00 2001 From: s-choi Date: Fri, 18 Sep 2026 15:06:16 +0900 Subject: [PATCH] =?UTF-8?q?[EDIT]=20userId=E3=81=A7UserEntity=E6=83=85?= =?UTF-8?q?=E5=A0=B1=E3=82=92=E5=8F=96=E5=BE=97=E3=81=99=E3=82=8B=E3=83=A1?= =?UTF-8?q?=E3=82=BD=E3=83=83=E3=83=89=E3=82=92=E8=BF=BD=E5=8A=A0=E3=81=97?= =?UTF-8?q?=E3=81=BE=E3=81=97=E3=81=9F=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../demo/app/domain/service/impl/UserServiceImpl.java | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/main/java/com/example/demo/app/domain/service/impl/UserServiceImpl.java b/src/main/java/com/example/demo/app/domain/service/impl/UserServiceImpl.java index d93f36b..00dad91 100644 --- a/src/main/java/com/example/demo/app/domain/service/impl/UserServiceImpl.java +++ b/src/main/java/com/example/demo/app/domain/service/impl/UserServiceImpl.java @@ -2,6 +2,7 @@ package com.example.demo.app.domain.service.impl; import org.springframework.stereotype.Service; +import com.example.demo.app.domain.model.UserModel; import com.example.demo.app.domain.service.UserService; import com.example.demo.app.infra.entity.CourseEntity; import com.example.demo.app.infra.entity.GoalEntity; @@ -69,6 +70,11 @@ public class UserServiceImpl implements UserService { userRepository.save(userEntity); } + + public UserModel findByUserId(Long userId) { + + return UserModel.convertFrom(userRepository.findById(userId).get()); + } }