提交 | 用户 | 时间
|
820397
|
1 |
import request from '@/config/axios' |
H |
2 |
|
|
3 |
export interface DataSourceConfigVO { |
|
4 |
id: number | undefined |
|
5 |
name: string |
|
6 |
url: string |
|
7 |
username: string |
|
8 |
password: string |
|
9 |
createTime?: Date |
|
10 |
} |
|
11 |
|
|
12 |
// 新增数据源配置 |
|
13 |
export const createDataSourceConfig = (data: DataSourceConfigVO) => { |
|
14 |
return request.post({ url: '/infra/data-source-config/create', data }) |
|
15 |
} |
|
16 |
|
|
17 |
// 修改数据源配置 |
|
18 |
export const updateDataSourceConfig = (data: DataSourceConfigVO) => { |
|
19 |
return request.put({ url: '/infra/data-source-config/update', data }) |
|
20 |
} |
|
21 |
|
|
22 |
// 删除数据源配置 |
|
23 |
export const deleteDataSourceConfig = (id: number) => { |
|
24 |
return request.delete({ url: '/infra/data-source-config/delete?id=' + id }) |
|
25 |
} |
|
26 |
|
|
27 |
// 查询数据源配置详情 |
|
28 |
export const getDataSourceConfig = (id: number) => { |
|
29 |
return request.get({ url: '/infra/data-source-config/get?id=' + id }) |
|
30 |
} |
|
31 |
|
|
32 |
// 查询数据源配置列表 |
|
33 |
export const getDataSourceConfigList = () => { |
|
34 |
return request.get({ url: '/infra/data-source-config/list' }) |
|
35 |
} |