import request from '@/utils/request'

// 钱包信息
export const apiUserWallet = (params: any) => request.get({ url: '/recharge/config', data: params })

// 账户明细列表
export const apiAccountLogLists = (params: any) =>
    request.get({ url: '/account/log/list', data: params }, { ignoreCancel: true })

// 充值
export const apiRecharge = (params: any) =>
    request.post({ url: '/recharge/placeOrder', data: params })

// 充值记录列表
export const apiRechargeLogLists = (params: any) =>
    request.get({ url: '/recharge/record', data: params })

// 获取提现配置
export const apiGetWithdrawConfig = (params: any) =>
    request.get({ url: '/withdraw/getConfig', data: params })

// 提现申请
export const apiWithdrawApply = (params: any) =>
    request.post({ url: '/withdraw/apply', data: params })

// 提现申请列表
export const apiWithdrawLists = (params: any) =>
    request.get({ url: '/withdraw/lists', data: params })

// 提现申请详情
export const apiWithdrawDetail = (params: any) =>
    request.get({ url: '/withdraw/detail', data: params })
