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

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

export const materialExceptionApi = {
  returnExceptionPage: (params: ExceptionQuery) =>
    axiosInstance.get('/iscs/exception-misplace/getExceptionMisplacePage', { params }),
};
