RechargeController.ts
1.43 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
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
}