Files
soul/lib/modules/distribution/index.ts

103 lines
2.0 KiB
TypeScript
Raw Normal View History

/**
*
*
*
* 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';