| | |
| | | |
| | | // 查询MmItemType列表 |
| | | export const getMmItemTypePage = (params: MmItemTypePageReqVO) => { |
| | | return request.get({ url: '/pre/item-type/page', params }) |
| | | return request.get({ url: '/model/pre/item-type/page', params }) |
| | | } |
| | | |
| | | // 查询MmItemType详情 |
| | | export const getMmItemType = (id: number) => { |
| | | return request.get({ url: `/pre/item-type/get/${id}`}) |
| | | return request.get({ url: `/model/pre/item-type/get/${id}`}) |
| | | } |
| | | |
| | | // 新增MmItemType |
| | | export const createMmItemType = (data: MmItemTypeVO) => { |
| | | return request.post({ url: '/pre/item-type/create', data }) |
| | | return request.post({ url: '/model/pre/item-type/create', data }) |
| | | } |
| | | |
| | | // 修改MmItemType |
| | | export const updateMmItemType = (data: MmItemTypeVO) => { |
| | | return request.put({ url: '/pre/item-type/update', data }) |
| | | return request.put({ url: '/model/pre/item-type/update', data }) |
| | | } |
| | | |
| | | // 删除MmItemType |
| | | export const deleteMmItemType = (id: number) => { |
| | | return request.delete({ url: '/pre/item-type/delete?id=' + id }) |
| | | return request.delete({ url: '/model/pre/item-type/delete?id=' + id }) |
| | | } |
| | | |
| | | |
| | | // 查询getItemTypeList详情 |
| | | export const getItemTypeList = () => { |
| | | return request.get({ url: `/model/pre/item-type/list`}) |
| | | } |