
// 购物车相关接口

const api = {
	// 购物车-列表查询
	getCartList: {
		url: '/cart/list',
		method: 'GET',
		auth: true,
		showLoading : true,
	},
	// 购物车-添加
	addCart: {
		url: '/cart/add',
		method: 'POST',
		auth: true, 
		limit : 500,
		showLoading : true,
	},
	// 购物车-批量添加
	addCartBatch: {
		url: '/cart/addList',
		method: 'POST',
		auth: true, 
		showLoading : true,
	},
	// 购物车-批量删除
	deleteCartBatch: {
		url: '/cart/deleteBatch',
		method: 'DELETE',
		auth: true,
		showLoading: true,
	},
	// 购物车-编辑购物车
	editCart: {
		url: '/cart/edit',
		method: 'PUT',
		auth: true, 
		showLoading : true,
	},
}

export default api