import request from '@/utils/request'

// 查询考试通过列表
export function listPass(query) {
  return request({
    url: '/drivingSchool/system/pass/list',
    method: 'get',
    params: query
  })
}

// 工资
export function getBalanceList(query) {
  return request({
    url: '/drivingSchool/system/pass/getBalanceList',
    method: 'get',
    params: query
  })
}


// 时间
export function getTime(query) {
  return request({
    url: '/drivingSchool/system/pass/getTime',
    method: 'get',
    params: query
  })
}

// 结算
export function pay(data) {
  return request({
    url: '/drivingSchool/system/pass/pay',
    method: 'put',
    data: data
  })
}

// 查询考试通过详细
export function getPass(id) {
  return request({
    url: '/drivingSchool/system/pass/' + id,
    method: 'get'
  })
}

// 新增考试通过
export function addPass(data) {
  return request({
    url: '/drivingSchool/system/pass',
    method: 'post',
    data: data
  })
}

// 修改考试通过
export function updatePass(data) {
  return request({
    url: '/drivingSchool/system/pass',
    method: 'put',
    data: data
  })
}

// 删除考试通过
export function delPass(id) {
  return request({
    url: '/drivingSchool/system/pass/' + id,
    method: 'delete'
  })
}
