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

@@ -233,4 +233,20 @@
'dashboard' => [
'invalid_period' => '기간은 week, month, quarter 중 하나여야 합니다.',
],
// AI 리포트 관련
'ai_report' => [
'api_key_not_configured' => 'AI API 키가 설정되지 않았습니다.',
'api_call_failed' => 'AI API 호출에 실패했습니다.',
'connection_failed' => 'AI 서버 연결에 실패했습니다.',
],
// 내부 서버간 통신 관련
'internal' => [
'secret_not_configured' => '내부 교환 비밀키가 설정되지 않았습니다.',
'signature_expired' => '서명이 만료되었습니다.',
'invalid_exp' => '만료 시간이 유효하지 않습니다.',
'invalid_signature' => '서명이 유효하지 않습니다.',
'token_issue_failed' => '토큰 발급에 실패했습니다.',
],
];