import api from './index.js'

/**
 * 提现相关API接口
 */

// 提交提现申请
export const applyWithdraw = (data) => {
  return api.post('/withdraw/apply', data)
}

// 获取提现记录列表
export const getWithdrawList = (params = {}) => {
  return api.get('/withdraw/list', { params })
}

// 获取提现详情
export const getWithdrawDetail = (id) => {
  return api.get(`/withdraw/${id}`)
} 