- ai_reports 테이블 마이그레이션 추가 - AiReport 모델 생성 (daily/weekly/monthly 유형) - AiReportService 구현 (비즈니스 데이터 수집 + Gemini API) - 4개 API 엔드포인트 추가 (목록/생성/상세/삭제) - Swagger 문서 및 i18n 메시지 추가
62 lines
1.9 KiB
PHP
62 lines
1.9 KiB
PHP
<?php
|
|
|
|
return [
|
|
|
|
/*
|
|
|--------------------------------------------------------------------------
|
|
| Third Party Services
|
|
|--------------------------------------------------------------------------
|
|
|
|
|
| This file is for storing the credentials for third party services such
|
|
| as Mailgun, Postmark, AWS and more. This file provides the de facto
|
|
| location for this type of information, allowing packages to have
|
|
| a conventional file to locate the various service credentials.
|
|
|
|
|
*/
|
|
|
|
'postmark' => [
|
|
'token' => env('POSTMARK_TOKEN'),
|
|
],
|
|
|
|
'ses' => [
|
|
'key' => env('AWS_ACCESS_KEY_ID'),
|
|
'secret' => env('AWS_SECRET_ACCESS_KEY'),
|
|
'region' => env('AWS_DEFAULT_REGION', 'us-east-1'),
|
|
],
|
|
|
|
'resend' => [
|
|
'key' => env('RESEND_KEY'),
|
|
],
|
|
|
|
'slack' => [
|
|
'notifications' => [
|
|
'bot_user_oauth_token' => env('SLACK_BOT_USER_OAUTH_TOKEN'),
|
|
'channel' => env('SLACK_BOT_USER_DEFAULT_CHANNEL'),
|
|
],
|
|
],
|
|
|
|
/*
|
|
|--------------------------------------------------------------------------
|
|
| 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'),
|
|
],
|
|
|
|
];
|