import request from '@/utils/request'

// 提现申请列表
export function listPlatformWithdrawAudits(query) {
  return request({
    url: '/agri/finance/withdrawAudit/list',
    method: 'get',
    params: query
  })
}

// 待审核数量
export function getPlatformWithdrawAuditPendingCount() {
  return request({
    url: '/agri/finance/withdrawAudit/pendingCount',
    method: 'get'
  })
}

// 审核通过
export function approvePlatformWithdrawAudit(withdrawId, data) {
  return request({
    url: '/agri/finance/withdrawAudit/approve/' + withdrawId,
    method: 'put',
    data: data
  })
}

// 审核驳回
export function rejectPlatformWithdrawAudit(data) {
  return request({
    url: '/agri/finance/withdrawAudit/reject',
    method: 'put',
    data: data
  })
}
