This commit is contained in:
menxipeng
2025-10-27 23:46:03 +08:00
parent 0f692d6595
commit 8a62709759
39 changed files with 1438 additions and 204 deletions

View File

@@ -0,0 +1,44 @@
import request from '@/utils/request'
// 查询商品列表
export function listProduct(query) {
return request({
url: '/system/product/list',
method: 'get',
params: query
})
}
// 查询商品详细
export function getProduct(id) {
return request({
url: '/system/product/' + id,
method: 'get'
})
}
// 新增商品
export function addProduct(data) {
return request({
url: '/system/product',
method: 'post',
data: data
})
}
// 修改商品
export function updateProduct(data) {
return request({
url: '/system/product',
method: 'put',
data: data
})
}
// 删除商品
export function delProduct(id) {
return request({
url: '/system/product/' + id,
method: 'delete'
})
}