20 lines
789 B
Vue
20 lines
789 B
Vue
import { defHttp } from '/@/utils/http/axios';
|
|
|
|
enum Api {
|
|
getConfig = '/xslmes/mcs/dbConfig/get',
|
|
saveConfig = '/xslmes/mcs/dbConfig/save',
|
|
testConnect = '/xslmes/mcs/dbConfig/testConnect',
|
|
deleteConfig = '/xslmes/mcs/dbConfig/delete',
|
|
status = '/xslmes/mcs/dbConfig/status',
|
|
}
|
|
|
|
export const getMcsDbConfig = (params?) => defHttp.get({ url: Api.getConfig, params });
|
|
|
|
export const saveMcsDbConfig = (params) => defHttp.post({ url: Api.saveConfig, params });
|
|
|
|
export const testMcsDbConnect = (params?) => defHttp.get({ url: Api.testConnect, params }, { isTransformResponse: false });
|
|
|
|
export const deleteMcsDbConfig = (params) => defHttp.delete({ url: Api.deleteConfig, params }, { joinParamsToUrl: true });
|
|
|
|
export const getMcsDbStatus = () => defHttp.get({ url: Api.status });
|