import { defHttp } from '@/utils/http/axios';
import { DemoOptionsItem, OrgItemList, CaseCollectionDelItem, CaseBackItem } from './model/index';

enum Api {
  GETORG_List = '/api/DroneCaseinfo/LoadCaseInfoList', //表格列表
  PASS_VERIFICAT = '/api/DroneCaseinfo/VerificatCase', //核验
  BACK_VERIFICAT = '/api/DroneCaseinfo/DrawbackCase', //退回
}
/**
 * @description: Get sample options value
 */
export const getTableListData = (params?: OrgItemList) =>
  defHttp.get<DemoOptionsItem[]>({ url: Api.GETORG_List, params });
export const passVerificatCase = (params?: CaseCollectionDelItem) =>
  defHttp.post<DemoOptionsItem[]>({ url: Api.PASS_VERIFICAT, params });
export const backVerificcatCase = (params?: CaseBackItem) =>
  defHttp.get<DemoOptionsItem[]>({ url: Api.BACK_VERIFICAT, params });
