import request from '@/utils/request'

// 查询预警结果列表
export function queryList(query) {
  return request({
    url: '/dk/attendanceGroup/list',
    method: 'get',
    params: query
  })
}

// 查询预警结果详细
export function getOperationWarnresult(id) {
  return request({
    url: '/dk/attendanceGroup/' + id,
    method: 'get'
  })
}

// 新增预警结果
export function add(data) {
  return request({
    url: '/dk/attendanceGroup/add',
    method: 'post',
    data: data
  })
}

// 修改预警结果
export function updateOperationWarnresult(data) {
  return request({
    url: '/system/operationWarnresult',
    method: 'put',
    data: data
  })
}

// 删除预警结果
export function delOperationWarnresult(id) {
  return request({
    url: '/system/operationWarnresult/' + id,
    method: 'delete'
  })
}
