import request from '@/utils/request';

/**
 * 获取我的佣金记录
 */
export function getMyCommissionList(params: any) {
  return request.get('/shop/shop-commission-record/my/list', params);
}

/**
 * 获取佣金统计
 */
export function getCommissionStats() {
  return request.get('/shop/shop-commission-record/my/stats');
}

/**
 * 获取佣金记录列表（管理员）
 */
export function getCommissionList(params: any) {
  return request.get('/shop/shop-commission-record/page', params);
}

/**
 * 手动触发佣金结算（管理员）
 */
export function settleCommission() {
  return request.post('/shop/shop-commission-record/settle');
}
