代码生成
This commit is contained in:
1 parent
ec3c0ea450
commit
410946fab5
4 files changed
+19174
-18424
No files matched your search
@@ -0,0 +1,43 @@
|
||||
import request from '@/config/axios'
|
||||
|
||||
// 贩卖机信息 VO
|
||||
export interface DeviceVO {
|
||||
id: number // 表编号,自增
|
||||
name: string // 设备名称
|
||||
deviceId: string // 设备IMEI
|
||||
productUrl: string // 访问商品地址
|
||||
fileUrl: string // 文件地址
|
||||
}
|
||||
|
||||
// 贩卖机信息 API
|
||||
export const DeviceApi = {
|
||||
// 查询贩卖机信息分页
|
||||
getDevicePage: async (params: any) => {
|
||||
return await request.get({ url: `/product/device/page`, params })
|
||||
},
|
||||
|
||||
// 查询贩卖机信息详情
|
||||
getDevice: async (id: number) => {
|
||||
return await request.get({ url: `/product/device/get?id=` + id })
|
||||
},
|
||||
|
||||
// 新增贩卖机信息
|
||||
createDevice: async (data: DeviceVO) => {
|
||||
return await request.post({ url: `/product/device/create`, data })
|
||||
},
|
||||
|
||||
// 修改贩卖机信息
|
||||
updateDevice: async (data: DeviceVO) => {
|
||||
return await request.put({ url: `/product/device/update`, data })
|
||||
},
|
||||
|
||||
// 删除贩卖机信息
|
||||
deleteDevice: async (id: number) => {
|
||||
return await request.delete({ url: `/product/device/delete?id=` + id })
|
||||
},
|
||||
|
||||
// 导出贩卖机信息 Excel
|
||||
exportDevice: async (params) => {
|
||||
return await request.download({ url: `/product/device/export-excel`, params })
|
||||
},
|
||||
}␍
|
||||
Reference in new issue
Block a user