完善接单平台通知配置

This commit is contained in:
yml2213
2026-08-17 13:54:01 +08:00
parent bca2e4a801
commit 5330b55b75
27 changed files with 1390 additions and 10 deletions
@@ -0,0 +1,21 @@
import { apiGet } from '@/lib/http'
export type AdminNotification = {
notificationId: number
notificationType: string
priority: 'normal' | 'high' | 'urgent' | string
entityType: string
entityId: number
title: string
body: string
actionPath: string
reminderCount: number
soundEnabled: boolean
lastRemindedAt: string | null
createdAt: string
updatedAt: string
}
export function fetchAdminNotifications() {
return apiGet<{ pendingCount: number; items: AdminNotification[] }>('/api/v1/admin/notifications')
}