import axiosInstance from '../../utils/axios';

export interface DoorExceptionQuery {
  pageNo?: number;
  pageSize?: number;
  current?: number;
  size?: number;
  cabinetId?: number;
  cabinetName?: string;
  exceptionType?: number;
  exceptionStatus?: number;
  startTime?: Date | string;
  endTime?: Date | string;
  [key: string]: any;
}

export const materialDoorExceptionApi = {
  doorExceptionPage: (params: DoorExceptionQuery) =>
    axiosInstance.get('/iscs/exception/getExceptionPage', { params }),
};
