fix(API): FCM 알림 채널 매핑 수정

- TodayIssue IMPORTANT_NOTIFICATIONS에서 deposit, withdrawal 제거
- notification_type별 채널 매핑 메서드 추가
  - new_vendor → push_urgent (긴급/신규업체)
  - approval_request → push_payment (결재)
  - sales_order → push_sales_order (수주)
  - purchase_order → push_purchase_order (발주)
  - contract → push_contract (계약)
  - 나머지 → push_default (일반)

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
2026-01-23 10:14:35 +09:00
parent d75f6f5bd1
commit 73e49f2736
2 changed files with 27 additions and 5 deletions

View File

@@ -93,13 +93,12 @@ class TodayIssue extends Model
self::BADGE_WITHDRAWAL => 'withdrawal',
];
// 중요 알림 (푸시 알림음) - 수주등록, 신규거래처, 결재요청, 입금, 출금
// 중요 알림 (긴급 푸시) - 수주등록, 신규거래처, 결재요청
// 입금, 출금, 카드 등은 일반 푸시(push_default)로 발송
public const IMPORTANT_NOTIFICATIONS = [
'sales_order',
'new_vendor',
'approval_request',
'deposit',
'withdrawal',
];
/**