This commit is contained in:
2024-03-28 16:13:29 +08:00
parent de92031284
commit e7721ff978
5 changed files with 834 additions and 174 deletions

View File

@@ -46,4 +46,24 @@ export default{
method: 'get',
})
},
getEdit(id) { // 根据id查询商品数据接口
return request({
url: `/oil-mall/mallProductInfo/getEdit/${id}`,
method: 'get'
})
},
saveProduct(data) { // 新增商品接口
return request({
url: `/oil-mall/mobile/saveProduct`,
method: 'post',
data
})
},
updateProduct(data) { // 编辑更新商品数据接口
return request({
url: `/oil-mall/mobile/updateProduct`,
method: 'post',
data
})
},
}