Zlpt_Portal/src/http/api/usercenter/goodsmang.ts

44 lines
1.1 KiB
TypeScript
Raw Normal View History

2023-12-06 09:38:11 +08:00
// 个人中心 承租下的商品管理
2023-12-14 09:19:43 +08:00
import { get, post, put } from '../../index'
2023-12-06 09:38:11 +08:00
2024-11-26 18:30:19 +08:00
// 获取装备列表
export const getEquipmentListApi = (data: any) => {
return post('/material-mall/dev/devList', data)
}
//获取装备详情
2024-11-27 14:39:19 +08:00
export const getDetailApi = (id: any) => {
return get(`/material-mall/dev/getInfo/${id}`, {})
2023-12-06 09:38:11 +08:00
}
2024-11-26 18:30:19 +08:00
// 新增装备
2024-11-27 14:39:19 +08:00
export const equipmentAddApi = (data: any) => {
2024-11-26 18:30:19 +08:00
return post('/material-mall/dev', data)
2023-12-14 09:19:43 +08:00
}
2023-12-06 09:38:11 +08:00
2024-11-26 18:30:19 +08:00
// 保存草稿
export const insertDraftApi = (data: any) => {
return post('/material-mall/dev/insertDraft', data)
}
//装备装备类目树结构数据
export const getEquipmentTypeApi = () => {
return get('/material-mall/maType/getEquipmentType', {})
}
//装备所属公司
export const getCompanyListApi = () => {
return get('/material-mall/dev/companyList', {})
2023-12-06 15:58:21 +08:00
}
2024-11-26 18:30:19 +08:00
// 删除接口
export const removeDeviceApi = (data: any) => {
2023-12-08 12:09:54 +08:00
return post('/zlpt-equip/dev/remove', data)
2023-12-06 15:58:21 +08:00
}
2024-11-26 18:30:19 +08:00
// 上下架(批量)
export const updateUpDownApi = (data: any) => {
return post('/material-mall/dev/updateUpDown', data)
}