From b5a7dafde80998b1eb12f97a78f9c9b7039c3544 Mon Sep 17 00:00:00 2001 From: robinjoon Date: Sun, 8 Mar 2026 20:59:56 +0900 Subject: [PATCH] =?UTF-8?q?feat:=20GraphQL=20=5Fhealth=20=EC=BF=BC?= =?UTF-8?q?=EB=A6=AC=20DataFetcher=20=EA=B5=AC=ED=98=84=20(#32)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-Authored-By: Claude Opus 4.6 --- docs/plan/#32-health-query/checklist.md | 10 ++++++++++ docs/plan/#32-health-query/plan.md | 8 ++++++++ .../presentation/datafetcher/HealthDataFetcher.kt | 10 ++++++++++ 3 files changed, 28 insertions(+) create mode 100644 docs/plan/#32-health-query/checklist.md create mode 100644 docs/plan/#32-health-query/plan.md create mode 100644 src/main/kotlin/kr/io/team/loop/health/presentation/datafetcher/HealthDataFetcher.kt diff --git a/docs/plan/#32-health-query/checklist.md b/docs/plan/#32-health-query/checklist.md new file mode 100644 index 0000000..5e7c624 --- /dev/null +++ b/docs/plan/#32-health-query/checklist.md @@ -0,0 +1,10 @@ +# GraphQL _health 쿼리 검증 체크리스트 + +## 필수 항목 +- [x] 아키텍처 원칙 준수 (docs/architecture.md 기준) +- [x] 레이어 의존성 규칙 위반 없음 +- [x] 모든 테스트 통과 +- [x] 기존 테스트 깨지지 않음 + +## 선택 항목 +- [ ] API 엔드포인트 동작 확인 diff --git a/docs/plan/#32-health-query/plan.md b/docs/plan/#32-health-query/plan.md new file mode 100644 index 0000000..39617fd --- /dev/null +++ b/docs/plan/#32-health-query/plan.md @@ -0,0 +1,8 @@ +# GraphQL _health 쿼리 DataFetcher 구현 + +> Issue: #32 + +## 단계 + +- [x] 1단계: health BC 패키지 및 DataFetcher 생성 +- [x] 2단계: 테스트 통과 및 검증 diff --git a/src/main/kotlin/kr/io/team/loop/health/presentation/datafetcher/HealthDataFetcher.kt b/src/main/kotlin/kr/io/team/loop/health/presentation/datafetcher/HealthDataFetcher.kt new file mode 100644 index 0000000..152d65e --- /dev/null +++ b/src/main/kotlin/kr/io/team/loop/health/presentation/datafetcher/HealthDataFetcher.kt @@ -0,0 +1,10 @@ +package kr.io.team.loop.health.presentation.datafetcher + +import com.netflix.graphql.dgs.DgsComponent +import com.netflix.graphql.dgs.DgsQuery + +@DgsComponent +class HealthDataFetcher { + @DgsQuery(field = "_health") + fun health(): Boolean = true +}