mirror of
https://github.com/labring/FastGPT.git
synced 2025-10-20 18:54:09 +00:00
feat: 增加充值功能
This commit is contained in:
@@ -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}`);
|
||||
|
Reference in New Issue
Block a user