Browse Source

feat(api): 新增 getTeamConsumption、getMyReferrer、getTeamTree

Sisyphus 1 week ago
parent
commit
df9388ccf5
1 changed files with 6 additions and 0 deletions
  1. 6 0
      cfc-frontend/utils/api.js

+ 6 - 0
cfc-frontend/utils/api.js

@@ -1927,6 +1927,12 @@ export const getCommissionBalance = () => {
   return request('/api/commission/balance', 'POST')
 }
 
+export const getTeamConsumption = (maxLevel = 3) => request('/api/commission/team/consumption', 'POST', { maxLevel })
+
+export const getMyReferrer = () => request('/api/commission/my-referrer', 'POST')
+
+export const getTeamTree = (maxLevel = 3) => request('/api/commission/team/tree', 'POST', { maxLevel })
+
 // CF 分佣
 export const getCfRate = () => request('/api/commission/cf/rate', 'POST')
 export const getCfSummary = () => request('/api/commission/cf/summary', 'POST')