import request from "@/utils/request";

// 景区防火相关的请求地址
enum API {
  // 获取当前防火等级接口地址
  LEVEL_URL = "/fireRating/last",
  // 获取处置情况信息接口地址
  DISPOSEMSG_URL = "/emergencyDisposalStatistics/info",
  // 获取防火记录列表接口地址
  FIREDATA_URL = "/warningOfSmokeRecord/list",
}

//获取当前防火等级
export const reqFireLevel = () => request.get(API.LEVEL_URL);

//获取处置情况信息
export const reqDisposeMsg = () => request.get(API.DISPOSEMSG_URL);

// 获取防火记录列表
export const reqFireData = (data: any) => request.get(API.FIREDATA_URL, data);

// 获取防火记录列表单条数据详情
export const reqFireDataById = (id: any) =>
  request.get(`/warningOfSmokeRecord/infoDetail/${id}`);
