import request from "@/utils/request";

// 应急广播相关的请求地址
enum API {
  // 应急广播信息接口地址
  BROADCAST_URL = "/broadcast/statistics/info",
  // 播发记录列表数据接口地址
  LISTDATA_URL = "/broadcast/record/page",
}

//获取应急广播信息
export const reqBroadcastInfo = () => request.get(API.BROADCAST_URL);

//获取播发记录列表数据
export const reqBroadcastList = (data: any) =>
  request({
    method: "get",
    url: API.LISTDATA_URL,
    params: data,
  });
