提交 | 用户 | 时间
|
b1d33f
|
1 |
import request from '@/config/axios' |
潘 |
2 |
|
|
3 |
export type DataSetVO = { |
|
4 |
id: number | undefined |
|
5 |
name: string |
|
6 |
dataSource: string |
|
7 |
querySql: string |
|
8 |
remark: string |
|
9 |
sort: number |
|
10 |
} |
|
11 |
|
|
12 |
// 查询列表 |
|
13 |
export const getDataSetList = () => { |
|
14 |
return request.get({ url: '/data/plan/data-set/list-all-simple' }) |
|
15 |
} |
|
16 |
|
|
17 |
// 查询列表 |
|
18 |
export const getDataSetPage = (params: PageParam) => { |
|
19 |
return request.get({ url: '/data/plan/data-set/page', params }) |
|
20 |
} |
|
21 |
|
|
22 |
// 查询详情 |
|
23 |
export const getDataSet = (id: number) => { |
|
24 |
return request.get({ url: '/data/plan/data-set/get?id=' + id }) |
|
25 |
} |
|
26 |
|
|
27 |
// 新增 |
|
28 |
export const createDataSet = (data: DataSetVO) => { |
|
29 |
return request.post({ url: '/data/plan/data-set/create', data }) |
|
30 |
} |
|
31 |
|
|
32 |
// 修改 |
|
33 |
export const updateDataSet = (data: DataSetVO) => { |
|
34 |
return request.put({ url: '/data/plan/data-set/update', data }) |
|
35 |
} |
|
36 |
|
|
37 |
// 删除 |
|
38 |
export const deleteDataSet = (id: number) => { |
|
39 |
return request.delete({ url: '/data/plan/data-set/delete?id=' + id }) |
|
40 |
} |