import request from '@/utils/request';

/**
 * 获取提现列表
 * @param {object} params
 *
 * @returns {array} data
 *    uuid 提现订单id
 *    to_addrss 接收地址
 *    from_address 发送地址
 *    time 提现时间
 *    price 提现金额
 */
export const getWithdrawList = (data) => {
  return request.request({
    url: '/withdrawal/get',
    method: 'post',
    data,
  });
};

/**
 * 通过提现申请
 * @param {object} params
 *    uuid 提现订单id
 * @returns {object} data
 */
export const solveWithdraw = (data) => {
  return request.request({
    url: 'withdrawal/update',
    method: 'post',
    data,
  });
};
