import { errorCatcher, errorHandle, filter } from 'base-core-lib' import { appRx } from '../defalutConfig/indexRx' import { API_POST_GRAINMERCHANTREVIEW, API_POST_DRIVERREVIEW, API_POST_TRANSACTIONINFORMATIONREVIEW, API_GET_GRAINMERCHANT_LIST, API_GET_DRIVER_LIST, API_GET_TRANSACTIONINFORMATION_LIST, API_POST_DELETETRANSACTIONINFORMATION } from '@/api/V2/platformaudit' // import { app } from 'electron' // 粮商审核 export const getGrainMerchants = appRx.post(API_POST_GRAINMERCHANTREVIEW, errorCatcher, errorHandle, filter) // 司机审核 export const getDriver = appRx.post(API_POST_DRIVERREVIEW, errorCatcher, errorHandle, filter) // 交易信息审核 export const getTransactionInformation = appRx.post(API_POST_TRANSACTIONINFORMATIONREVIEW, errorCatcher, errorHandle, filter) // 粮商列表 export const grainMerchantsList = appRx.get(API_GET_GRAINMERCHANT_LIST, errorCatcher, errorHandle, filter) //司机列表 export const driverList = appRx.get(API_GET_DRIVER_LIST, errorCatcher, errorHandle, filter) //交易信息列表 export const transactionInformationList = appRx.get(API_GET_TRANSACTIONINFORMATION_LIST, errorCatcher, errorHandle, filter) // 交易信息删除 export const deleteTransactionInformation = appRx.post(API_POST_DELETETRANSACTIONINFORMATION, errorCatcher, errorHandle, filter)