购物车:接入修改数量 API,剩余所有

This commit is contained in:
YunaiV committed 2023-08-30 19:14:46 +08:00
1 parent 6bdbebe2a0
commit e45372d4b6
2 files changed
+263 -292

No files matched your search

+7
View File
@@ -19,6 +19,13 @@ export function createFavorite(spuId) {
});
}
// 添加多个商品收藏
export function createFavoriteList(spuIds) {
return request.post('app-api/product/favorite/create-list', {
spuIds
});
}
// 取消商品收藏
export function deleteFavorite(spuId) {
return request.delete('app-api/product/favorite/delete', {