提交 | 用户 | 时间
|
9c91ad
|
1 |
import request from '@/config/axios' |
D |
2 |
|
|
3 |
export interface MpkVO { |
|
4 |
id?: string |
|
5 |
pyName: string |
|
6 |
pkgName: string |
|
7 |
pyType: string |
|
8 |
className: string |
|
9 |
dataLength: number |
|
10 |
pyModule: string |
|
11 |
remark?: string |
|
12 |
modelMethods: object |
1e8d99
|
13 |
filePath: string, |
潘 |
14 |
menuAndGroup: any |
9c91ad
|
15 |
} |
D |
16 |
|
|
17 |
export const getPage = async (params: PageParam) => { |
|
18 |
return await request.get({ url: '/model/mpk/file/page', params }) |
|
19 |
} |
|
20 |
|
|
21 |
export const getMpk = async (id: number) => { |
|
22 |
return await request.get({ url: '/model/mpk/file/' + id }) |
|
23 |
} |
|
24 |
|
|
25 |
export const createMpk = async (data: MpkVO) => { |
|
26 |
return await request.post({ url: '/model/mpk/file', data: data }) |
|
27 |
} |
|
28 |
|
|
29 |
export const updateMpk = async (params: MpkVO) => { |
|
30 |
return await request.put({ url: '/model/mpk/file', data: params }) |
|
31 |
} |
|
32 |
|
|
33 |
export const deleteMpk = async (id: number) => { |
|
34 |
return await request.delete({ url: '/model/mpk/file?id=' + id }) |
|
35 |
} |
|
36 |
|
|
37 |
export const generatorCode = (params) => { |
|
38 |
return request.download({ url: '/model/mpk/file/generat', params }) |
|
39 |
} |
|
40 |
|
|
41 |
export const modelRun = (params) => { |
ebefc6
|
42 |
return request.post({ url: '/model/mpk/api/test', data: params }) |
9c91ad
|
43 |
} |
D |
44 |
|
22bece
|
45 |
export const list = (params) => { |
D |
46 |
return request.get({ url: '/model/mpk/file/list', params}) |
9c91ad
|
47 |
} |
b45bad
|
48 |
|
D |
49 |
export const publish = (params) => { |
|
50 |
return request.post({ url: '/model/mpk/file/publish', data: params}) |
|
51 |
} |