import request from '@/utils/request'

// 查询租户消费扣款记录列表
export function listConsumeRecords(query) {
  return request({
    url: '/admin/consume-record/list',
    method: 'get',
    params: query
  })
}

// 获取消费记录详情
export function getConsumeRecord(id) {
  return request({
    url: '/admin/consume-record/' + id,
    method: 'get'
  })
}

// 导出消费记录
export function exportConsumeRecord(query) {
  return request({
    url: '/admin/consume-record/export',
    method: 'get',
    params: query
  })
}
