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