feat(收支接口): 新增获取提现权限的接口
This commit is contained in:
parent
c4e754f144
commit
59bf3aaaca
@ -54,7 +54,7 @@ export function userBankSearchUserProfile(account, searchType = '') {
|
|||||||
return get(`/wallet/bank/search/user-profile?account=${account}&type=AGENT`)
|
return get(`/wallet/bank/search/user-profile?account=${account}&type=AGENT`)
|
||||||
} else {
|
} else {
|
||||||
return get(
|
return get(
|
||||||
`/wallet/bank/search/user-profile?account=${account}&type=AGENT&searchType=${searchType}`
|
`/wallet/bank/search/user-profile?account=${account}&type=AGENT&searchType=${searchType}`,
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -127,7 +127,7 @@ export function freightRecharge(data) {
|
|||||||
export const getFreightWaterFlow = async (data) => {
|
export const getFreightWaterFlow = async (data) => {
|
||||||
try {
|
try {
|
||||||
const response = await get(
|
const response = await get(
|
||||||
`/wallet/freight/balance/running/water/client/flowByUserId?userId=${data.userId}&type=${data.type}&searchId=${data.searchId}&lastId=${data.lastId}`
|
`/wallet/freight/balance/running/water/client/flowByUserId?userId=${data.userId}&type=${data.type}&searchId=${data.searchId}&lastId=${data.lastId}`,
|
||||||
)
|
)
|
||||||
return response
|
return response
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
@ -363,6 +363,18 @@ export const apiGetWithdrawRecords = async () => {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// 获取提现权限
|
||||||
|
export const apiGetWithdrawEnabled = async () => {
|
||||||
|
try {
|
||||||
|
const response = await get(`/wallet/bank/host-salary/withdraw/enabled`)
|
||||||
|
return response
|
||||||
|
} catch (error) {
|
||||||
|
console.error('Failed to fetch get all withdraw records:', error)
|
||||||
|
console.error('error:' + error.response.errorMsg)
|
||||||
|
throw error
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 获取当前余额
|
* 获取当前余额
|
||||||
* @returns {Promise} 返回当前的余额信息
|
* @returns {Promise} 返回当前的余额信息
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user