RechargeController.ts
1.13 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
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";
import {Pagination} from "lib/src/core/page/Pagination";
import {Refund} from "lib/src/entity/finance/entity/Refund";
// endregion
/**
*/
export class RechargeController{
/**
*/
static getRechargeById(axios:AxiosStatic, rechargeId: number): Promise<AxiosResponse<Recharge>> {
return axios.get('recharge/getRechargeById', {params: {rechargeId: rechargeId}});
}
/**
*/
static getRefundsByRechargeId(axios:AxiosStatic, rechargeId: number): Promise<AxiosResponse<Refund[]>> {
return axios.get('recharge/getRefundsByRechargeId', {params: {rechargeId: rechargeId}});
}
/**
*/
static pageRecharge(axios:AxiosStatic, pagination: Pagination<Recharge>): Promise<AxiosResponse<Page<Recharge>>> {
return axios.post('recharge/pageRecharge', pagination);
}
static PAGE_RECHARGE = 'recharge/pageRecharge';
// region 前端扩展代码区
// endregion
}