
// 订单相关接口

const api = {
	// 订单-订单状态统计
	getOrderStatistics: {
		url: '/order/statistics',
		method: 'POST',
		auth: true,
	},
	// 订单-列表查询
	getOrderList: {
		url: '/order/list',
		method: 'GET',
		auth: true,
		showLoading : true,
	},
	// 订单详情
	getOrderDetail: {
		url: '/order/detail',
		method: 'GET',
		auth: true,
		showLoading : true,
	},
	// 创建订单
	createOrder: {
		url: '/order/create',
		method: 'POST',
		auth: true, 
		limit : 500,
		showLoading : true,
	},
	// 订单详情
	detailOrder: {
		url: '/order/detail',
		method: 'GET',
		auth: true, 
		limit : 500,
		showLoading : true,
	},
	// 再次支付
	payOrder: {
		url: '/order/pay',
		method: 'POST',
		auth: true, 
		limit : 500,
		showLoading : true,
	},
	// 确认收货
	confirmOrder: {
		url: '/order/confirm',
		method: 'POST',
		auth: true, 
		limit : 500,
		showLoading : true,
	},
	// 申请售后
	afterSaleOrder: {
		url: '/order/afterSale',
		method: 'POST',
		auth: true, 
		limit : 500,
		showLoading : true,
	},
	// 订单评价
	evaluateOrder: {
		url: '/order/evaluate',
		method: 'POST',
		auth: true, 
		limit : 500,
		showLoading : true,
	},
	// 商品评价数量
	productEvaluateNum: {
		url: '/order/productEvaluateNum',
		method: 'POST',
	},
	// 商品评价
	productEvaluate: {
		url: '/order/productEvaluate',
		method: 'POST',
	},
	// 我的评价
	myEvaluate: {
		url: '/order/myEvaluate',
		method: 'POST',
	},
	// 删除评价
	deleteEvaluate: {
		url: '/order/deleteEvaluate',
		method: 'POST',
		auth: true, 
		limit : 500,
		showLoading : true,
	},
}

export default api