feat: Phase 2 - 订阅管理前端页面(对接真实API) #84
Reference in New Issue
Block a user
Delete Branch "feat/phase2-subscription-ui"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
概述
订阅管理前端页面对接后端真实 API,移除所有 mock 数据。
变更文件
1.
api/subscription.tsUSE_MOCK开关及所有 mock 数据getCurrentSubscription→ GET/subscription/currentgetBillingRecords→ GET/subscription/billing-recordschangePlan→ POST/subscription/change-plancancelSubscription→ POST/subscription/canceltoggleAutoRenew→ POST/subscription/toggle-auto-renew2.
pages/subscription/Billing.tsxtoggle-auto-renew接口3.
pages/subscription/UpgradeSubscription.tsxrenewSubscription导入错误(该函数已从 API 移除)changePlan依赖
cca631974dtoc7027c07d1