2023-06-06 11:12:07 +00:00
|
|
|
import request from "@/utils/request.js";
|
|
|
|
|
|
|
|
export function addCart(data) {
|
|
|
|
return request.post("app-api/trade/cart/add", data);
|
|
|
|
}
|
|
|
|
|
2023-08-30 00:46:15 +00:00
|
|
|
export function updateCartCount(data) {
|
|
|
|
return request.put("app-api/trade/cart/update-count", data);
|
|
|
|
}
|
|
|
|
|
|
|
|
export function updateCartSelected(data) {
|
|
|
|
return request.put("app-api/trade/cart/update-selected", data);
|
2023-06-06 11:12:07 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
export function resetCart(data) {
|
|
|
|
return request.put("app-api/trade/cart/reset", data);
|
|
|
|
}
|
|
|
|
|
|
|
|
export function getCartCount() {
|
|
|
|
return request.get("app-api/trade/cart/get-count");
|
|
|
|
}
|
|
|
|
|
|
|
|
export function getCartCountMap() {
|
|
|
|
return request.get("app-api/trade/cart/get-count-map");
|
|
|
|
}
|
|
|
|
|
|
|
|
export function getCartList() {
|
|
|
|
return request.get("app-api/trade/cart/list");
|
|
|
|
}
|
|
|
|
|
|
|
|
export function deleteCart(ids) {
|
|
|
|
return request.delete("app-api/trade/cart/delete?ids=" + ids.join(','));
|
|
|
|
}
|