Please provide the specific file changes or a description of the modifications you have made so I can generate the commit message for you.

This commit is contained in:
liumangmang
2026-05-07 10:09:40 +08:00
parent 165cc0e35b
commit f24d0f69ed
19 changed files with 1757 additions and 367 deletions
+5 -1
View File
@@ -1,5 +1,5 @@
import http from './http'
import type { BatchCommandResponse, Connection, ConnectionCreateRequest } from '../types'
import type { BatchCommandResponse, Connection, ConnectionCreateRequest, ConnectionStatusResponse } from '../types'
export function listConnections() {
return http.get<Connection[]>('/connections')
@@ -20,3 +20,7 @@ export function deleteConnection(id: number) {
export function executeBatchCommand(connectionIds: number[], command: string) {
return http.post<BatchCommandResponse>('/connections/batch-command', { connectionIds, command })
}
export function checkConnectionStatuses(connectionIds: number[]) {
return http.post<ConnectionStatusResponse>('/connections/status', { connectionIds })
}