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:
@@ -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;
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user