feat(API): FCM 채널명 동기화 및 config 일원화 (7채널)

- push_urgent → push_vendor_register (거래처등록)
- push_payment → push_approval_request (결재요청)
- push_income 신규 추가 (입금)
- config/fcm.php에 전체 7개 채널 등록 (기존 2개→7개)
- 서비스 파일 하드코딩을 config() 참조로 전환

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
2026-01-30 18:07:44 +09:00
parent c111b2b55d
commit 1c3cb48c7c
6 changed files with 31 additions and 22 deletions

View File

@@ -712,22 +712,24 @@ public function createIssueWithFcm(
* 알림 타입에 따른 FCM 채널 ID 반환
*
* 채널별 알림음:
* - push_urgent: 긴급(신규업체)
* - push_payment: 결재
* - push_vendor_register: 거래처등록(신규업체)
* - push_approval_request: 결재요청
* - push_income: 입금
* - push_sales_order: 수주
* - push_purchase_order: 발주
* - push_contract: 계약
* - push_default: 일반 (입금, 출금, 카드 등)
* - push_default: 일반 (출금, 카드 등)
*/
private function getChannelForNotificationType(?string $notificationType): string
{
return match ($notificationType) {
'new_vendor' => 'push_urgent', // 긴급(신규업체)
'approval_request' => 'push_payment', // 결재
'sales_order' => 'push_sales_order', // 수주
'purchase_order' => 'push_purchase_order', //
'contract' => 'push_contract', // 계약
default => 'push_default', // 일반 (입금, 출금, 카드 등)
'new_vendor' => config('fcm.channels.vendor_register'), // 거래처등록(신규업체)
'approval_request' => config('fcm.channels.approval_request'), // 결재요청
'income' => config('fcm.channels.income'), // 입금
'sales_order' => config('fcm.channels.sales_order'), //
'purchase_order' => config('fcm.channels.purchase_order'), // 발주
'contract' => config('fcm.channels.contract'), // 계약
default => config('fcm.channels.default'), // 일반 (출금, 카드 등)
};
}
}