From daa30f501636d8148da8f62bd9fad125cdad0c8c Mon Sep 17 00:00:00 2001 From: hskwon Date: Mon, 22 Dec 2025 17:50:29 +0900 Subject: [PATCH] =?UTF-8?q?docs:=20ApiResponse=20import=20=EA=B2=BD?= =?UTF-8?q?=EB=A1=9C=20=EB=AA=85=EC=8B=9C=20=EC=B6=94=EA=B0=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - CLAUDE.md에 올바른 import 경로 명시: use App\Helpers\ApiResponse - AI 코드 생성 시 잘못된 경로 사용 방지 --- CLAUDE.md | 1 + 1 file changed, 1 insertion(+) diff --git a/CLAUDE.md b/CLAUDE.md index c84e6d1..2b6924c 100644 --- a/CLAUDE.md +++ b/CLAUDE.md @@ -499,6 +499,7 @@ ## SAM API Development Rules ### 1. Architecture Philosophy - **Service First**: All business logic must be written in Service classes (public functions) - **Controller**: Only responsible for DI injection of Services and calling them. Use ApiResponse::handle() for responses + - **Import**: `use App\Helpers\ApiResponse;` (⚠️ 반드시 이 경로 사용) - **Exception Flow**: Errors are thrown → converted to JSON by global handler - **Context Enforcement**: Base Service requires tenantId(), apiUserId(). Throws exception if not set