提交 | 用户 | 时间
|
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 |
|
13 |
filePath: string |
|
14 |
} |
|
15 |
|
|
16 |
export const getPage = async (params: PageParam) => { |
|
17 |
return await request.get({ url: '/model/mpk/file/page', params }) |
|
18 |
} |
|
19 |
|
|
20 |
export const getMpk = async (id: number) => { |
|
21 |
return await request.get({ url: '/model/mpk/file/' + id }) |
|
22 |
} |
|
23 |
|
|
24 |
export const createMpk = async (data: MpkVO) => { |
|
25 |
return await request.post({ url: '/model/mpk/file', data: data }) |
|
26 |
} |
|
27 |
|
|
28 |
export const updateMpk = async (params: MpkVO) => { |
|
29 |
return await request.put({ url: '/model/mpk/file', data: params }) |
|
30 |
} |
|
31 |
|
|
32 |
export const deleteMpk = async (id: number) => { |
|
33 |
return await request.delete({ url: '/model/mpk/file?id=' + id }) |
|
34 |
} |
|
35 |
|
|
36 |
export const generatorCode = (params) => { |
|
37 |
return request.download({ url: '/model/mpk/file/generat', params }) |
|
38 |
} |
|
39 |
|
|
40 |
export const modelRun = (params) => { |
|
41 |
return request.post({ url: '/model/mpk/api/run', data: params }) |
|
42 |
} |
|
43 |
|
|
44 |
export const list = () => { |
|
45 |
return request.get({ url: '/model/mpk/file/list'}) |
|
46 |
} |