feat:商品管理

This commit is contained in:
weiwei committed 2025-09-11 12:38:54 +08:00
1 parent f716bd685f
commit a64cda2312
9 files changed
+411 -91

No files matched your search

+17 -9
View File
@@ -9,13 +9,14 @@ export default {
params: { productLimit: 5 },
})
},
// 获取超市商户分类列表
// getShopCategory: (): Promise<any> => {
// return request({
// url: "/supermarket/app/mall/merchant/category/list",
// method: "GET",
// })
// },
// 获取商品分类列表
getGoodsCategory: (params?: any): Promise<any> => {
return request({
url: "/supermarket/app/mall/merchant/category/list",
method: "GET",
params,
})
},
// 获取超市详情
getShopDetail: (id: string): Promise<any> => {
return request({
@@ -23,8 +24,8 @@ export default {
method: "GET",
})
},
// 获取超市商品分类列表
getGoodsCategory: (params: { merchantId: string }): Promise<any> => {
// 获取超市商品分类列表树
getGoodsCategoryTree: (params: { merchantId: string }): Promise<any> => {
return request({
url: `/supermarket/app/mall/category/tree`,
method: "GET",
@@ -46,4 +47,11 @@ export default {
method: "GET",
})
},
// 删除商品
deleteGoods: (id: string): Promise<any> => {
return request({
url: `/supermarket/app/mall/merchant/product/${id}`,
method: "DELETE",
})
},
}