memberBank.js 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  1. import { requestApi } from '../util/network'
  2. // 获取用户提现账户
  3. export const getBankList =
  4. () =>
  5. requestApi(
  6. '/Memberbank/bank_list',
  7. 'POST',
  8. {
  9. },
  10. 'member'
  11. )
  12. // 获取单条提现账户
  13. export const getBankInfo =
  14. (memberbankId) =>
  15. requestApi(
  16. '/Memberbank/bank_info',
  17. 'POST',
  18. {
  19. 'memberbank_id': memberbankId
  20. },
  21. 'member'
  22. )
  23. // 新增用户提现账户
  24. export const addBank =
  25. (data) =>
  26. requestApi(
  27. '/Memberbank/bank_add',
  28. 'POST',
  29. {
  30. 'memberbank_type': data.memberbank_type,
  31. 'memberbank_truename': data.memberbank_truename,
  32. 'memberbank_name': data.memberbank_name,
  33. 'memberbank_no': data.memberbank_no
  34. },
  35. 'member'
  36. )
  37. // 编辑用户提现账户
  38. export const editBank =
  39. (data, memberbankId) =>
  40. requestApi(
  41. '/Memberbank/bank_edit',
  42. 'POST',
  43. {
  44. 'memberbank_id': memberbankId,
  45. 'memberbank_type': data.memberbank_type,
  46. 'memberbank_truename': data.memberbank_truename,
  47. 'memberbank_name': data.memberbank_name,
  48. 'memberbank_no': data.memberbank_no
  49. },
  50. 'member'
  51. )
  52. // 删除用户提现账户
  53. export const delBank =
  54. (memberbankId) =>
  55. requestApi(
  56. '/Memberbank/bank_del',
  57. 'POST',
  58. {
  59. 'memberbank_id': memberbankId
  60. },
  61. 'member'
  62. )