docs: ApiResponse import 경로 명시 추가
- CLAUDE.md에 올바른 import 경로 명시: use App\Helpers\ApiResponse - AI 코드 생성 시 잘못된 경로 사용 방지
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user