import request from "../utils/request";

// 添加购物车
export const addCart = (data: object) =>
  request("/goods/cart/add", data, "POST");

// 获取购物车
export const getCart = (data: object) => request("/goods/cart", data, "POST");

// 清空购物车
export const clearCart = (data: object) =>
  request("/goods/cart/removeAll", data, "POST");

// 获取全部购物车
export const getAllCart = () => request("/goods/all/cart", {}, "POST");
