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