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