import request from '@/sheep/request'; export default { // 分销商详情 agent: () => request({ url: 'commission/agent', method: 'GET', custom: { showLoading: false, showError: false, }, }), // 分销表单 form: () => request({ url: 'commission/agent/form', method: 'GET', }), // 申请分销商 apply: (data) => request({ url: 'commission/agent/apply', method: 'POST', data, custom: { showSuccess: true, }, }), // 分销动态 log: (params) => request({ url: 'commission/log', method: 'GET', params, }), // 分销订单 order: (params) => request({ url: 'commission/order', method: 'GET', params, }), // 分销商品 goods: (params) => request({ url: 'commission/goods', method: 'GET', params, }), // 我的团队 team: (params) => request({ url: 'commission/agent/team', method: 'GET', params, }), // 佣金转余额 transfer: (data) => request({ url: 'commission/agent/transfer', method: 'POST', data, }), };