提交 | 用户 | 时间
|
820397
|
1 |
import request from '@/config/axios' |
H |
2 |
|
|
3 |
export type DictTypeVO = { |
|
4 |
id: number | undefined |
|
5 |
name: string |
|
6 |
type: string |
|
7 |
status: number |
|
8 |
remark: string |
|
9 |
createTime: Date |
|
10 |
} |
|
11 |
|
|
12 |
// 查询字典(精简)列表 |
|
13 |
export const getSimpleDictTypeList = () => { |
|
14 |
return request.get({ url: '/system/dict-type/list-all-simple' }) |
|
15 |
} |
|
16 |
|
|
17 |
// 查询字典列表 |
|
18 |
export const getDictTypePage = (params: PageParam) => { |
|
19 |
return request.get({ url: '/system/dict-type/page', params }) |
|
20 |
} |
|
21 |
|
|
22 |
// 查询字典详情 |
|
23 |
export const getDictType = (id: number) => { |
|
24 |
return request.get({ url: '/system/dict-type/get?id=' + id }) |
|
25 |
} |
|
26 |
|
|
27 |
// 新增字典 |
|
28 |
export const createDictType = (data: DictTypeVO) => { |
|
29 |
return request.post({ url: '/system/dict-type/create', data }) |
|
30 |
} |
|
31 |
|
|
32 |
// 修改字典 |
|
33 |
export const updateDictType = (data: DictTypeVO) => { |
|
34 |
return request.put({ url: '/system/dict-type/update', data }) |
|
35 |
} |
|
36 |
|
|
37 |
// 删除字典 |
|
38 |
export const deleteDictType = (id: number) => { |
|
39 |
return request.delete({ url: '/system/dict-type/delete?id=' + id }) |
|
40 |
} |
|
41 |
// 导出字典类型 |
|
42 |
export const exportDictType = (params) => { |
|
43 |
return request.download({ url: '/system/dict-type/export', params }) |
|
44 |
} |