替换商品为作品

This commit is contained in:
xiaowang
2026-03-05 16:08:27 +08:00
parent 0cae87e957
commit 6cbd3bc076
16 changed files with 98 additions and 98 deletions
+3 -3
View File
@@ -6,17 +6,17 @@ interface CartItem {
}
export const cartApi = {
// 添加商品到购物车
// 添加作品到购物车
addToCart: (item: CartItem) => {
return api.post('/cart/add', item)
},
// 从购物车移除商品
// 从购物车移除作品
removeFromCart: (productId: number) => {
return api.delete(`/cart/remove/${productId}`)
},
// 更新购物车商品数量
// 更新购物车作品数量
updateCartQuantity: (item: CartItem) => {
return api.put('/cart/update', item)
},