diff --git a/src/main/java/com/poogle/phog/service/UserService.java b/src/main/java/com/poogle/phog/service/UserService.java index a7a65e2..3b433df 100644 --- a/src/main/java/com/poogle/phog/service/UserService.java +++ b/src/main/java/com/poogle/phog/service/UserService.java @@ -2,10 +2,14 @@ import com.poogle.phog.domain.User; import com.poogle.phog.domain.UserRepository; +import com.poogle.phog.web.admin.user.dto.ResponseDTO; +import lombok.extern.slf4j.Slf4j; import org.springframework.stereotype.Service; +import java.util.List; import java.util.Optional; +@Slf4j @Service public class UserService { @@ -25,4 +29,10 @@ public void insertOrUpdate(User user) { userRepository.save(user); } } + + public ResponseDTO findUserList() { + List users = userRepository.findAll(); + log.debug("[*] users: {}", users); + return new ResponseDTO(200, "전체 유저 목록", users); + } }