index.js 1.3 KB

1234567891011121314151617181920212223242526
  1. import { errorCatcher, errorHandle, filter } from 'base-core-lib'
  2. import { appRx } from '../defalutConfig/indexRx'
  3. import {
  4. API_POST_GRAINMERCHANTREVIEW,
  5. API_POST_DRIVERREVIEW,
  6. API_POST_TRANSACTIONINFORMATIONREVIEW,
  7. API_GET_GRAINMERCHANT_LIST,
  8. API_GET_DRIVER_LIST,
  9. API_GET_TRANSACTIONINFORMATION_LIST,
  10. API_POST_DELETETRANSACTIONINFORMATION
  11. } from '@/api/V2/platformaudit'
  12. // import { app } from 'electron'
  13. // 粮商审核
  14. export const getGrainMerchants = appRx.post(API_POST_GRAINMERCHANTREVIEW, errorCatcher, errorHandle, filter)
  15. // 司机审核
  16. export const getDriver = appRx.post(API_POST_DRIVERREVIEW, errorCatcher, errorHandle, filter)
  17. // 交易信息审核
  18. export const getTransactionInformation = appRx.post(API_POST_TRANSACTIONINFORMATIONREVIEW, errorCatcher, errorHandle, filter)
  19. // 粮商列表
  20. export const grainMerchantsList = appRx.get(API_GET_GRAINMERCHANT_LIST, errorCatcher, errorHandle, filter)
  21. //司机列表
  22. export const driverList = appRx.get(API_GET_DRIVER_LIST, errorCatcher, errorHandle, filter)
  23. //交易信息列表
  24. export const transactionInformationList = appRx.get(API_GET_TRANSACTIONINFORMATION_LIST, errorCatcher, errorHandle, filter)
  25. // 交易信息删除
  26. export const deleteTransactionInformation = appRx.post(API_POST_DELETETRANSACTIONINFORMATION, errorCatcher, errorHandle, filter)