feat: 增加充值功能

This commit is contained in:
archer
2023-03-21 23:14:28 +08:00
parent 129f3a2a30
commit d065539707
24 changed files with 389 additions and 35 deletions

View File

@@ -55,3 +55,12 @@ export const getUserBills = (data: RequestPaging) =>
...res,
data: res.data.map((bill) => adaptBill(bill))
}));
export const getPayCode = (amount: number) =>
GET<{
codeUrl: string;
orderId: string;
}>(`/user/getPayCode?amount=${amount}`);
export const checkPayResult = (orderId: string) =>
GET<number>(`/user/checkPayResult?orderId=${orderId}`);