解决app/api代码合并冲突

This commit is contained in:
Lrd
2026-06-11 17:06:28 +08:00
83 changed files with 8358 additions and 2858 deletions
+21
View File
@@ -262,6 +262,27 @@ export async function getMenuConfigs(): Promise<any[]> {
export async function getRechargePackages(): Promise<any[]> {
return api.get('/recharge-packages');
}
export async function getPaymentMethods(): Promise<{ alipay: boolean; wechat: boolean }> {
return api.get('/payments/methods');
}
export async function createRechargeOrder(planId: string, method: string = 'wechat'): Promise<any> {
return api.post('/payments/recharge', { plan: planId, method });
}
export async function getPaymentOrders(): Promise<any[]> {
return api.get('/payments/orders');
}
export async function getPaymentOrder(orderNo: string): Promise<any> {
return api.get(`/payments/orders/${orderNo}`);
}
export async function cancelPaymentOrder(orderNo: string): Promise<void> {
return api.post(`/payments/orders/${orderNo}/cancel`);
}
export async function getCreditRatios(): Promise<any[]> {
return api.get('/credits/ratios');
}