import {
  approveWithdrawalApplyType,
  listPageWithdrawalApplyType,
  statisticsType,
} from '~/api/interface/depleteManageType';
import axios from '~/api/request';

export class DepleteManageTypeAPI {
  // 提现列表
  static getListPageWithdrawalApply: listPageWithdrawalApplyType = (data) =>
    axios.post('/userapp/withdrawal/listPageWithdrawalApply', data);
  //提现审批
  static approveWithdrawalApply: approveWithdrawalApplyType = (params) =>
    axios.get('/userapp/withdrawal/approveWithdrawalApply', { params });
  //   提现数据统计
  static getCashAmountAndWithdrawAmount: statisticsType = () =>
    axios.get('/userapp/withdrawal/getCashAmountAndWithdrawAmount');
}
