提交 | 用户 | 时间
|
9c91ad
|
1 |
import request from '@/config/axios' |
D |
2 |
|
59946e
|
3 |
export const getPage = async (params) => { |
9c91ad
|
4 |
return await request.get({ url: '/model/mpk/project/page', params }) |
D |
5 |
} |
|
6 |
|
|
7 |
export const getProject = async (id: number) => { |
|
8 |
return await request.get({ url: '/model/mpk/project/' + id }) |
|
9 |
} |
|
10 |
|
|
11 |
export const createProject = async (data) => { |
|
12 |
return await request.post({ url: '/model/mpk/project', data: data }) |
|
13 |
} |
|
14 |
|
|
15 |
export const updateProject = async (params) => { |
|
16 |
return await request.put({ url: '/model/mpk/project', data: params }) |
|
17 |
} |
|
18 |
|
|
19 |
export const deleteProject = async (id: number) => { |
|
20 |
return await request.delete({ url: '/model/mpk/project?id=' + id }) |
|
21 |
} |
|
22 |
|
|
23 |
export const packageProject = (params) => { |
afa3cb
|
24 |
// 超时时间两分钟 |
D |
25 |
return request.download({ url: '/model/mpk/file/packageModel', params, timeout: 2 * 60 * 1000 }) |
9c91ad
|
26 |
} |
D |
27 |
|
|
28 |
export const list = () => { |
|
29 |
return request.get({ url: '/model/mpk/project/list'}) |
|
30 |
} |
|
31 |
|
59946e
|
32 |
export const getProjectModel = async (params) => { |
9c91ad
|
33 |
return await request.get({ url: '/model/mpk/project/getProjectModel', params }) |
D |
34 |
} |