import request from '@/utils/request'

/**
 * 预警总览接口。
 * 后端返回若依 AjaxResult，统一由 request 拦截器处理鉴权和错误。
 */
export function getWarningTodayOverview() {
  return request({ url: '/api/warning-dashboard/today-overview', method: 'get' })
}

export function pageWarningTodayOverview(params) {
  return request({ url: '/api/warning-dashboard/today-overview/page', method: 'get', params })
}

export function getWarningHistoryOverview() {
  return request({ url: '/api/warning-dashboard/history-overview', method: 'get' })
}

export function pageWarningHistory(params) {
  return request({ url: '/api/warning-dashboard/history-overview/page', method: 'get', params })
}

export function getWarningTodayUnprocessed() {
  return request({ url: '/api/warning-dashboard/today-unprocessed', method: 'get' })
}

export function pageWarningTodayUnprocessed(params) {
  return request({ url: '/api/warning-dashboard/today-unprocessed', method: 'get', params })
}
