From 4192faecc260bf2f80ff04c7be921d345960d886 Mon Sep 17 00:00:00 2001 From: s-choi Date: Thu, 24 Sep 2026 09:59:21 +0900 Subject: [PATCH] =?UTF-8?q?[ADD]=20=E8=B3=AA=E5=95=8F=E3=83=AA=E3=82=B9?= =?UTF-8?q?=E3=83=88=E3=82=92=E5=8F=97=E3=81=91=E5=8F=96=E3=82=8B=E3=83=A1?= =?UTF-8?q?=E3=82=BD=E3=83=83=E3=83=89=E3=82=92=E4=BD=9C=E6=88=90=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 --- .../app/domain/service/QuestionService.java | 9 ++++++++ .../service/impl/QuestionServiceImpl.java | 23 +++++++++++++++++++ 2 files changed, 32 insertions(+) create mode 100644 src/main/java/com/example/demo/app/domain/service/QuestionService.java create mode 100644 src/main/java/com/example/demo/app/domain/service/impl/QuestionServiceImpl.java diff --git a/src/main/java/com/example/demo/app/domain/service/QuestionService.java b/src/main/java/com/example/demo/app/domain/service/QuestionService.java new file mode 100644 index 0000000..3d12c8b --- /dev/null +++ b/src/main/java/com/example/demo/app/domain/service/QuestionService.java @@ -0,0 +1,9 @@ +package com.example.demo.app.domain.service; + +import java.util.List; + +import com.example.demo.app.infra.entity.QuestionEntity; + +public interface QuestionService { + public List findAll(); +} diff --git a/src/main/java/com/example/demo/app/domain/service/impl/QuestionServiceImpl.java b/src/main/java/com/example/demo/app/domain/service/impl/QuestionServiceImpl.java new file mode 100644 index 0000000..049cbd0 --- /dev/null +++ b/src/main/java/com/example/demo/app/domain/service/impl/QuestionServiceImpl.java @@ -0,0 +1,23 @@ +package com.example.demo.app.domain.service.impl; + +import java.util.List; + +import org.springframework.stereotype.Service; + +import com.example.demo.app.domain.service.QuestionService; +import com.example.demo.app.infra.entity.QuestionEntity; +import com.example.demo.app.infra.repository.QuestionRepository; + +import lombok.RequiredArgsConstructor; + +@Service +@RequiredArgsConstructor +public class QuestionServiceImpl implements QuestionService{ + + private final QuestionRepository questionRepository; + + public List findAll() { + return questionRepository.findAll(); + } + +}