👽 Update the API request path due to the sepration of the wallet service

This commit is contained in:
2026-02-05 00:14:18 +08:00
parent 0237e457fc
commit 4b1c9b5820
7 changed files with 297 additions and 325 deletions

View File

@@ -232,7 +232,7 @@ class ComposeFundSheet extends HookConsumerWidget {
showLoadingModal(context);
final resp = await client.post(
'/pass/wallets/funds',
'/wallet/wallets/funds',
data: result,
options: Options(
headers: {'X-Noop': true},
@@ -253,7 +253,7 @@ class ComposeFundSheet extends HookConsumerWidget {
}
final orderResp = await client.post(
'/pass/wallets/funds/${fund.id}/order',
'/wallet/wallets/funds/${fund.id}/order',
);
final order = SnWalletOrder.fromJson(
orderResp.data,
@@ -284,7 +284,7 @@ class ComposeFundSheet extends HookConsumerWidget {
// Return the created fund
final updatedResp = await client.get(
'/pass/wallets/funds/${fund.id}',
'/wallet/wallets/funds/${fund.id}',
);
final updatedFund =
SnWalletFund.fromJson(

View File

@@ -311,7 +311,7 @@ class PostAwardSheet extends HookConsumerWidget {
final orderId = awardResponse.data['order_id'] as String;
// Fetch order details
final orderResponse = await client.get('/pass/orders/$orderId');
final orderResponse = await client.get('/wallet/orders/$orderId');
final order = SnWalletOrder.fromJson(orderResponse.data);
if (context.mounted) {