feat: AI 리포트 API 구현 (Google Gemini 연동)
- ai_reports 테이블 마이그레이션 추가 - AiReport 모델 생성 (daily/weekly/monthly 유형) - AiReportService 구현 (비즈니스 데이터 수집 + Gemini API) - 4개 API 엔드포인트 추가 (목록/생성/상세/삭제) - Swagger 문서 및 i18n 메시지 추가
This commit is contained in:
@@ -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'),
|
||||
],
|
||||
|
||||
];
|
||||
|
||||
Reference in New Issue
Block a user