import { setHostAppBadgeCount, showHostLocalNotification, } from '../../services/host-bridge/hostBridge'; import type { PlatformHostDraftNotification } from './platformHostNotificationModel'; type PlatformHostDraftNotificationPayload = Pick< PlatformHostDraftNotification, 'title' | 'body' >; // 中文注释:平台壳只把已派生出的通知和角标计数交给 HostBridge,不改业务事实。 export function sendPlatformHostDraftNotificationToHost({ title, body, }: PlatformHostDraftNotificationPayload) { return showHostLocalNotification({ title, body }); } export function syncPlatformHostDraftBadgeCountToHost(count: number) { return setHostAppBadgeCount({ count }); }