financial.js 3.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160
  1. import Service from '../lib/service'
  2. class FinancialService extends Service {
  3. constructor () {
  4. super()
  5. }
  6. //根据条件查看拒绝列表-用于下拉和选择展示理由
  7. async reasonsRefusalList (params = {}) {
  8. let res = await this.postAll("Host80","/reasons/refusal/list", params);
  9. return res
  10. }
  11. /*客户财务*/
  12. //出入金列表
  13. async BalanceList (params = {}) {
  14. let res = await this.postAll("Host04","/balance/list", params);
  15. return res
  16. }
  17. //入金接口
  18. async PayBankCode (url,params = {}) {
  19. let res = await this.postAll("Host04",url,params);
  20. return res
  21. }
  22. //重新提交接口
  23. async PayDealResult (url,params = {}) {
  24. let res = await this.postAll("Host04",url,params);
  25. return res
  26. }
  27. //银行卡出金申请
  28. async WithdrawApplyBank (url,params = {}) {
  29. let res = await this.postAll("Host04",url, params);
  30. return res
  31. }
  32. //数字货币出金
  33. async WithdrawAapplyDigitalCurrency (url,params = {}) {
  34. let res = await this.postAll("Host04",url, params);
  35. return res
  36. }
  37. //银行列表
  38. async BankList (params = {}) {
  39. let res = await this.postAll("Host04","/channel/bank/list", params);
  40. return res
  41. }
  42. //出金通道列表
  43. async RemitChannelList (params = {}) {
  44. let res = await this.postAll("Host04","/remit/channel/list", params);
  45. return res
  46. }
  47. //入金通道列表
  48. async RemittanceChannelList (params = {}) {
  49. let res = await this.postAll("Host04","/remittance/channel/list", params);
  50. return res
  51. }
  52. //内转申请
  53. async TransferApply (params = {}) {
  54. let res = await this.postAll("Host04","/transfer/apply", params);
  55. return res
  56. }
  57. //内转列表
  58. async TransferList (params = {}) {
  59. let res = await this.postAll("Host04","/transfer/list", params);
  60. return res
  61. }
  62. //内转用到的数据(最大 最小内转量)
  63. async transferInfo (params = {}) {
  64. let res = await this.postAll("Host04","/transfer/info", params);
  65. return res
  66. }
  67. //获取代理账户列表
  68. async getAgentList (params = {}) {
  69. let res = await this.postAll("Host80","/account/agent/list", params);
  70. return res
  71. }
  72. //银行电汇入金
  73. async telegraphicPay (params = {}) {
  74. let res = await this.postAll("Host04","/telegraphic/pay", params);
  75. return res
  76. }
  77. //银行卡列表
  78. async customBankList (params = {}) {
  79. let res = await this.postAll("Host80","/custom/bank/list", params);
  80. return res
  81. }
  82. //数字货币入金
  83. async digitalPay (params = {}) {
  84. let res = await this.postAll("Host04","/digital/pay", params);
  85. return res
  86. }
  87. //可减免手续费用次数
  88. async remainingReductionNumber (params = {}) {
  89. let res = await this.postAll("Host04","/withdraw/remaining/reduction/number", params);
  90. return res
  91. }
  92. /* ib */
  93. //银行卡出金申请
  94. async ibWithdrawApplyBank (url,params = {}) {
  95. let res = await this.postAll("Host04","/agent" + url, params);
  96. return res
  97. }
  98. //数字货币出金
  99. async ibWithdrawAapplyDigitalCurrency (url,params = {}) {
  100. let res = await this.postAll("Host04","/agent" + url, params);
  101. return res
  102. }
  103. //出金取消
  104. async withdrawCancel (params = {}) {
  105. let res = await this.postAll("Host04","/withdraw/cancel", params);
  106. return res
  107. }
  108. //出金取消-后台
  109. async withdrawCancelBackstage (params = {}) {
  110. let res = await this.postAll("Host04","/withdraw/cancel/backstage", params);
  111. return res
  112. }
  113. //20赠金数据
  114. async depositCheckExistSuccess (params = {}) {
  115. let res = await this.postAll("Host04","/finance/deposit/check/exist/success", params);
  116. return res
  117. }
  118. //出金邮箱验证码
  119. async withdrawCode (params = {}) {
  120. let res = await this.postAll("Host04","/withdraw/apply/digital/currency/send/code", params);
  121. return res
  122. }
  123. async getWebsdkLink (params = {}) {
  124. let res = await this.postAll("Host04","/withdraw/getWebsdkLink", params);
  125. return res
  126. }
  127. }
  128. export default new FinancialService