apiWallets.js 472 B

123456789101112131415161718192021
  1. import { get, post } from "./http";
  2. const prefix = 'devicesApi/dawn/api/v1/';
  3. export default apiWallets = {
  4. /**
  5. * 获取用户钱包列表
  6. * @returns Promise
  7. */
  8. getWalletsInfo() {
  9. return get(prefix + "user/payment-methods", {})
  10. },
  11. /**
  12. * 获取指定钱包的交易历史记录
  13. * @param {*} data {latestPk,walletTypeCode}
  14. * @returns Promise
  15. */
  16. getTransactionList(data) {
  17. return get(prefix + "user/transaction-histories", data)
  18. }
  19. }