import { http } from '@/http/http'

export interface IWarningQuery {
  deptId: number
  beginTime?: string
  endTime?: string
  pageNum: number
  pageSize: number
}

export interface IWarning {
  id: number
  deptId: number
  notifyContent: string
  createTime: string
}

// 获取预警列表
export async function getWarningList(query: IWarningQuery) {
  return await http.get<IWarning[]>(`/business/notify-log/list`, query)
}
