This commit is contained in:
menxipeng
2025-10-28 21:39:50 +08:00
parent 8a62709759
commit 1eb298f3c9
3 changed files with 34 additions and 178 deletions

View File

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