帆软决策平台数据连接界面库
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

55 lines
1.2 KiB

import { Connection, TestRequest, ConnectionPoolType, SocketResult } from './crud.typings';
export interface Api {
/**
*
*/
isDec: boolean;
/**
*
*/
getConnectionlist(): Promise<{data: Connection[]}>;
/**
*
* @param connectionName
*/
deleteConnection(connectionName: string): Promise<{data: string}>;
/**
*
* @param data
*/
addConnection(data: Connection): Promise<{data: string}>;
/**
*
*/
updateConnection(data: Connection): Promise<{data: string}>;
/**
*
* @param data
*/
testConnection(data: Connection): Promise<TestRequest>;
/**
*
* @param name
*/
getConnectionPool(name: string): Promise<{data: ConnectionPoolType}>;
/**
*
* @param name
*/
getConnectionStatus(name: string): Promise<SocketResult>;
/**
*
* @param name
*/
shutdownConnectionStatus(name: string): Promise<SocketResult>;
}