add
Some checks failed
CI / Test (ubuntu-latest) (push) Has been cancelled
CI / Test (windows-latest) (push) Has been cancelled
CI / Lint (ubuntu-latest) (push) Has been cancelled
CI / Lint (windows-latest) (push) Has been cancelled
CI / Check (ubuntu-latest) (push) Has been cancelled
CI / Check (windows-latest) (push) Has been cancelled
CI / CI OK (push) Has been cancelled
CodeQL / Analyze (javascript-typescript) (push) Has been cancelled
Deploy Website on push / Deploy Push Playground Ftp (push) Has been cancelled
Deploy Website on push / Deploy Push Docs Ftp (push) Has been cancelled
Deploy Website on push / Deploy Push Antd Ftp (push) Has been cancelled
Deploy Website on push / Deploy Push Element Ftp (push) Has been cancelled
Deploy Website on push / Deploy Push Naive Ftp (push) Has been cancelled
Deploy Website on push / Rerun on failure (push) Has been cancelled
Release Drafter / update_release_draft (push) Has been cancelled
Some checks failed
CI / Test (ubuntu-latest) (push) Has been cancelled
CI / Test (windows-latest) (push) Has been cancelled
CI / Lint (ubuntu-latest) (push) Has been cancelled
CI / Lint (windows-latest) (push) Has been cancelled
CI / Check (ubuntu-latest) (push) Has been cancelled
CI / Check (windows-latest) (push) Has been cancelled
CI / CI OK (push) Has been cancelled
CodeQL / Analyze (javascript-typescript) (push) Has been cancelled
Deploy Website on push / Deploy Push Playground Ftp (push) Has been cancelled
Deploy Website on push / Deploy Push Docs Ftp (push) Has been cancelled
Deploy Website on push / Deploy Push Antd Ftp (push) Has been cancelled
Deploy Website on push / Deploy Push Element Ftp (push) Has been cancelled
Deploy Website on push / Deploy Push Naive Ftp (push) Has been cancelled
Deploy Website on push / Rerun on failure (push) Has been cancelled
Release Drafter / update_release_draft (push) Has been cancelled
This commit is contained in:
@@ -368,6 +368,37 @@ async function getAgentCommissionList(
|
||||
);
|
||||
}
|
||||
|
||||
/**
|
||||
* 更新代理佣金状态
|
||||
*/
|
||||
async function updateAgentCommissionStatus(
|
||||
id: number,
|
||||
status: number,
|
||||
) {
|
||||
return requestClient.post<{ success: boolean }>(
|
||||
'/agent/agent-commission/update-status',
|
||||
{
|
||||
id,
|
||||
status,
|
||||
},
|
||||
);
|
||||
}
|
||||
|
||||
/**
|
||||
* 批量解冻代理佣金
|
||||
*/
|
||||
async function batchUnfreezeAgentCommission(
|
||||
agentId?: number,
|
||||
) {
|
||||
return requestClient.post<{
|
||||
success: boolean;
|
||||
count: number;
|
||||
amount: number;
|
||||
}>('/agent/agent-commission/batch-unfreeze', {
|
||||
agent_id: agentId,
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取代理奖励列表
|
||||
*/
|
||||
@@ -541,6 +572,7 @@ async function getAgentLinkProductStatistics() {
|
||||
}
|
||||
|
||||
export {
|
||||
batchUnfreezeAgentCommission,
|
||||
getAgentCommissionDeductionList,
|
||||
getAgentCommissionList,
|
||||
getAgentLinkList,
|
||||
@@ -556,6 +588,7 @@ export {
|
||||
getMembershipRechargeOrderList,
|
||||
getWithdrawalStatistics,
|
||||
reviewBankCardWithdrawal,
|
||||
updateAgentCommissionStatus,
|
||||
updateAgentMembershipConfig,
|
||||
updateAgentProductionConfig,
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user