提交 | 用户 | 时间
|
7b1ce6
|
1 |
import request from '@/config/axios' |
潘 |
2 |
|
|
3 |
export interface MmItemTypeVO { |
|
4 |
id: string |
|
5 |
itemtypename: string, |
|
6 |
itemclasstype: string, |
|
7 |
assemblyname: string |
|
8 |
} |
|
9 |
|
|
10 |
export interface MmItemTypePageReqVO extends PageParam { |
|
11 |
itemtypename?: string |
|
12 |
} |
|
13 |
|
|
14 |
// 查询MmItemType列表 |
|
15 |
export const getMmItemTypePage = (params: MmItemTypePageReqVO) => { |
|
16 |
return request.get({ url: '/model/pre/item-type/page', params }) |
|
17 |
} |
|
18 |
|
|
19 |
// 查询MmItemType详情 |
|
20 |
export const getMmItemType = (id: number) => { |
|
21 |
return request.get({ url: `/model/pre/item-type/get/${id}`}) |
|
22 |
} |
|
23 |
|
|
24 |
// 新增MmItemType |
|
25 |
export const createMmItemType = (data: MmItemTypeVO) => { |
|
26 |
return request.post({ url: '/model/pre/item-type/create', data }) |
|
27 |
} |
|
28 |
|
|
29 |
// 修改MmItemType |
|
30 |
export const updateMmItemType = (data: MmItemTypeVO) => { |
|
31 |
return request.put({ url: '/model/pre/item-type/update', data }) |
|
32 |
} |
|
33 |
|
|
34 |
// 删除MmItemType |
|
35 |
export const deleteMmItemType = (id: number) => { |
|
36 |
return request.delete({ url: '/model/pre/item-type/delete?id=' + id }) |
|
37 |
} |
|
38 |
|
|
39 |
|
|
40 |
// 查询getItemTypeList详情 |
|
41 |
export const getItemTypeList = () => { |
|
42 |
return request.get({ url: `/model/pre/item-type/list`}) |
|
43 |
} |