perf: 优化空场监控
This commit is contained in:
@@ -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),
|
||||
|
||||
Reference in New Issue
Block a user