feat(收支接口): 新增获取提现权限的接口

This commit is contained in:
hzj 2026-03-20 17:17:12 +08:00
parent c4e754f144
commit 59bf3aaaca

View File

@ -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} 返回当前的余额信息