addanalysis

This commit is contained in:
2025-12-27 13:51:08 +08:00
parent a718ac7874
commit b392f9cf0d
7 changed files with 265 additions and 126 deletions

View File

@@ -130,6 +130,12 @@ export namespace AgentApi {
withdraw_no?: string;
}
// 提现统计数据
export interface WithdrawalStatistics {
total_withdrawal_amount: number;
today_withdrawal_amount: number;
}
// 代理上级抽佣相关接口
export interface AgentCommissionDeductionListItem {
id: number;
@@ -446,6 +452,15 @@ async function updateAgentMembershipConfig(
);
}
/**
* 获取提现统计数据
*/
async function getWithdrawalStatistics() {
return requestClient.get<AgentApi.WithdrawalStatistics>(
'/agent/agent-withdrawal/statistics',
);
}
export {
getAgentCommissionDeductionList,
getAgentCommissionList,
@@ -457,6 +472,7 @@ export {
getAgentRewardList,
getAgentWithdrawalList,
getMembershipRechargeOrderList,
getWithdrawalStatistics,
updateAgentMembershipConfig,
updateAgentProductionConfig,
};