政务数据资源中心(Government data Resource center) 03专项3期主要建设内容
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.
 
 
 
 

31 lines
742 B

'use strict';
import { basicAction } from '@peace/utils'
import { ApiTable } from '$utils'
export function addDataSource(params, msg) {
return (dispatch) => basicAction({
type: 'post',
data: params,
dispatch,
actionType: 'ADD_ADAPTER',
url: ApiTable.addDataSource,
msg: {
option: msg || '新增数据源',
},
});
}
export function getDataSources(query) {
return dispatch => basicAction({
type: 'get',
dispatch: dispatch,
query: query || {},
actionType: 'GET_ACQ_DATASOURCES',
url: `${ApiTable.getDataSources}`,
msg: { error: '获取适配器列表失败' },
reducer: { name: 'datasources' }
});
}