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.
35 lines
1007 B
35 lines
1007 B
import { defHttp } from '@/utils/http/axios' |
|
|
|
export interface DataSourceConfigVO { |
|
id: number |
|
name: string |
|
url: string |
|
username: string |
|
password: string |
|
createTime: Date |
|
} |
|
|
|
// 查询数据源配置列表 |
|
export const getDataSourceConfigListApi = () => { |
|
return defHttp.get({ url: '/infra/data-source-config/list' }) |
|
} |
|
|
|
// 查询数据源配置详情 |
|
export const getDataSourceConfigApi = (id: number) => { |
|
return defHttp.get({ url: '/infra/data-source-config/get?id=' + id }) |
|
} |
|
|
|
// 新增数据源配置 |
|
export const createDataSourceConfigApi = (data: DataSourceConfigVO) => { |
|
return defHttp.post({ url: '/infra/data-source-config/create', data }) |
|
} |
|
|
|
// 修改数据源配置 |
|
export const updateDataSourceConfigApi = (data: DataSourceConfigVO) => { |
|
return defHttp.put({ url: '/infra/data-source-config/update', data }) |
|
} |
|
|
|
// 删除数据源配置 |
|
export const deleteDataSourceConfigApi = (id: number) => { |
|
return defHttp.delete({ url: '/infra/data-source-config/delete?id=' + id }) |
|
}
|
|
|