提交 | 用户 | 时间
|
7462da
|
1 |
import request from '@/config/axios' |
L |
2 |
|
36730e
|
3 |
export interface DmModuleVO { |
7462da
|
4 |
id: string |
36730e
|
5 |
modulename: string, |
潘 |
6 |
moduletype: string, |
|
7 |
cycle: string, |
|
8 |
modulenavconfig: string |
7462da
|
9 |
} |
L |
10 |
|
36730e
|
11 |
export interface DmModulePageReqVO extends PageParam { |
7462da
|
12 |
modulename?: string |
L |
13 |
} |
|
14 |
|
36730e
|
15 |
// 查询DmModule列表 |
潘 |
16 |
export const getDmModulePage = (params: DmModulePageReqVO) => { |
|
17 |
return request.get({ url: '/model/pre/module/page', params }) |
7462da
|
18 |
} |
L |
19 |
|
36730e
|
20 |
// 查询DmModule详情 |
潘 |
21 |
export const getDmModule = (id: number) => { |
|
22 |
return request.get({ url: `/model/pre/module/get/${id}`}) |
7462da
|
23 |
} |
L |
24 |
|
36730e
|
25 |
// 新增DmModule |
潘 |
26 |
export const createDmModule = (data: DmModuleVO) => { |
|
27 |
return request.post({ url: '/model/pre/module/create', data }) |
7462da
|
28 |
} |
L |
29 |
|
36730e
|
30 |
// 修改DmModule |
潘 |
31 |
export const updateDmModule = (data: DmModuleVO) => { |
|
32 |
return request.put({ url: '/model/pre/module/update', data }) |
7462da
|
33 |
} |
L |
34 |
|
36730e
|
35 |
// 删除DmModule |
潘 |
36 |
export const deleteDmModule = (id: number) => { |
|
37 |
return request.delete({ url: '/model/pre/module/delete?id=' + id }) |
7462da
|
38 |
} |
cd9f11
|
39 |
|
L |
40 |
// 查询getModuleList详情 |
|
41 |
export const getModuleList = () => { |
|
42 |
return request.get({ url: `/model/pre/module/list`}) |
|
43 |
} |