新增暂停时长
This commit is contained in:
+22
-3
@@ -135,11 +135,30 @@ export const createAliPayment = (orderNo) => {
|
||||
})
|
||||
}
|
||||
|
||||
// 获取正在使用中的订单
|
||||
export const getInUseOrder = () => {
|
||||
// 获取正在使用中的订单(可传 hideLoading: true 由业务自行控制 loading)
|
||||
export const getInUseOrder = (opts = {}) => {
|
||||
return request({
|
||||
url: '/app/order/inUse',
|
||||
method: 'get'
|
||||
method: 'get',
|
||||
...opts
|
||||
})
|
||||
}
|
||||
|
||||
// 查询订单是否可申请暂停计费
|
||||
export const getPauseBillingEligible = (orderId) => {
|
||||
return request({
|
||||
url: `/app/order/pauseBilling/eligible/${orderId}`,
|
||||
method: 'get',
|
||||
hideLoading: true
|
||||
})
|
||||
}
|
||||
|
||||
// 对订单执行暂停计费
|
||||
export const requestPauseBilling = (orderId) => {
|
||||
return request({
|
||||
url: `/app/order/pauseBilling/${orderId}`,
|
||||
method: 'post',
|
||||
hideLoading: true
|
||||
})
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user