From 07c3d44a8bb9148f5ce1263b05843f3bfc4529c2 Mon Sep 17 00:00:00 2001 From: xiaosi <2652281683@qq.com> Date: Mon, 31 Aug 2026 17:20:21 +0800 Subject: [PATCH] feat(api): align account billing URL constants with backend --- src/config/urls.js | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/src/config/urls.js b/src/config/urls.js index 3b0395a..b9035ac 100644 --- a/src/config/urls.js +++ b/src/config/urls.js @@ -7,6 +7,7 @@ export const AUTH_LOGIN = '/v1/auth/login' export const AUTH_REGISTER = '/v1/auth/register' export const AUTH_SMS_CODE = '/v1/auth/sms-code' export const AUTH_RESET_PASSWORD = '/v1/auth/reset-password' +export const AUTH_REFRESH = '/v1/auth/refresh' export const AUTH_LOGOUT = '/v1/auth/logout' // Docks @@ -51,7 +52,9 @@ export const COMMAND = (id) => `/v1/commands/${id}` // Account export const ACCOUNT_PROFILE = '/v1/account/profile' export const TRAFFIC_BALANCE = '/v1/account/traffic/balance' +export const TRAFFIC_PACKAGES = '/v1/account/traffic-packages' export const TRAFFIC_ORDERS = '/v1/account/traffic/orders' +export const TRAFFIC_ORDER = (id) => `/v1/account/traffic/orders/${id}` export const TRAFFIC_USAGE = '/v1/account/traffic/usage' export const ACCOUNT_RESOURCE_SUMMARY = '/v1/account/resource-summary' export const ACCOUNT_DOWNLOADS = '/v1/account/downloads' @@ -61,9 +64,14 @@ export const INVOICE_PROFILES = '/v1/account/invoice-profiles' export const INVOICE_PROFILE = (id) => `/v1/account/invoice-profiles/${id}` export const INVOICE_ORDERS = '/v1/account/invoice-orders' export const INVOICE_REQUESTS = '/v1/account/invoice-requests' +export const PAYMENTS = '/v1/account/payments' +export const PAYMENT = (id) => `/v1/account/payments/${id}` export const SIM_CARDS = '/v1/account/sim-cards' +export const SIM_CARD = (id) => `/v1/account/sim-cards/${id}` +export const SIM_PACKAGES = '/v1/account/sim-packages' +export const SIM_CARD_RECHARGE_ORDERS = (id) => `/v1/account/sim-cards/${id}/recharge-orders` +export const SIM_RECHARGE_ORDER = (id) => `/v1/account/sim-recharge-orders/${id}` export const SIM_RECHARGE_LOGS = '/v1/account/sim-recharge-logs' -export const SIM_CARD_RECHARGE = (id) => `/v1/account/sim-cards/${id}/recharge` // Users export const USERS = '/v1/users'