Files
admin-ui/src/api/customerService/product/index.ts

38 lines
708 B
TypeScript
Raw Normal View History

2025-11-28 17:17:07 +08:00
import request, { newService } from '/@/utils/request';
2025-11-25 17:02:31 +08:00
2025-11-28 17:17:07 +08:00
//添加产品
export function getproductAdd(data: object) {
return newService({
url: '/customerService/product/add',
method: 'post',
data: data,
2025-11-25 17:02:31 +08:00
});
}
2025-11-28 17:17:07 +08:00
//删除产品
export function deleteProduct(data: object) {
return newService({
url: '/customerService/product/delete',
2025-11-25 17:02:31 +08:00
method: 'post',
data: data,
});
}
2025-11-28 17:17:07 +08:00
//获取产品列表
export function getList(data: object) {
return newService({
url: '/customerService/product/list',
2025-11-25 17:02:31 +08:00
method: 'get',
2025-12-01 16:30:31 +08:00
params: data,
2025-11-25 17:02:31 +08:00
});
}
2025-11-28 17:17:07 +08:00
//更新产品
export function updateProduct(data: object) {
return newService({
url: '/customerService/product/update',
method: 'post',
data: data,
2025-11-25 17:02:31 +08:00
});
}