docs: ApiResponse import 경로 명시 추가

- CLAUDE.md에 올바른 import 경로 명시: use App\Helpers\ApiResponse
- AI 코드 생성 시 잘못된 경로 사용 방지
This commit is contained in:
2025-12-22 17:50:29 +09:00
parent a27b1b2091
commit daa30f5016

View File

@@ -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