import request from '@/config/axios'

// 物资柜门异常查询参数
export interface DoorExceptionQuery {
  current: number
  size: number
  cabinetId?: number
  cabinetName?: string
  exceptionType?: number
  exceptionStatus?: number
  startTime?: Date
  endTime?: Date
}

// 查询物资柜门异常列表
//  (传递参数exceptionType是1就是柜门异常)
export const doorExceptionPage = async (params: DoorExceptionQuery) => {
  return await request.get({
    // url: '/iscs/cabinet-open-record/getCabinetOpenRecordPage',
    url: '/iscs/exception/getExceptionPage',
    params
  })
}
