perf: 优化空场监控

This commit is contained in:
richarjiang
2026-07-15 20:09:02 +08:00
parent 4b465843a8
commit 9e0b44dfd3
18 changed files with 2731 additions and 118 deletions

View File

@@ -24,10 +24,14 @@ const api: TennisBookApi = {
getPendingBooking: (courtId: string) =>
ipcRenderer.invoke(IPC_CHANNELS.getPendingBooking, courtId),
listMonitorTasks: () => ipcRenderer.invoke(IPC_CHANNELS.listMonitorTasks),
getMonitorTaskDetail: (taskId: string) =>
ipcRenderer.invoke(IPC_CHANNELS.getMonitorTaskDetail, taskId),
createMonitorTask: (input: CreateMonitorTaskInput) =>
ipcRenderer.invoke(IPC_CHANNELS.createMonitorTask, input),
setMonitorTaskEnabled: (taskId: string, enabled: boolean) =>
ipcRenderer.invoke(IPC_CHANNELS.setMonitorTaskEnabled, taskId, enabled),
setMonitorTaskAutoBooking: (taskId: string, enabled: boolean) =>
ipcRenderer.invoke(IPC_CHANNELS.setMonitorTaskAutoBooking, taskId, enabled),
deleteMonitorTask: (taskId: string) =>
ipcRenderer.invoke(IPC_CHANNELS.deleteMonitorTask, taskId),
takeMonitorAlerts: () => ipcRenderer.invoke(IPC_CHANNELS.takeMonitorAlerts),