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, API_GET_SALE_LIST, API_POST_DELETESALE, API_POST_SALEREVIEW, API_GET_DYNAMICS_LIST, API_GET_DYNAMICS_LOOK, API_POST_DYNAMICS_DELETE, API_POST_DYNAMICS_EXAMINE, } 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) //销售交易信息列表 export const saleList = appRx.get(API_GET_SALE_LIST, errorCatcher, errorHandle, filter) // 销售交易信息删除 export const deletesale = appRx.post(API_POST_DELETESALE, errorCatcher, errorHandle, filter) // 销售交易信息审核 export const saleexamine = appRx.post(API_POST_SALEREVIEW, errorCatcher, errorHandle, filter) // 粮脉动态审核(列表) export const dynamicsList = appRx.get(API_GET_DYNAMICS_LIST, errorCatcher, errorHandle, filter) // 粮脉动态审核(查看) export const dynamicsLook = appRx.get(API_GET_DYNAMICS_LOOK, errorCatcher, errorHandle, filter) // 粮脉动态审核(删除) export const dynamicsDelete = appRx.post(API_POST_DYNAMICS_DELETE, errorCatcher, errorHandle, filter) // 粮脉动态审核 export const dynamicsExamine = appRx.post(API_POST_DYNAMICS_EXAMINE, errorCatcher, errorHandle, filter)