23 行
991 B
JavaScript
23 行
991 B
JavaScript
/**
|
|
* 接口模块 · 分销中心(用户端)
|
|
* 对应模块:分销首页 / 团队管理 / 收益明细 / 推广海报 / 佣金提现
|
|
*/
|
|
import { get, post } from '../utils/request.js'
|
|
|
|
export const distributionApi = {
|
|
/** 佣金概览(含邀请码/分销规则) */
|
|
overview: () => get('/distribution/overview', {}, { silent: true }),
|
|
/** 一/二级下线列表与业绩 */
|
|
team: (params = {}) => get('/distribution/team', params, { silent: true }),
|
|
/** 分销收益明细账单(佣金流水) */
|
|
commissions: (params = {}) => get('/distribution/commissions', params, { silent: true }),
|
|
/** 专属推广海报要素 */
|
|
poster: () => get('/distribution/poster', {}, { silent: true }),
|
|
/** 申请提现(提现至微信零钱) */
|
|
withdraw: (payload) => post('/distribution/withdraw', payload, { silent: true }),
|
|
/** 提现记录 */
|
|
withdrawRecords: () => get('/distribution/withdraw-records', {}, { silent: true }),
|
|
}
|
|
|
|
export default distributionApi
|