系統架構 · 資料庫結構 · API 清單(供 C fans 團隊參考)
跨平台三端共用一套後端,前後端皆 TypeScript。
完整 schema 視覺化見 product/cfans-db-schema-v1.html;以下為分域總覽。
App 與後台透過下列 RPC 與後端互動(另有約 25 支內部 trigger/guard 函式維持資料完整性,此處省略)。
get_recommended_videos 為你推薦get_following_videos 追蹤動態get_hot_videos / get_hot_creators / get_hot_paid_contents 熱搜search_videos_by_hashtag / search_videos_by_topic / search_accountstopup_diamond 儲值 · spend_diamond 消費unlock_video / unlock_paid_content / unlock_paid_message 解鎖subscribe_to_creator 訂閱 · is_active_subscriberwithdraw_earnings 提領 · get_unlocked_content_urlfind_or_create_conversation 開對話send_paid_message 付費私訊delete_my_account 刪除帳號(軟刪+匿名化)handle_new_auth_user 註冊自動建檔(trigger)phone-signup-bypass 手機/Email 帳號建立admin_dashboard_stats / admin_search_usersadmin_mark_withdrawal_paid 標記撥款 · admin_set_creator_fees 費率settle_usd_subscriptions USD 月結 · has_scope/my_scopes 權限