index.ts 333 Bytes
import type { AlarmListRequestType, AlarmListResponseType } from './model'
import { defHttp } from '@/utils/http'

enum Api {
  POST_ALARM_PAGE = '/alarm/configuration/page',
}

export function fetchAlarmList(data: AlarmListRequestType) {
  return defHttp.post<AlarmListResponseType>({
    url: Api.POST_ALARM_PAGE,
    data,
  })
}