提交 | 用户 | 时间
|
448126
|
1 |
import request from '@/config/axios' |
潘 |
2 |
|
|
3 |
export interface MpkPackVO { |
|
4 |
id: string |
|
5 |
packName: string |
|
6 |
packDesc: string |
|
7 |
modelPath: string |
|
8 |
sort: number |
|
9 |
} |
|
10 |
|
|
11 |
export interface MpkPackPageReqVO extends PageParam { |
|
12 |
packName?: string |
|
13 |
} |
|
14 |
|
|
15 |
// 查询分页列表 |
|
16 |
export const getPage = (params: MpkPackPageReqVO) => { |
|
17 |
return request.get({ url: '/model/mpk/pack/page', params }) |
|
18 |
} |
|
19 |
|
|
20 |
// 查询列表 |
|
21 |
export const getList = () => { |
|
22 |
return request.get({ url: '/model/mpk/pack/list' }) |
|
23 |
} |
|
24 |
|
|
25 |
// 获得 |
|
26 |
export const getPack = (id: number) => { |
|
27 |
return request.get({ url: '/model/mpk/pack/get?id=' + id }) |
|
28 |
} |
|
29 |
|
|
30 |
// 新增 |
|
31 |
export const createPack = (data: MpkPackVO) => { |
|
32 |
return request.post({ url: '/model/mpk/pack/create', data }) |
|
33 |
} |
|
34 |
|
|
35 |
// 修改 |
|
36 |
export const updatePack = (data: MpkPackVO) => { |
|
37 |
return request.put({ url: '/model/mpk/pack/update', data }) |
|
38 |
} |
|
39 |
|
|
40 |
// 删除 |
|
41 |
export const deletePack = (id: string) => { |
|
42 |
return request.delete({ url: '/model/mpk/pack/delete?id=' + id }) |
|
43 |
} |