提交 | 用户 | 时间
|
1f93e9
|
1 |
import request from '@/config/axios' |
潘 |
2 |
|
|
3 |
export type DataSetFieldVO = { |
|
4 |
id: number | undefined |
|
5 |
dataSetId: string |
|
6 |
fieldCode: string |
|
7 |
fieldName: string |
|
8 |
fieldType: string |
|
9 |
sort: number |
|
10 |
} |
|
11 |
|
|
12 |
// 查询列表 |
|
13 |
export const getDataSetFieldPage = (params: PageParam) => { |
|
14 |
return request.get({ url: '/data/ind/data-set-field/page', params }) |
|
15 |
} |
|
16 |
|
|
17 |
// 查询详情 |
|
18 |
export const getDataSetField = (id: number) => { |
|
19 |
return request.get({ url: '/data/ind/data-set-field/get?id=' + id }) |
|
20 |
} |
|
21 |
|
|
22 |
// 新增 |
|
23 |
export const createDataSetField = (data: DataSetFieldVO) => { |
|
24 |
return request.post({ url: '/data/ind/data-set-field/create', data }) |
|
25 |
} |
|
26 |
|
|
27 |
// 修改 |
|
28 |
export const updateDataSetField = (data: DataSetFieldVO) => { |
|
29 |
return request.put({ url: '/data/ind/data-set-field/update', data }) |
|
30 |
} |
|
31 |
|
|
32 |
// 删除 |
|
33 |
export const deleteDataSetField = (id: number) => { |
|
34 |
return request.delete({ url: '/data/ind/data-set-field/delete?id=' + id }) |
|
35 |
} |