import request from '@/utils/request'

// 某课程 会员到期日
export function stuCourseDateAccountList(query) {
  return request({
    url: '/api/sc/accountDate/list/stuCourseDateAccountList',
    method: 'get',
    params: query
  })
}

// 首次续费
export function firstPay(data) {
  return request({
    url: '/api/sc/accountDate/pay/firstPay',
    method: 'post',
    data: data
  })
}

// 续费
export function renew(data) {
  return request({
    url: '/api/sc/accountDate/pay/renew',
    method: 'post',
    data: data
  })
}

// 获取各会员每周期费用
export function claStudentChargeList(query) {
  return request({
    url: '/api/sc/accountDate/list/claStudentChargeList',
    method: 'get',
    params: query
  })
}

// 批量续费
export function batchRenew(data) {
  return request({
    url: '/api/sc/accountDate/pay/batchRenew',
    method: 'post',
    data: data
  })
}
