完善接单平台通知配置
This commit is contained in:
@@ -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')
|
||||
}
|
||||
Reference in New Issue
Block a user