import request from '@/utils/request'

// 查询代服账户列表
export function listAccount(query) {
  return request({
    url: '/his/dfAccount/list',
    method: 'get',
    params: query
  })
}

// 查询代服账户详细
export function getAccount(id) {
  return request({
    url: '/his/dfAccount/' + id,
    method: 'get'
  })
}

// 新增代服账户
export function addAccount(data) {
  return request({
    url: '/his/dfAccount',
    method: 'post',
    data: data
  })
}

// 修改代服账户
export function updateAccount(data) {
  return request({
    url: '/his/dfAccount',
    method: 'put',
    data: data
  })
}

// 删除代服账户
export function delAccount(id) {
  return request({
    url: '/his/dfAccount/' + id,
    method: 'delete'
  })
}

// 导出代服账户
export function exportAccount(query) {
  return request({
    url: '/his/dfAccount/export',
    method: 'get',
    params: query
  })
}