import api from './index.js'

/**
 * 推广相关API接口
 */

// 获取我的推广信息
export const getMyPromotionInfo = () => {
  return api.get('/promotion/my')
}

// 获取推广邀请记录
export const getPromotionRecords = (params = {}) => {
  return api.get('/promotion/records', { params })
}

// 获取我的粉丝列表
export const getMyFans = (params = {}) => {
  return api.get('/promotion/fans', { params })
}

// 获取我的提成明细
export const getMyCommissions = (params = {}) => {
  return api.get('/promotion/commissions', { params })
} 

// 推广规则加实时进度
export const getPromotionRulesWithProgress = () => {
  return api.get('/v1/promotion-rules/user-status')
}