feat: 알림음 시스템 - PushNotificationService 및 채널별 사운드 처리

- PushNotificationService 신규 생성 (이벤트 기반 푸시 발송)
- FcmSender에 getSoundForChannel() 추가 (채널별 사운드 매핑)
- ClientService.store()에 신규 거래처 푸시 알림 연동

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
2026-01-07 20:10:18 +09:00
parent d6783b4a15
commit 62203a19bd
3 changed files with 175 additions and 290 deletions

View File

@@ -9,6 +9,7 @@
use Illuminate\Support\Facades\DB;
use Symfony\Component\HttpKernel\Exception\BadRequestHttpException;
use Symfony\Component\HttpKernel\Exception\NotFoundHttpException;
use App\Services\PushNotificationService;
class ClientService extends Service
{
@@ -132,7 +133,13 @@ public function store(array $data)
$data['tenant_id'] = $tenantId;
$data['is_active'] = $data['is_active'] ?? true;
return Client::create($data);
$client = Client::create($data);
// 신규 거래처 등록 푸시 발송
app(PushNotificationService::class)
->notifyNewClient($client->id, $client->name, $tenantId);
return $client;
}
/**