import request from '@/utils/request'
import { sellerShopHeaders } from '@/utils/sellerShop'

// 提现记录列表
export function listSellerWithdraws(query) {
  return request({
    url: '/agri/seller/finance/withdraw/list',
    method: 'get',
    params: query,
    headers: sellerShopHeaders()
  })
}

// 可用余额（提交页辅助）
export function getSellerWithdrawBalance() {
  return request({
    url: '/agri/seller/finance/withdraw/balance',
    method: 'get',
    headers: sellerShopHeaders()
  })
}

// 提交提现申请
export function submitSellerWithdraw(data) {
  return request({
    url: '/agri/seller/finance/withdraw/submit',
    method: 'post',
    data: data,
    headers: sellerShopHeaders()
  })
}
