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:
@@ -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 })
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user