feat: AI 리포트 API 구현 (Google Gemini 연동)

- ai_reports 테이블 마이그레이션 추가
- AiReport 모델 생성 (daily/weekly/monthly 유형)
- AiReportService 구현 (비즈니스 데이터 수집 + Gemini API)
- 4개 API 엔드포인트 추가 (목록/생성/상세/삭제)
- Swagger 문서 및 i18n 메시지 추가
This commit is contained in:
2025-12-18 13:51:40 +09:00
parent c7eee97610
commit 98645316fc
11 changed files with 1051 additions and 0 deletions

View File

@@ -35,4 +35,27 @@
],
],
/*
|--------------------------------------------------------------------------
| Google Gemini AI
|--------------------------------------------------------------------------
| AI 리포트 생성을 위한 Google Gemini API 설정
*/
'gemini' => [
'api_key' => env('GEMINI_API_KEY'),
'model' => env('GEMINI_MODEL', 'gemini-2.0-flash'),
'base_url' => env('GEMINI_BASE_URL', 'https://generativelanguage.googleapis.com/v1beta'),
],
/*
|--------------------------------------------------------------------------
| Internal Server Communication
|--------------------------------------------------------------------------
| MNG ↔ API 서버간 내부 통신 설정
| exchange_secret: HMAC 서명용 공유 시크릿 (MNG와 동일해야 함)
*/
'internal' => [
'exchange_secret' => env('INTERNAL_EXCHANGE_SECRET'),
],
];