wallet.js 4.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172
  1. import Serve from '@/api/serve'
  2. class Wallet {
  3. // 提币记录
  4. static withdrawalRecord() {
  5. return Serve.post(`/user/withdrawalRecord`);
  6. }
  7. // 充值记录
  8. static depositHistory() {
  9. return Serve.post(`/user/depositHistory`);
  10. }
  11. // 钱包划转记录
  12. static transferRecord() {
  13. return Serve.post(`/user/transferRecord`);
  14. }
  15. // 个人资产管理
  16. static personalAssets() {
  17. return Serve.post(`/user/personalAssets`);
  18. }
  19. // 各个币种的资产
  20. static fundAccount(data) {
  21. return Serve.post(`/user/fundAccount`, data);
  22. }
  23. // 代币以及对应的余额
  24. static tokenList(data) {
  25. return Serve.post(`/user/tokenList`, data);
  26. }
  27. // 资金划转
  28. static fundsTransfer(data) {
  29. return Serve.post(`/user/appFundsTransfer`, data);
  30. }
  31. // 生成充值地址
  32. static walletImage(data) {
  33. return Serve.post(`/user/walletImage`, data);
  34. }
  35. // 提交充值
  36. static recharge(data) {
  37. return Serve.post(`/user/recharge`, data);
  38. }
  39. // 信用卡充值
  40. static xinRecharge(data) {
  41. return Serve.post(`/back/sendPay`, data);
  42. }
  43. // 提交提币
  44. static withdraw(data) {
  45. return Serve.post(`/user/withdraw`, data);
  46. }
  47. // 提币地址管理
  48. static getUserWithdrawAdress(data) {
  49. return Serve.post(`/user/withdrawalAddressManagement`, data);
  50. }
  51. // 编辑提币地址
  52. static editUserWithdrawAdress (data) {
  53. return Serve.post(`/user/editUserAdress`, data);
  54. }
  55. // 删除提币地址
  56. static delUserWithdrawAdress(data) {
  57. return Serve.post(`/user/withdrawalAddressManagement`, data);
  58. }
  59. // 添加提币地址
  60. static addUserWithdrawAdress(data) {
  61. return Serve.post(`/`, data);
  62. }
  63. static withdrawalSelectAddress() {
  64. return Serve.post(`/user/withdrawalSelectAddress`);
  65. }
  66. static addWithdrawAddress(data) {
  67. return Serve.post(`/user/withdrawalAddressAdd`, data);
  68. }
  69. // 查询币种余额
  70. static withdrawalBalance(data) {
  71. return Serve.post(`/user/withdrawalBalance`, data);
  72. }
  73. // 修改用户地址
  74. static withdrawalAddressModify(data) {
  75. return Serve.post(`/user/withdrawalAddressModify`, data);
  76. }
  77. // 删除币种地址
  78. static withdrawalAddressDeleted(data) {
  79. return Serve.post(`/user/withdrawalAddressDeleted`, data);
  80. }
  81. // 资金余额
  82. static appTokenAssets(data){
  83. return Serve.post(`/user/appTokenAssets`,data)
  84. }
  85. // 指定币种划转记录
  86. static appTransferRecord(data){
  87. return Serve.post(`/user/appTransferRecord`,data)
  88. }
  89. // 指定币种提币记录
  90. static appWithdrawalRecord(data){
  91. return Serve.post(`/user/appWithdrawalRecord`,data)
  92. }
  93. // 指定币种提币记录
  94. static appDepositHistory(data){
  95. return Serve.post(`/user/appDepositHistory`,data)
  96. }
  97. // 指定币种币币记录
  98. static getWalletLogs(data){
  99. return Serve.get(`/user/getWalletLogs`,data)
  100. }
  101. // 生成钱包地址
  102. static createWalletAddress() {
  103. return Serve.post(`/user/createWalletAddress`);
  104. }
  105. // 获取充币地址
  106. static collectionType(data) {
  107. return Serve.post(`/user/collectionType`, data)
  108. }
  109. // 获取转换列表
  110. static accounts(data){
  111. return Serve.get(`/wallet/accounts`, data)
  112. }
  113. // 获取子账户类别
  114. static accountPairList(data){
  115. return Serve.get('/wallet/accountPairList',data)
  116. }
  117. // 获取转换币种列表
  118. static coinList(data){
  119. return Serve.get('/wallet/coinList',data)
  120. }
  121. // 获取余额
  122. static getBalance(data){
  123. return Serve.get('/wallet/getBalance',data)
  124. }
  125. // 资金划转
  126. static transfer(data){
  127. return Serve.post('/wallet/transfer',data)
  128. }
  129. // 合约资金列表
  130. static accountList(data){
  131. return Serve.get('/contract/accountList',data)
  132. }
  133. // 合约资金流水
  134. static accountFlow(data){
  135. return Serve.get('/contract/accountFlow',data)
  136. }
  137. // 合约资金流水
  138. static cancelWithdraw(data){
  139. return Serve.post('/user/cancelWithdraw',data,{loading:true})
  140. }
  141. static fundFiat(data) {
  142. return Serve.post(`/back/fiat`, data);
  143. }
  144. static getQb(data) {
  145. return Serve.get(`/coin/code`, data);
  146. }
  147. }
  148. export default Wallet;