主要更新: 1. 按H5网页端完全重构匹配功能(match页面) - 4种匹配类型: 创业合伙/资源对接/导师顾问/团队招募 - 资源对接等类型弹出手机号/微信号输入框 - 去掉重新匹配按钮,改为返回按钮 2. 修复所有卡片对齐和宽度问题 - 目录页附录卡片居中 - 首页阅读进度卡片满宽度 - 我的页面菜单卡片对齐 - 推广中心分享卡片统一宽度 3. 修复目录页图标和文字对齐 - section-icon固定40rpx宽高 - section-title与图标垂直居中 4. 更新真实完整文章标题(62篇) - 从book目录读取真实markdown文件名 - 替换之前的简化标题 5. 新增文章数据API - /api/db/chapters - 获取完整书籍结构 - 支持按ID获取单篇文章内容
103 lines
2.0 KiB
TypeScript
103 lines
2.0 KiB
TypeScript
/**
|
|
* 分销模块导出
|
|
*
|
|
* 核心功能:
|
|
* 1. 分享链接追踪 - 记录每次点击
|
|
* 2. 30天绑定规则 - 绑定后30天内付款归属分享者
|
|
* 3. 过期提醒 - 绑定即将过期时提醒分销商
|
|
* 4. 自动提现 - 达到阈值自动打款到账户
|
|
*/
|
|
|
|
// 类型导出
|
|
export type {
|
|
DistributionBinding,
|
|
Distributor,
|
|
WithdrawAccount,
|
|
WithdrawRecord,
|
|
ClickRecord,
|
|
DistributionConfig,
|
|
ExpireReminder,
|
|
DistributionOverview,
|
|
DistributionAPIResponse,
|
|
DistributionRankItem,
|
|
} from './types';
|
|
|
|
// 服务导出
|
|
export {
|
|
// 配置
|
|
DEFAULT_DISTRIBUTION_CONFIG,
|
|
getDistributionConfig,
|
|
updateDistributionConfig,
|
|
|
|
// 绑定管理
|
|
getAllBindings,
|
|
recordClickAndBinding,
|
|
getActiveBindingForVisitor,
|
|
getBindingsForDistributor,
|
|
cancelBinding,
|
|
convertBinding,
|
|
processExpiredBindings,
|
|
|
|
// 提醒管理
|
|
getRemindersForDistributor,
|
|
getUnreadReminderCount,
|
|
markReminderRead,
|
|
|
|
// 分销商管理
|
|
getDistributor,
|
|
getOrCreateDistributor,
|
|
setAutoWithdraw,
|
|
getAllDistributors,
|
|
|
|
// 提现管理
|
|
getAllWithdrawals,
|
|
getWithdrawalsForDistributor,
|
|
requestWithdraw,
|
|
executeAutoWithdraw,
|
|
processWithdrawalPayment,
|
|
approveWithdrawal,
|
|
rejectWithdrawal,
|
|
|
|
// 统计
|
|
getDistributionOverview,
|
|
getDistributionRanking,
|
|
} from './service';
|
|
|
|
// 自动打款服务导出
|
|
export {
|
|
wechatTransfer,
|
|
alipayTransfer,
|
|
processWithdrawalPayment as processPayment,
|
|
processBatchAutoWithdrawals,
|
|
queryWechatTransfer,
|
|
queryAlipayTransfer,
|
|
} from './auto-payment';
|
|
|
|
export type {
|
|
PaymentResult,
|
|
WechatPayConfig,
|
|
AlipayConfig,
|
|
} from './auto-payment';
|
|
|
|
// WebSocket实时推送服务导出
|
|
export {
|
|
pushMessage,
|
|
getMessages,
|
|
clearMessages,
|
|
pushBindingExpiringReminder,
|
|
pushBindingExpiredNotice,
|
|
pushBindingConvertedNotice,
|
|
pushWithdrawalUpdate,
|
|
pushEarningsAdded,
|
|
pushSystemNotice,
|
|
createWebSocketClient,
|
|
} from './websocket';
|
|
|
|
export type {
|
|
WebSocketMessageType,
|
|
WebSocketMessage,
|
|
BindingExpiringData,
|
|
WithdrawalUpdateData,
|
|
EarningsAddedData,
|
|
} from './websocket';
|