Initial commit of akmon project
This commit is contained in:
16
doc_mall/README_subscription_consumer.md
Normal file
16
doc_mall/README_subscription_consumer.md
Normal file
@@ -0,0 +1,16 @@
|
||||
# 软件订阅(consumer)
|
||||
|
||||
入口:
|
||||
- 用户中心 -> 软件订阅
|
||||
|
||||
页面:
|
||||
- plan-list.uvue:展示可用订阅方案(ml_subscription_plans)
|
||||
- plan-detail.uvue:展示某个订阅方案详情
|
||||
- subscribe-checkout.uvue:确认支付并创建订阅(写入 ml_user_subscriptions)
|
||||
|
||||
依赖表(示例名称,可按实际后端调整):
|
||||
- ml_subscription_plans(id, plan_code, name, description, features jsonb, price numeric, currency text, billing_period text, trial_days int, is_active bool, sort_order int, created_at, updated_at)
|
||||
- ml_user_subscriptions(id, user_id, plan_id, status text, start_date timestamptz, end_date timestamptz, next_billing_date timestamptz, auto_renew bool, cancel_at_period_end bool, metadata jsonb, created_at, updated_at)
|
||||
|
||||
注意:
|
||||
- 本实现使用 uni-app-x 兼容组件与 supaClient。实际支付请替换为你们的支付网关,并在后端完成对账与签名校验。
|
||||
Reference in New Issue
Block a user