oil-station/fuintAdmin/src/api/convenienceStore/goods.js

64 lines
1.1 KiB
JavaScript
Raw Normal View History

2023-10-19 13:05:47 +08:00
import request from '@/utils/request'
// 新增商品分类
export function insertCvsGoods(data) {
return request({
url: '/business/cvsGoods/addCvsGoods',
method: 'post',
data: data
})
}
// 分页查询分类
export function selectTree(data) {
return request({
url: '/business/cvsGoods/selectTree',
2023-10-26 11:04:48 +08:00
method: 'get',
params: data
2023-10-19 13:05:47 +08:00
})
}
2023-10-28 15:03:28 +08:00
// 联级选择器 树形数据结构
export function cvsGoodsTree() {
return request({
url: '/business/cvsGoods/tree',
method: 'get',
})
}
2023-10-19 13:05:47 +08:00
// 查询一级分类
export function list(data) {
return request({
url: '/business/cvsGoods/list',
method: 'post',
data: data
})
}
// 根据id查询一级分类
2023-10-25 18:20:42 +08:00
export function selectParentById(id) {
2023-10-19 13:05:47 +08:00
return request({
2023-10-25 18:20:42 +08:00
url: '/business/cvsGoods/'+id,
2023-10-19 13:05:47 +08:00
method: 'get',
})
}
2023-10-25 18:20:42 +08:00
// 修改会员
export function updateCevGood(data) {
return request({
url: '/business/cvsGoods',
method: 'put',
data: data
})
}
2023-10-23 15:17:08 +08:00
// 根据id查询一级分类
export function deleteBYId(id) {
return request({
2023-10-25 18:20:42 +08:00
url: '/business/cvsGoods/'+id,
2023-10-23 15:17:08 +08:00
method: 'delete',
})
}
2023-10-19 13:05:47 +08:00