index.js 1.1 KB

1234567891011121314151617181920212223242526272829303132333435
  1. import { errorCatcher, errorHandle, filter } from 'base-core-lib'
  2. import { appRx } from '../defalutConfig/indexRx'
  3. import {
  4. API_GET_CUSTOMERINFO_LOOK,
  5. API_POST_ADDCUSTOMERINFO,
  6. API_POST_EDITCUSTOMERINFO,
  7. API_POST_DELCUSTOMERINFO,
  8. API_GET_CUSTOMER_GETBANK,
  9. API_GET_LOOK_CUSTOMERINFO
  10. } from '@/api/V2/customerFundManagement'
  11. // import { app } from 'electron'
  12. // 客户管理列表
  13. export const getCustomerList = appRx.get(API_GET_CUSTOMERINFO_LOOK, errorCatcher, errorHandle, filter)
  14. // 查看客户信息
  15. export const lookCustomer = appRx.get(API_GET_LOOK_CUSTOMERINFO, errorCatcher, errorHandle, filter)
  16. // 添加客户
  17. export const addCustomer = appRx.post(API_POST_ADDCUSTOMERINFO, errorCatcher, errorHandle, filter)
  18. // 编辑
  19. export const editCustomerInfo = appRx.post(API_POST_EDITCUSTOMERINFO, errorCatcher, errorHandle, filter)
  20. // 删除客户
  21. export const delCustomerInfo = appRx.post(API_POST_DELCUSTOMERINFO, errorCatcher, errorHandle, filter)
  22. //银行卡识别
  23. export const getBank = appRx.get(API_GET_CUSTOMER_GETBANK, errorCatcher, errorHandle, filter)