新增暂停时长

This commit is contained in:
2026-04-08 18:01:56 +08:00
parent 9ca377907b
commit 09be26e2aa
9 changed files with 451 additions and 110 deletions
+22 -3
View File
@@ -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
})
}