RechargeController.ts 1.43 KB

import {AxiosResponse, AxiosStatic} from 'axios';
import dayjs,{Dayjs} from 'dayjs';
// region 前端扩展导入包
import {Page} from "lib/src/core/page/Page";
import {Recharge} from "lib/src/entity/finance/entity/Recharge";
// endregion

   /**
   */
export class RechargeController{

   /**
   * 修改提现申请
   * @param approveHistory
   * @return Recharge
   */
    static auditRecharge(axios:AxiosStatic, approveHistory: any): Promise<AxiosResponse<Recharge>> {
        return axios.post('recharge/auditRecharge', approveHistory);
    }

   /**
   */
    static getRechargeById(axios:AxiosStatic, rechargeId: number): Promise<AxiosResponse<Recharge>> {
        return axios.get('recharge/getRechargeById', {params: {rechargeId: rechargeId}});
    }

   /**
   */
    static getRechargeCountByAuditState(axios:AxiosStatic): Promise<AxiosResponse<any>> {
        return axios.get('recharge/getRechargeCountByAuditState');
    }

   /**
   */
    static getRechargesByAccountId(axios:AxiosStatic, accountId: number): Promise<AxiosResponse<Recharge[]>> {
        return axios.get('recharge/getRechargesByAccountId', {params: {accountId: accountId}});
    }

   /**
   */
    static pageRecharge(axios:AxiosStatic, pagination: any): Promise<AxiosResponse<Page<Recharge>>> {
        return axios.post('recharge/pageRecharge', pagination);
    }

    static PAGE_RECHARGE = 'recharge/pageRecharge';

    // region 前端扩展代码区
    // endregion
}