推拿小程序前端代码仓库
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

102 lines
1.4 KiB

// 订单相关接口
const api = {
/**
* 创建订单
*/
createOrder: {
url: '/order/createOrder',
method: 'POST',
limit: 500,
auth: true,
showLoading: true,
},
/**
* 支付订单
*/
payOrder: {
url: '/order/payOrder',
method: 'POST',
limit: 500,
auth: true,
showLoading: true,
},
/**
* 核销订单
*/
overOrder: {
url: '/order/overOrder',
method: 'POST',
limit: 500,
auth: true,
showLoading: true,
},
/**
* 查询订单列表
*/
queryOrderList: {
url: '/order/queryOrderList',
method: 'GET',
auth: true,
},
/**
* 获取订单详情
*/
queryOrderById: {
url: '/order/queryOrderById',
method: 'GET',
auth: true,
},
/**
* 取消订单
*/
cancelOrder: {
url: '/order/cancelOrder',
method: 'POST',
auth: true,
limit: 1000,
showLoading: true,
},
/**
* 删除订单
*/
deleteOrder: {
url: '/order/deleteOrder',
method: 'POST',
auth: true,
limit: 1000,
showLoading: true,
},
/**
* 申请退款
*/
refundOrder: {
url: '/refound/refund',
method: 'POST',
limit: 500,
auth: true,
showLoading: true,
},
fetchOverOrder: {
url: '/order/overOrderList',
method: 'POST',
limit : 500,
auth : true,
showLoading : true,
},
fetchOverVoucher: {
url: '/order/useVouchersList',
method: 'POST',
limit : 500,
auth : true,
showLoading : true,
},
}
export default api