import { requestClient } from '#/api/request';

const prefix = 'withdrawal-application/';

/**
 * 提现申请列表
 */
export async function getWithdrawalApplicationList(data: any = {}) {
  return requestClient.get<any>(`${prefix}list`, { params: data });
}

/**
 * 申请提现（后端方法名为 withdrawal）
 */
export async function applyWithdrawal(data: { amount: number }) {
  return requestClient.post<any>(`${prefix}withdrawal`, data);
}
