import { request } from '@/utils/request';

// 产品线加入购物车
export const addProductLineCart = (data: any) => request('/wx/productLine/cart', 'POST', data);

// 产品线收藏
export const productLineCollect = (data: any) => request('/wx/productLine/collect', 'POST', data);

// 产品线取消收藏或重新收藏
export const delProductLineCollect = (data: any) =>
	request('/wx/collect/addordelete', 'POST', data);

// 产品线点击购买
export const productLineByuNow = (data: any) => request('/wx/cart/fastadd', 'POST', data);

// 产品线点击购买后获取数据
export const getProductLineByuNowData = (data: any) => request('/wx/cart/checkout', 'GET', data);

// 产品线点击购买后获取数据
export const getProductLineIndex = (data: any) => request('/wx/productLine/index', 'GET', data);

// 产品线-删除组成商品
export const getProductLineItemDelete = (data: any) =>
	request('/wx/productLine/item/delete', 'POST', data);

// 产品线-组成商品重新选择规格
export const getProductLineItemReadd = (data: any) =>
	request('/wx/productLine/item/readd', 'POST', data);

// 产品线-删除组成商品
export const getProductLineItemAdd = (data: any) =>
	request('/wx/productLine/item/add', 'POST', data);

// 产品线-删除组成商品
export const getProductLineReAdd = (data: any) =>
	request('/wx/productLine/reAdd', 'POST', data);
	
// 产品线-导入
export const productLineUpload = (data: any) =>
	request('/wx/productLine/upload', 'POST', data);
