
import {req} from "../request"

//兑换订单列表
const index = (type) => req({url: "orders/index", data: {type: type}})

//兑换订单详情
const show = (orderid) => req({url: "orders/show?", data: {orderid: orderid}})

//取消兑换订单
const cancel = (orderid) => req({url: "orders/cancel?orderid=" + orderid , method: "POST"})

//兑换订单支付
const payments = (orderid) => req({url: "payments/order?orderid=" + orderid})

export default({
	index,
	show,
	cancel,
	payments
})
